
Possible Minimal Status for an ALV Application
If you are only using a screen as a basis for an ALV in a container, it is sufficient to define a minimal status. As a minimum, the Back, Cancel, and Exit functions should be activated. It is good practice to include these functions in the standard toolbar, so that they are automatically assigned to the appropriate function keys, and to integrate them in the menu.
Every time you change an interface element, activate the program interface again for the changes to take effect.

User Command Processing
The automatic field transport at the beginning of PAI ensures that the function code is available in this selected field for processing. It can be evaluated using ABAP code within the PAI module of the flow logic.
If you want to return to the point where the screen was called, program the LEAVE TO SCREEN 0 command in the PAI module. If you want to leave the program, program the LEAVE PROGRAM command.
To avoid the function code leading to unexpected processing steps on the next screen (ENTER does not change the command field), initialize the field during every dialog step. One of the possibilities is to reset the value of the field in a PBO module.
