Liquid UI - Documentation - 17.05 Change groupbox size

17.05 Change groupbox size


Prerequisites

Purpose

The article details how to use the boxsize() to resize the dimensions of a group box on an SAP screen. Furthermore, we will demonstrate how to resize the dimensions of a group box in the MB1C transaction while deleting the Reason for Movement and Special Stock fields based on Enter Other Goods Receipts: Initial Screen. Here, we’ll perform the following actions:

  1. Navigate to the MB1C transaction screen and delete the unnecessary input fields
  2. Resize the groupbox size
  3. Change the position of fields on the screen

User Interface

//Create the file SAPMM07M.E0400.sjs inside your scripts folder for customizing the Enter Other Goods Receipt: Initial screen
//Now, add the Liquid UI script to the above file, and save it.

Customization

  1. Log in to SAP, navigate to the MB1C transaction screen, and delete the Reason for Movement and Special Stock input fields using the del(), as shown below.
     
    //Deletes the input fields
    del("F[Special Stock]");
    del("F[Reason for Movement]");
    
     
     
  2. Resize the Defaults for Document Items group box using the boxsize().
     
    //Resizes the group box.
    boxsize("G[Defaults for Document Items]",[6,42]);
    
     
     
  3. Change the position of the following fields, using the pos().
     
    //Changes the position of the following on the SAP screen.
    pos("C[Suggest Zero Lines]",[9,1]);
    pos("R[Indiv.Slip w.Inspect.Text]",[13,44]);
    pos("R[Collective Slip]",[14,44]);
    pos("G[GR/GI Slip]",[11,0],{"box":true});
    pos("R[Individual Slip]",[12,44]);
    pos("C[Print]",[12,1]);
    
     
     

SAP Process

  1. Refresh the SAP screen, then you can see that specified fields are eliminated and the group box is resized accordingly, as shown in the image below.
     
     

Can't find the answers you're looking for?