Use SAP GUI automation engine to record VBScript
Confirm that all SAP GUI scripting configurations are done.
Open SAP Logon, and then select the SAP system to which you want to sign in.
Select Customize Local Layout (Alt F12), and then select Script Recording and Playback.
Select More.
Under Save To, provide the path and file name where you want to store the captured user interactions.
Select Record Script to start the screen capturing process.
Every interaction you do in SAP will be captured as repeatable VBScript commands.Follow the steps outlined in Sample SAP GUI automation for this tutorial to produce a recording.
Select the Record and Playback dialog, select Stop Recording, and then close the dialog.
Close all SAP windows now, if you wish.
SAP's scripting engine records each click as VBScript commands and saves it to the output file you provide. Open the file in your code editor of choice to examine its contents.