Prerequisites
- Products: Liquid UI WS, Liquid UI Server or Local DLL, Client Software
- Commands: set(), enter()
User Interface
In this scenario, you’ll learn how to access the Create Sales Order: Initial screen without manually entering your SAP credentials or transaction code.
To do this, add the following script to the elogon.sjs file located in your scripts folder, then save it.
//Create the ELOGON.sjs file inside your scripts folder.
//Now, add the Liquid UI script to the above file and save it.
- Add a username and password, to navigate to the transaction screen.
//Creates the group catalog array with group names, directories, and transaction codes
set("F[User]","username");
// sap password set("F[Password]","password"); enter();
//Passed VA01 Transaction code through enter command
onscreen 'SAPLSMTR_NAVIGATION.0100'
enter('/nva01'); - Now, open SAP GUI, and on the logon pad, select the required Server Connection. Then, you will automatically navigate to the Create Sales Order: Initial Screen (without entering your SAP logon credentials).
Note: The password can be encrypted and decrypted, then assigned to a variable, which can in turn be passed to the Password input field using a simple WS function.