Sei sulla pagina 1di 8

AUTOMATION ANYWHERE

SAP AUTOMATION: MetaBot DLL Step List

This Document covers the steps covered in the demonstration for MetaBot DLL used to automate SAP application.
SAP AUTOMATION: MetaBot DLL Step List

Contents
Step 1: Create a new MetaBot using MetaBot Designer ......................................................................................................... 2
Step 2: Create an asset to record the screens/actions performed in the SAP system ............................................................ 3
Step 3: Record the screens/actions to extract all documents in the Inbox and Outbox of the Business Workplace ............. 4
Step 4: Create commands for each action executed in the SAP application using the functions in the SAP MetaBot DLL .... 5
Step 5: Save the MetaBot task................................................................................................................................................. 6
Step 6: Create the Run command in the Task Editor to run the MetaBot .............................................................................. 7

633 River Oaks Parkway San Jose, CA 95134 (San Jose address) 1
SAP AUTOMATION: MetaBot DLL Step List

Step 1: Create a new MetaBot using MetaBot Designer

A. Click MetaBots option from Automate menu in the AA Enterprise Client window to launch MetaBot Designer.

B. Click New to open a new MetaBot.

C. Enter a MetaBot name as SAP TableExtraction – SAP DLL.

D. Select the SAP Logon for Windows application from the application list.

E. Click Create.

633 River Oaks Parkway San Jose, CA 95134 (San Jose address) 2
SAP AUTOMATION: MetaBot DLL Step List

Step 2: Create an asset to record the screens/actions performed in the


SAP system

A. Click Add DLL in the MetaBot Designer window.

B. Select the SAPGUIScript.DLL in the Open window.

C. Click Open.

633 River Oaks Parkway San Jose, CA 95134 (San Jose address) 3
SAP AUTOMATION: MetaBot DLL Step List

Step 3: Record the screens/actions to extract all documents in the


Inbox and Outbox of the Business Workplace

A. Open SAP Easy Access application from the task bar at the bottom.

B. Click the Options icon in the tool bar.

C. Select Script Recording and Playback… from the list.

D. Click More in the Record and Playback window to view saving options.

E. Navigate or enter the location and file name to save the recording.

F. Click Record button to generate a VB script file of the actions performed.

G. To open the Business Workplace screen, enter Business Workplace T-code, SBWP, in the respective field and

press ENTER.

H. In Business Workplace screen, click Find Document.

I. Select the checkboxes for Inbox and Outbox.

J. Select the radio button for All documents.

K. Click the green tick mark button at the bottom.

L. Stop the recording when a table of documents is displayed.

633 River Oaks Parkway San Jose, CA 95134 (San Jose address) 4
SAP AUTOMATION: MetaBot DLL Step List

Step 4: Create commands for each action executed in the SAP


application using the functions in the SAP MetaBot DLL

A. To login to an existing session of SAP:

a. Navigate to the MetaBot Deisgner window and

b. Click the Logic tab.

c. Click Add Logic.

d. Expand the selected SAP DLL till the last node in the Logic Editor popup window.

e. Select the function for LoginOnExistingSession in the SAP DLL window.

f. Enter value as 1 in the parameter popup window and click ADD.

B. To enter the T-code and search:

a. Select the function for SearchObjectById in the SAP DLL window.

b. Navigate to the VB script file and open it.

c. Copy the Object ID for sbwp text.

d. Navigate back to the Logic Editor popup window.

e. Paste the object ID in the value field in the parameter popup window and click Add.

f. Select the function for ExecuteSetTextAction in the SAP DLL window.

g. Enter sbwp text in the Value text box and click Add.

h. Select the function for ExecuteEnterKey in the SAP DLL window.

i. Click Add in the parameter popup window.

C. To click “Find Document”option:

A. Select the function for SearchObjectByID in the SAP DLL window.

B. Copy the Object ID for Find document button.

C. Paste the object ID in the value field in the parameter popup window and click Add.

D. Select the function for ExecuteClick in the SAP DLL window.

E. Click Add in the parameter popup window.

D. Create commands for the remaining actions performed in the SAP applications in similar way.

633 River Oaks Parkway San Jose, CA 95134 (San Jose address) 5
SAP AUTOMATION: MetaBot DLL Step List

Step 5: Save the MetaBot task

A. Click Save in the MetaBot Designer window.

B. Enter a name for the MetaBot task and click Save.

633 River Oaks Parkway San Jose, CA 95134 (San Jose address) 6
SAP AUTOMATION: MetaBot DLL Step List

Step 6: Create the Run command in the Task Editor to run the
MetaBot

A. Return to the AA Enterprise Client window.

B. Click New and select Task Editor from the Automate window.

C. Click the MetaBot Refresh icon.

D. Expand My MetaBot folder and select the MetaBot created.

E. Select the MetaBot task created and click Save.

633 River Oaks Parkway San Jose, CA 95134 (San Jose address) 7

Potrebbero piacerti anche