Exercise 1: Reserving an Area for a Control
Prerequisites
You have created an executable program as a local object.
Procedure
START-OF-SELECTION.
SET SCREEN '100'.
Then create the screen with the following attributes:
If you use the alphanumeric mode of the Screen Painter, follow these steps:
If you use the graphical mode of the Screen Painter, follow these steps:
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
DATA ok_code LIKE sy-ucomm.
Check Your Work
When you start your program, the system displays your screen with one pushbutton. The container for the custom control is not displayed. If you click the pushbutton, the system returns you to your main program.