Development resources, articles, tutorials, code samples, tools and downloads for SAP HANA and ABAP, HANA Database, SQLScript, SAP UI5, Screen Personas, Web Dynpro, Workflow
SAP Scripting and Sample Scripts for ABAP Developer
This SAP scripting guide provides an overview of sample scripts for SAP and ABAP developers that can be used in different applications.
SAP Scripting
In order to get the text message displayed on the status bar at the bottom of the SAP GUI, ABAP programmers can use following script
As a developer, if you are looking for the type of message in the status bar of the SAP GUI, then you can use following script:
Instead of searching for the message text displayed in the current user's language on the SAP GUI status bar, you can get the message number using this script
Since message text will change from language to language, you can configure your solution based on the message number instead of using the message text.
If you want to select a program VARIANT from a list of variants, you can use the following script code
Below is the table with the variants in the script: "wnd[1]/usr/ssubD0500_SUBSCREEN:SAPLSLVC_DIALOG:0501/cntlG51_CONTAINER/shellcont/shell"
The name is easy to capture with the script recorder.