Sap Read Text From Field Step

Brief description

This step reads a text value from a specified field within an active SAP session. It is used to capture and store values displayed in SAP GUI elements, such as field contents, labels, or status messages, for further use in the automation process.

Step Information

Step name (Not required) – the custom name of the process step that labels the editor’s process step box

Input parameters

  • Reference to SAP instance (Required) – specifies the SAP session reference that identifies the active SAP session from which the text will be read. This must correspond to the reference used in the Open Sap Session Step.
  • Selector (Required) – specifies the selector or path used to locate the SAP GUI element from which the text will be extracted.
  • Is status message (Required) – defines whether the text being read is a system status message:
    • T (true) – reads text from the SAP status bar message
    • F (false- default value) – reads text from a regular SAP field

Output parameters

  • Text read (Required) – specifies the name of the variable that stores the extracted text value from the SAP field or message.

Additional comments

This step is used to retrieve text data from SAP fields or status messages during automation.
If Is status message is set to True, the step will read the text from the SAP status bar; otherwise, it will read the text from the field specified by the Selector.
Ensure that the Selector correctly identifies the SAP element and that the SAP reference matches the active session.
The retrieved text can be stored in a variable and used in subsequent steps for validation, logging, or decision-making.

Was this article helpful?