Sei sulla pagina 1di 4

GBS - Accounting and Financial Reporting Bundle

Prepared by: Rona R. Guevara

Using SAP Script Automation Tool

Draft #1 Revised: Printed: -1-1-1Page 1 5/21/2012 - 1 -11111

I. Recording Scripts 1) Make sure you install SAP GUI Scripting in E-support 2) Launch Excel, Click on SAP Scripting Connect To SAP

3) Select the system you want to use to record your transaction and click Log on

4) The pop up below will show up, please click OK:

5) The SAP log on screen will be shown, enter your User ID, password and hit enter. 6)You may not begin recording go back to your excel sheet and hit the record button in the SAP Scripting Menu:

97539340.doc

-1-

GBS - Accounting and Financial Reporting Bundle


Prepared by: Rona R. Guevara

Using SAP Script Automation Tool

Draft #1 Revised: Printed: -2-2-2Page 2 5/21/2012 - 2 -22222

7) Go Back to your SAP screen, type the transaction code and proceed as if doing a regular transaction in SAP. Excel will continue recording each step performed. Save the document

8) Go back to excel once all steps are completed. Go to SAPScripting again and stop the recording:

You will now have an excel sheet named SAP Script which contains all the steps performed in SAP:

97539340.doc

-2-

GBS - Accounting and Financial Reporting Bundle


Prepared by: Rona R. Guevara

Using SAP Script Automation Tool

Draft #1 Revised: Printed: -3-3-3Page 3 5/21/2012 - 3 -33333

9) To make the excel sheet more user friendly, change the needed entries in the ID column to the actual field name. In the example screen shot above, ID 005 is chsnged to document date, 006 (parameter ID BUKRS in the script code) is changed to Company Code. Do this for all variables you need to enter when doing your transaction. Place an X as well on the IsInput Column:

10) To create your Transaction data input sheet, go to Sap Scripting Generate Input Sheet:

This action will create another worksheet Input Values in your excel file. The column header will contain all that has been marked X in IsInput in the previous step:

11) Save your file in your preferred directory. File extension should be .xls. You have now finished creating your automation script. II. Using the Script for Automation: 1) Open your script in excel 2) Go to Input values sheet and enter the needed data in the corresponding columns. 3) If the line item in excel is to be executed in SAP, make sure IsValue has an X value and IsIgnored is blank 97539340.doc -3-

GBS - Accounting and Financial Reporting Bundle


Prepared by: Rona R. Guevara

Using SAP Script Automation Tool

Draft #1 Revised: Printed: -4-4-4Page 4 5/21/2012 - 4 -44444

4) Connect to the desired SAP system via step 8 in section I 5) Go to SapSCripting Play to execute the script:

6) Wait until you get the following message in excel:

7) Check your excel input sheet to see if the execution per line was successful. The last column bearing the system message will be updated :

97539340.doc

-4-

Potrebbero piacerti anche