Step 1 - Initial Settings

Previous  Top  Next

1   Select File | New Step or click on scriptstep1b1 toolbar button.

2   In the wizard that opens, select Script in SAP Steps in the left pane and type in CM01 in Transaction Code.

3   Select VB Script as Script Language.

4   Select Logon Shortcut file if already created.

5   Select Start and use new SAP GUI Session (or select any active sessions that will be displayed in the list).

6   Click on Start Recording button to start recording the transaction in GUI Scripting mode.

 

scriptstep1b2

 

Note: SAP Logon process from GUI Scripting is different than normal Transaction Recording process. We will see that process in following section.

 

You should see SAP logon pad and script warning. Click OK and continue to iLogon pad.

 

scriptstep1b3

 

Note: Sometimes you may not get this warning and iLogon window may be behind SAP logon pad. This behavior is dependent on how Scripting warnings are configured in your SAP GUI. In this case, Click on iLogon window and select SAP system that you want to perform recording.

 

scriptstep1b4

 

 

Provide usual SAP logon information and click OK - see example below.

 

scriptstep1b5

 

You may get few warnings as displayed below.

 

scriptstep1b6

 

scriptstep1b7

 

Note: You can disable this warnings to appear from within SAP GUI - Options - Scripting Tab.

 

 

 

hmtoggle_plus1How to enable scripting in SAP?

1. Type rz11.

scriptstep1b8

 

2. In Param name enter, *script* & then click on Display.

scriptstep1b9

 

3.Double click sapgui/user_scripting

scriptstep1b10

 

4. If scripting is not on, your current value will be FALSE. Click on Change Value.

scriptstep1b11

5. In the New Value, change it to TRUE.

scriptstep1b12

 

This should complete GUI Scripting logon. Next we will begin recording in CM01.

 

Next Step

Step 2 - SAP GUI Script Recording