SAP LIST WINDOW ABEXA

Get Example source ABAP code based on a different SAP table
  


ARTICLE

Lists, Dialog Boxes
The example shows how to display a details list in the dialog box.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
In this program, the status of the basic list is set to BASIC. In the status BASIC, the default function code PICK for the key F2 has been replaced by the user-defined function code SELE (text SELECT) which has been inserted in the application toolbar.
As a result, choosing SELECT or F2 or double-clicking the mouse triggers the event AT USER-COMMAND. In the associated processing block, the list levels 1 and 2 are output with the status DIALOG 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.
The titles WI1 and WI2 have been 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 scrollbars 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.