Entering content frameProcessing Multiple Selections Locate the document in its SAP Library structure

If the user opens the Multiple selections dialog box for a selection option, the same events are triggered in the PAI of the selection screen as if the user had chosen Execute. The user can then enter the required multiple selections. In the Multiple selections dialog box, user actions either lead to input help or trigger the PAI event of the dialog box. At first, the

AT SELECTION-SCREEN ON <seltab>

event is triggered for the current line of the selection table. It can then be processed like a single field.

Next, the

AT SELECTION-SCREEN ON END OF <seltab>

event is triggered. This event block allows you to check the whole selection table <seltab>. Warning messages are displayed as dialog boxes, not in the status line.

Example

The program below is connected to the logical database F1S:

REPORT EVENT_DEMO.

NODES SPFLI.

AT SELECTION-SCREEN ON END OF CARRID.
  LOOP AT CARRID.
    IF CARRID-HIGH NE '   '.
      IF CARRID-LOW IS INITIAL.
        MESSAGE W050(HB).
      ENDIF.
    ENDIF.
  ENDLOOP.

If the user chooses the multiple selection button (This graphic is explained in the accompanying text) on the selection screen, and then enters upper limits without lower limits in an interval field, a dialog box appears with a warning:

This graphic is explained in the accompanying text

 

 

Leaving content frame