Assigning values to screen elements

You can use the set command to assign values to SAP screen elements. You can assign either string values or numeric values. In this example we will assign values to several fields on the VA01 initial screen.
  1. Launch SAP and navigate to the VA01 initial screen:
  2. Open the SAPMV45A.E0101.sjs script file, and enter the following code. Create the file if it does not already exist.
            set("F[Order Type]", "OR");
            set("F[Sales organization]", "1000");
            set("F[Distribution Channel]", "10");
            set("F[Division]", "00");
            enter();
          
  3. Save the changes and refresh the SAP screen. It will now display as shown below: