SAP Automation
The SAP Automation activity group contains activities designed to connect to SAP client and efficiently automate tasks or work within that SAP client. These activities are generally used to log into SAP client, run a transaction, perform element action, and log out from SAP client.
For example, you can use the SAP Automation to access an element within SAP UI, perform set text, get text, mouse click operations based on the element type such as text field, radio buttons, check box, or buttons. You can also copy text from an element to desktop application such as Word, Excel and Notepad or vice versa.
Perform the following steps before executing a bot with SAP automation activities:
- Enable accessibility settings in SAP GUI for Windows. Refer SAP documentation for information about Accessibility for SAP GUI for Windows.
- Enable scripting on the client side to use SAP GUI for Windows for automation purposes. Refer SAP documentation for information about Enabling Scripting on the Client Side.
- Enable scripting on the server side to use SAP GUI for Windows for automation purposes. Refer SAP documentation for information about Enabling Scripting on the Server Side.
- Install Scripting Tracker tool that helps to retrieve the field path of the SAP objects. The Scripting Tracker is currently available for download at https://tracker.stschnell.de/. The Scripting Tracker must always be launched as Administrator. You can also access this link from ASG-Studio Manager, Advanced, RPA Tools, SAP Tracker.
- Install SAP GUI client that allows remote access to SAP central server. Currently only SAP GUI 7.60 for Windows is supported.
SAP Automation Activities
The SAP Automation group includes the following activities:
Enables you to establish a connection and log into the SAP client on which you want to perform automation tasks.
Properties
- Name: Enter the display name of the action.
- SAP Application Path: Enter the access path of the specific application that you want to login. For example,
C:\Program Files (x86)\SAP\FrontEnd\SapGui\saplogon.exe
. - Connection Mode: Select whether you want to login the application using Connection Name or Application Server.
- Select Conn Name to login using connection name and then enter Connection Name.
- Select App Server to login using the application server and then enter Application Server and Port details.
- Select Conn Name to login using connection name and then enter Connection Name.
- Client: Enter the client identifier that is already created in SAP which you want to access.
- Username: Enter the user name variable that is created in Vault Manager which has access to the SAP client.
- Password: Enter the password variable associated with the selected user name.
- Language: Enter the language code in which the SAP client should open.
Provides access to the specified transaction code.
Properties
- Name: Enter the display name of the action.
- Transaction Code: Enter the SAP transaction code to go to a task and start the function in a single step.
Allows to perform an action on the SAP GUI after the client login.
Properties
- Name: Enter a display name for the action.
- Element Search Type: Select a search type to identify an UI element in SAP on which you want to perform the action. You can search for elements using one of the following options:
- Find Element by ID: Allows to search for the elements by their ID.
- Find Element By Name: Allows to search for the elements by their name.
- Search Parameter Type: Select the parameter type to match the elements that are filtered based on the specified Element Search Type. The following parameter types are supported:
- GuiTextField
- GuiPasswordField
- GuiCTextField
- GuiOkCodeField
- GuiStatusbar
- GuiButton
- GuiCheckBox
- GuiRadioButton
- GuiPicture
- GuiMenu
- GuiTree
GuiLabel
- Search Parameter: Enter the specific parameter to match the element filtered using element type and parameter type above. For example, DATABROWSE-TABLENAME. You can use Scripting Tracker to search the parameters.
- Element Action: Select an action that you want to perform on the specified element. You can perform the following actions:
- Left Click: Allows to perform left click on the element field that is filtered using the search parameters. This action is allowed to perform on the search parameter types such as GuiButton, GuiCheckBox, GuiMenu, GuiRadioButton, and GuiPicture.
- Right Click: Allows to perform right click on the element field that is filtered using the search parameters. This action is allowed to perform on the search parameter type GuiTree.
- Node Name: Specify the label of the node on which you want to perform the right click operation.
- ContextMenu Option: Enter the action name you want to execute that pops out upon right click operation.
- Double Click: Allows to perform double click on the element field that is filtered using the search parameters. This action is allowed to perform on the search parameter type GuiTree.
- Node Name: Specify the label of the node on which you want to perform the double click operation.
- Set Text: Allows to post the text in the element field that is filtered using the search parameters. Enter the text that you want to post in Text to Set field. This action is allowed to perform on the search parameter types such as GuiTextField, GuiPasswordField, GuiCTextField, and GuiOkCodeField.
- Get Text: Allows to fetch the text from the element field that is filtered using the search parameters. Enter the Variable Name that is associated with the content to fetch. This action is allowed to perform on the search parameter types such as GuiTextField, GuiCTextField, GuiOKCodeField, GuiStatusbar, and GuiLabel.
Allows the currently logged in user to disconnect from the SAP session.
Properties
- Name: Enter a display name for the action.
- Close SAP Application: If you want to close SAP application after disconnecting the user from SAP session, set the toggle bar to On.