12.2 Screen Elements and Flow Logic (12.2.1 Components of a Dialog Program…
12.2 Screen Elements and Flow Logic
12.2.1 Components of a Dialog Program
created using Screen Painter SE51
each program defines ist own Screens
A screen consists of screen Elements and flow logic.
Flow logic controls the screen flow by calling various modules in the main program to which the screen belongs.
The various UI Elements, such as Input/Output fields, checkboxes, radio Buttons, Dropdown list boxes, table controls, and so on, called screen elements.
A GUI status controls the menu bar, standard toolbar, and application toolbar of the screen and passes the user Actions on those Elements as function codes to the program.
Each screen can load its own GUI status.
A GUI is defined using Menu Painter. SE41
All processing logic is maintained in the ABAP program in dialog modules, processing blocks that are maintained between MODULE and ENDMODULE.
These dialog modules are called from the screen flow logic for a screen event via the MODULE Statement.
Data is transferred from the screen to the program during a PAI event and from the program to the screen during a PBO event.
A dialog transaction links the program with its initial screen.
Screen flow logic
controls the screen flow and consists of different screen events from which dialog modules are called
The screen along with its flow logic is called a dynpro (dynamic program). Each dynpro represents a dialog step of the program.
A dialog step starts with the PAI of one screen and ends with PBO of the next screen.
Screens are dynamic programs (dynpros) that contain their own data objects.
The data objects of the screens are called screen fields and are linked to the I/O fields on the screen.
The system passes the data between the screen fields and identically named data objects of the program.
12.2.3 Screen Elements
The various screen elements of a dialog program make up the user interface (UI) of the screen.
Screen elements are created in graphical or alphanumeric mode in Screen Painter.
access the graphical layout editor by clicking the LAYOUT button in the application toolbar
to open the editor in alphanumeric mode
menu path UTILITIES->SETTINGS and select the SCREEN PAINTER tab
deselect the GRAPHICAL LAYOUT EDITOR option
basic screen elements
provide labels for other fields and are not editable
Dropdown list boxes
Associated with a function code.
When the user clicks the push button, the system triggers the PAI event and the function code is passed to the program.
used to group different screen elements
more specialized screen elements
Input/output (I/O) fields
display data in a tabular format
create multiple tabs on a single screen for easy navigation
Each tab of the tabstrip control loads a subscreen.
A custom container area can be marked on a screen where a custom control can be displayed.