Now let us write the flow logic for both the screens.
Screen 100
Process before output.
Module status_0100.
*
Process after inout.
Module User_Command_0100.
Screen 200
Process before output.
Module status_0200.
*
Process after inout.
Module exitscreen at exit-command.
Field ztryemp-name module check_name.
Field ztryemp-phone module check_phone.
Field ztryemp-basic module check_basic.
Module User_Command_0200.
To add the code to each module, double click on the module. This will bring up a screen asking you to select the proper sub program from the module pool to place the code in it. Select the proper PBO, PAI and Form program to include the respective code.
We will first see the PBO sub-program for both screens.
PBO modules are used for initializing variables, assigning the pf-statuses and titlebars for dynpros, and other screen processing to be done before the screen is displayed and re-displayed.