SAP File System backup using DB13 Friday, November 19, 2010

1) Run Tx code SE16N (Or any utility u like) to edit stanard table SDBAC to add the new Action into DB13

Type -->File
DataBase -->*
OP System -->*
Language -->EN
DBA Action -->File System
DBA Action -->File System Backup
Server -->DBHOST
Exec Mode -->EXT
Command -->ZFILESYSTEM

2) Create OS level Script for taking file system backup using any OS utility here XCOPY
File is saved as H:\test\file.cmd with text

xcopy F:\usr\sap\SID\SYS\profile H:\test


3)Edit table sxpgcotabe as below
Command Name -->ZFILESYSTEM
OP.Sys -->External Program
ANYOS -->H:\test\file.bat

4)Go to DB13 you can see new action as File system Backup
5)For testing execute immediately , later on can be scheduled as needed
6)If you want to have offline backup of file system need to edit script to shutdown SAP and start accordignly .

This can be utilized to schedule file system backup for Java systems specially and also XCOPY options can be explored as it support file sync as well.

http://www.computerhope.com/xcopyhlp.htm

Regards,
Gagan Deep Kaushal

Access SAP GUI using Excel Thursday, November 18, 2010

Process to integrate SAP GUI with Excel sheet , so in case you have number of systems to manage you can maintain passwordless login .

We will Use SAP Shortcut to achieve the same.

Enable Password field

1) open regedit
2) go to HKEY_CURRENT_USER\Software\SAP\
3)Right Click on SAP -->New--> Key with name SAPShortcut--> Then using Same above Step create a key name "Security" under "SAPShortcut"
4)Now Right Click on the Security --> New --> String Value Give name "EnablePassword" to this and Set it Value 1
5) Close window

Create Shortcut

6) Login to SAP
7) Got to Customize Local Layout or ALT+F12 , select create shortcut
8) Provide detail(Password etc) and save somewhere in desktop, we recommended to save in some secure folder as using this shortcut any one can login to SAP GUI without proving password

Integrate With Excel

9) Open excel , type SID or ant description you want to give for shortcut
10) Right click and select hyperlink (Select the shortcut you have created earlier)
11) Save file and then try to access , you will be routed to SAP GUI with couple of warnings , to avoid warning follow below steps

Microsoft Excel Warnings

12) Disable hyperlink warnings for 2007 Office programs

""To disable the hyperlink warnings in 2007 Office Programs when an http:// address, notes:// or an ftp:// address is used, you must create a new registry subkey. To do this, follow these steps:
Click Start, and then click Run.
In the Open dialog box, type regedit, and then click OK.
In Registry Editor, locate one of the following registry subkeys:
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Common
NoteYou only have to modify one of these registry subkeys. You do not have to modify both of them.
Note If the Security subkey already exists, skip to Step 6 after selecting the Security subkey.
Click the registry subkey, point to New on the Edit menu, and then click Key.
Type Security, and then press ENTER to name the key.
On the Edit menu, point to New, and then click DWORD Value.
Type DisableHyperlinkWarning, and then press ENTER to name the entry.
In the right pane, right-click DisableHyperlinkWarning, and then click Modify.
In the Edit DWORD Value dialog box, click Decimal, and then type 1 under Value data.

Note A value of 0 enables the hyperlink warning message. A value of 1 disables the hyperlink warning message.
Click OK.
Exit Registry Editor."

Still you will get one more warning to avoid that

Turn off the "Confirm open after download" option for the file type that you are trying to open

"Double-click My Computer.
On the Tools menu, click Folder Options.
On the File Types tab, select the appropriate file name extension SAP in the Registered File Types box, and then click Advanced.
Click to clear the Confirm open after download check box, and then click OK.
In the Folder Options dialog box, click Close.
Method 2: Modify the HKEY_CLASSES_ROOT\WMVFile\EditFlags registry subkey
Use this method if the warning message affects multiple computers. "

Now enjoy wil shortcuts , but dont forget to update shortcut if you will change your SAP password .

Moreover you can put one extra password for excel sheet also .

We recommend not to use this in any critical system as it can be a security issue.

Regards,
Gagan Deep Kaushal

A NOTE>>>

The articles here are based on my own experiences in using and learning BASIS . All resources related would be mentioned in every article.

Feel free to gave critics, correction, or encouragement. Any comment or question are welcomed.

Cheers,
Gagan Deep Kushal
zk.gagan@gmail.com