SAP Actions
SAP Actions to navigate in SAP
Actions
sap.connect
Create a new connection to SAP
Parameters:
connection_name - Name of connection to be connected
logon_path (optional) - Path to your chrome.exe file, if your installation is not in one of the default Chrome installation paths: C:\Program Files (x86)\SAP\FrontEnd\SAPgui\saplogon.exe
sap_logon_timeout - Maximum number os seconds to wait a successful login
Return:
sap - Connection stablished with SAP
Exceptions:
SAPLogonNotFound - When SAP Logon fails
sap.call_transaction
Change the call transaction
Parameters:
sap - Connection stablished with SAP. Connections are created using sap.connect
transaction - Transaction to be called
Return:
This action gives no return
Exceptions:
This action gives no exceptions
sap.click_element
Click on given SAP element
Parameters:
sap - Connection stablished with SAP. Connections are created using sap.connect
id (optional) - Id of the element to be clicked
element (optional) - Element to be clicked
Return:
This action gives no return
Exceptions:
InvalidParameters - If needer an ID nor an Element was given
sap.close
Close SAP connection and SAP Logon process
Parameters:
sap - Connection stablished with SAP. Connections are created using sap.connect
Return:
This action gives no return
Exceptions:
This action gives no exceptions
sap.enter
Send an ENTER on SAP screen
Parameters:
sap - Connection stablished with SAP. Connections are created using sap.connect
Return:
This action gives no return
Exceptions:
This action gives no exceptions
sap.get_session
Return the SAP Session to simply automation and reuse script
Parameters:
sap - Connection stablished with SAP. Connections are created using sap.connect
Return:
session - SAP Session
Exceptions:
This action gives no exceptions
sap.find_by_id
Find an element on SAP GUI by its ID
Parameters:
sap - Connection stablished with SAP. Connections are created using sap.connect
id - ID of SAP GUI element
Return:
element - SAP GUI element
Exceptions:
This action gives no exceptions
sap.maximize_window
Maximize SAP window
Parameters:
sap - Connection stablished with SAP. Connections are created using sap.connect
Return:
This action gives no return
Exceptions:
This action gives no exceptions
sap.set_text
Set text to SAP element
Parameters:
sap - Connection stablished with SAP. Connections are created using sap.connect
id (optional) - Id of the element to be set text
element (optional) - Element to set text
Return:
This action gives no return
Exceptions:
InvalidParameters - Raised if neither an ID nor an Element is given