Mentor SAP
button and create the custom control element (with the left mouse button). To set the size of the element on the screen, fix the upper-left corner of the area by pressing the Select button of your mouse. Hold down the mouse button and drag the mouse diagonally to the right and down to the desired lower-right corner of the area to be created. As soon as you release the mouse button, the lower-right corner is fixed.

 

If you need to resize and reposition the screen element, drag the drag points, which appear at the edge of the area.

 

Enter a name for the newly created screen element (CONTROL_AREA in the example in the figure).

 

To delete a screen element, select it with the mouse and choose the Delete button. You can also use the clipboard functions (cut, copy, and paste).

 

To move the screen element, hold down the left mouse button and drag it to a new position. To select multiple screen elements, hold down the left mouse button and use the Ctrl key on the keyboard.

 

 

Creation of a Screen - Screen Element Attributes

To set the attributes for a screen element, double-click the screen element. A dialog box appears in which you can make the required entries.

 

For the custom control area, use the two attributes Resizing vertical and Resizing horizontal to define whether the area is also to be rescaled (if necessary), if the size of the screen changes. When you select these checkboxes, you can set the minimum values for the area using the Min. Lines and Min. Columns fields. The upper limit for the size of the area is defined by the size you created.

 

You can see the details for several screen elements in the element list. You can open the element list by choosing the button with the green rectangle.

 

 

Screen Flow Logic

To create a module, double-click the module name in the flow logic editor. You can define all modules in the main program, but it is better to create separate include programs for PBO modules, and PAI modules, respectively.

 

You can also create a module from the object list of your program in the Object Navigator. To do this, right-click the program name and choose CreatePBO Module or CreatePAI Module.

 

You can call a module from more than one screen of the same program. You can make parts of the code screen-specific by checking the screen number in the system field sy-dynnr.

 

 

GUI Status Creation

Unlike a list or a selection screen, a screen created by a developer in the Screen Painter does not, by default, have its own set of standard user functions. Instead, you must define these functions using a GUI status.

 

A GUI status is made up of a menu bar, a standard toolbar, an application toolbar, and function key settings.

 

Menus are located at the top of the screen and can also contain submenus. You can find the System and Help menus on every screen in the system. These menus always contain the same functions. You cannot change or hide these menus.

 

The standard toolbar contains icons for frequently-used functions. The arrangement, appearance, and assignments to the function codes of the toolbar are preset in the SAP system. Inactive functions appear gray.

 

The application toolbar allows the user to choose functions by clicking the corresponding button.

 

A function key setting defines the function keys assigned to a specific function.

 

A screen may also have a title, which is set using a separate titlebar object. The user interface is made up of all the GUI titles and statuses of a program. When you add a new status, you must activate the user interface once again.

 

 

Creation of a GUI Status

The easiest way to create a status is by using forward navigation (that is, by double-clicking the name of a status) from a PBO module.

 

In the SET PF-STATUS statement, you enclose the name of the status in single quotes. The status type determines the technical attributes of the status. You can choose a Normal screen status