Knowledge base
Tips and tricks Best practice guides, FAQ & more
Find tutorials, guides and use case examples in the
Learning center
The Validate SAP building block is used to validate SAP artifacts like text, numbers, and other elements.
Fully expanded, the Validate SAP block shows the following properties:
The Block Header (“Validate SAP”)
The green input connector in the header is used to trigger the block to start executing.
The green output connector in the header triggers when the SAP element has been successfully found and validated.
The title of the block (“Validate SAP”) can be changed by double-clicking on it and typing in a new title.
This property contains the locator for the SAP element to be found.
An SAP element can be captured by right-clicking on the property and selecting “Capture new element”.
This property contains the SAP target value. This value is set as soon as element is been captured.
Wildcards can be used in the Target field to make automation script more flexible and dynamic in nature. To insert the wildcard, click on insert and select wildcard.
Ex: [5,"Lo(wildcard)"] it will fetch fifth element starts with Lo.
These fields enable the use of external values (dynamic data) in the “Target”.
To use the value of an added field, right-click the text field above where the target can be entered and select “Insert token”, then insert this field’s name.
Fields can be renamed by double-clicking on them. The tokens will change their visual appearance accordingly.
Enter the text to validate in the SAP element.
These fields enable the use of external values (dynamic data) in the “Validate Text”.
To use the value of an added field, right-click the text field above where the Validate text can be entered and select “Insert token”, then insert this field’s name.
Fields can be renamed by double-clicking on them. The tokens will change their visual appearance accordingly.
This property contains the text that was found.
This property is used support multi-session functionality of an SAP.
This green output connector triggers if the SAP element is not found before the timeout (see below). This is typically used to branch the execution flow or to explicitly fail a case by linking it to a Fail block.
If the 'Default Timeout' checkbox is unchecked, then you can enter the timeout value based on requirement otherwise the timeout value is set as 10 seconds. If the 'Default Timeout' checkbox is checked, the 'Default timeout' value selected in the flow settings will be applied.
©2024, Leapwork. All rights reserved.