A screen can contain a wide variety of elements, either for displaying field contents, or for allowing the user to interact with the program (for example, filling out input fields or choosing pushbutton functions). You use the Screen Painter to arrange elements on the screen.
You can use the following elements:
Display elements, which cannot be changed either by the user or by the ABAP program.
Input/output fields and templates
Used to display data from the ABAP program or for entering data on the screen. Linked to screen fields.
Dropdown list boxes
Special input/output fields that allow users to choose one entry from a fixed list of possible entries.
Special input/output fields that the user can either select (value 'X') or deselect (value SPACE). Checkbox elements can be linked with function codes.
Radio button elements
Special input/output fields that are combined into groups. Within a radio button group, only a single button can be selected at any one time. When the user selects one button, all of the others are automatically deselected. Radio button elements can be linked with function codes.
Elements on the screen that trigger the PAI event of the screen flow logic when chosen by the user. There is a function code attached to each pushbutton, which is passed to the ABAP program when it is chosen.
Pure display elements that group together elements on the screen, such as radio button groups.
Area on the screen in which you can place another screen.
Tabular input/output fields.
Areas on the screen in which you can switch between various pages.
Areas on the screen in which you can display controls. Controls are software components of the presentation server.
Display elements, indicating the status of the application program.
Every screen has a twenty-character OK_CODE field (also known as the function code field) that is not displayed directly on the screen. User actions that trigger the PAI event also place the corresponding function code into this field, from where it is passed to the ABAP program. You can also use the command field in the standard toolbar to enter the OK field. To be able to use the OK field, you need to assign a name to it.
All screen elements have a set of attributes, some of which are set automatically, others of which have to be specified in the Screen Painter. They determine things such as the layout of the screen elements on the screen. You can set the attributes of screen elements in the Screen Painter - either for a single element, or using the element list, which lists all of the elements belonging to the current screen. Some of the attributes that you set statically in the Screen Painter can be overwritten dynamically in the ABAP program. For a detailed list of all screen element attributes, see Working with Element Attributes in the Screen Painter documentation.