The sequence of event processing for the selection screen of the ABAP-SAP
I. processing sequence diagram
Ii. handling instructions
1,ProgramFirst, execute the initialization event;
2. Execute the at selection screen output event (PBO). In this event, you can modify some properties of the screen by modifying the default screen table;
Parameters: test1 (10) modif ID SC1,
Test2 (10) modif ID SC2,
Test3 (10) modif ID SC1,
Test4 (10) modif ID SC2.
At selection-screen output.
Loop at screen.
If SCREEN-GROUP1 = 'sc1 '.
Screen-intensified = '1 '.
Modify screen.
Continue.
Endif.
If SCREEN-GROUP1 = 'sc2 '.
Screen-intensified = '0 '.
Modify screen.
Endif.
Endloop.
3. The system outputs the screen to the user end to perform interactive operations. That is, Pai processing, which is divided
3.1 field at selection-screen on XXXX.
Report event_demo.
Nodes spfli.
At selection-screen on city_fr.
If CARRID-LOW EQ 'A' and city_fr ne 'New Benjamin '.
Message e010 (HB ).
Endif.
3.2 area at selection-screen on block XXXX.
Report event_demo.
Selection-screen begin of block Part1 with frame.
Parameters: number1 type I,
Number2 type I,
Numbe R3 Type I.
Selection-screen end of block part1.
Selection-screen begin of block Part2 with frame.
Parameters: number4 type I,
Number5 type I,
Number6 type I.
Selection-screen end of block part2.
At selection-screen on block part1.
If Number3 lt number2 or
Number3 lt number1 or
Number2 lt number1.
Message e020 (HB ).
Endif.
At selection-screen on block part2.
If number6 lt number5 or
Number6 lt number4 or
Number5 lt number4.
Message e030 (HB ).
Endif.
3.3 screen at selection-Screen
In this event, you can check the integrity of user input.
If an error occurs during Pai processing, the system returns to the screen and requests the user to re-enter it;
4. When all Pai instances are executed, the start-of-selection event is executed.