Creating Dynpros/Screens To create a screen in ABAP, we can use the Screen Painter via transaction SE51 or directly access it through transaction SE80, as we'll do from now on. Access transaction SE80 with the program ZPRUEBA_DIALOGO, right-click on it, and select the option Create/Screen. Enter a screen number and continue. A screen is identified by a unique four-digit number within an ABAP program. Configure the screen options on the Attributes tab: Brief description: Describe the purpose of the screen. Screen type: Specify whether it's a Normal screen (occupies the whole screen), a Subscreen (can be shown in an area of any screen within the Module Pool), or a Modal dialog window (occupies only part of a screen). Next screen: Specify the number of the next screen to be displayed. Cursor position: Specify where the cursor will be positioned when the screen is displayed. Screen group: Assign a group number to modify multiple screens uniformly. On the Elements List tab, you'll see the list of elements composing the screen. Since no elements are created yet, you'll only see the OK button. Assign a variable name for the OK_CODE field, which will contain the function code corresponding to the button pressed or action performed on the screen. Proceed to design the screen layout using the Screen Painter. Use the provided elements: Text Field: Used to display static texts on the screen. Allows configuring attributes such as text, icon, and length. Input/Output Field: Fields for entering, displaying, or modifying data. Can be configured as dropdown lists or scrollable fields. Checkbox: Creates a checkbox on the screen. Allows specifying a function code for the checkbox. Radio Button: Creates a radio button for selecting between two values. Can be grouped to allow selecting only one option from a group. Pushbutton: Creates buttons on the screen. The most important attribute is the function code, which determines the action when pressed. Tabstrip Control: Creates a control with multiple tabs for organizing content. Can be created manually or with a wizard. Box: Organizes elements on the screen. Can contain other screen elements. Subscreen area: An area within a screen where another screen (Subscreen) can be placed. Table Control: Allows viewing and modifying table data. Will be covered in detail in subsequent lessons. Custom Control: Container for displaying another screen element. Status Icon: Used to indicate the status GUI of the program. Configure attributes for each element and define their functionalities within the screen layout. In the Logic tab, specify the processing logic of the screen, such as the events PBO (Process Before Output) and PAI (Process After Input). PROCESS BEFORE OUTPUT. * MODULE STATUS_0100. PROCESS AFTER INPUT. * MODULE USER_COMMAND_0100. Remember, screens need to be activated to run within a dialog program.