With box(), you can draw a rectangular box around a single element or group of elements such as radiobutton, checkbox, etc. on a screen. You can also group elements from multiple screens onto a single screen and create a box around the elements, to aggregate similar functions.
The box() command helps you to organize screen elements and the screen layout.
Note: You can also create the box without label name.
- startrow, startcol, endrow, endcol - row and column co-ordinates.
- Label name - name of the box without icon.
The box command doesn't take any options.
The create box example demonstrates the usage of box command, as shown below:
Tips and Tricks
Create Multiple Layouts on the Same Screen
The same SAP screen can be used to display multiple layouts or different launch pads by passing different parameters.
box([2,9],[13,56],"Sales & Distribution");
Learn how to Create Multiple Layouts on the Same Screen using box() and pushbutton().
Edit text dynamically using Box Command
The text inside the box can be appended dynamically by reading the value from screen element.
box([1,100],[4,150],"Details for Sold to:&F[Sold-to party]");
As per the code, the value from "Sold-to party" field will get appended to the text in the box.