SAP LIST WINDOW ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_LIST - Dialog Box
The example shows how to display a details list in the dialog box.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
This program sets status BASIC for the basic list. In the status BASIC, the default function code PICK for the key F2 is replaced by the user-defined function code SELE (text SELECT) and SELE is inserted in the application toolbar.
For this reason, SELECT, F2, and double-clicking with the mouse all raise the event AT USER-COMMAND. In the corresponding processing block, list levels 1 and 2 have the status DIALOG and are output as a dialog box. Like in the status BASIC , the default function code PICK is replaced in the status DIALOG by the function code SELE which is inserted in the application toolbar after Cancel.
Titles WI1 and WI2 are defined for the dialog boxes. In the second dialog box, the function code SELE has been disabled using the addition EXCLUDING in the statement SET PF-STATUS .
The system displays horizontal scroll bars in the dialog boxes since the list width of the dialog boxes is not adjusted and therefore corresponds to the standard width of the basic list.