SAP WINDOW ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID WINDOW
• WINDOW ABAP Statement
• STARTING AT WINDOW
• ENDING AT WINDOW

WINDOW
Short Reference

ABAP_SYNTAX
WINDOW STARTING AT col1 lin1
$[ENDING AT col2 lin2$].

What does it do?
This statement initiates the display of the current details list in a dialog box. It only works in the event blocks for an interactive list event. If there are multiple WINDOW statements in an event block, the last one is valid.
The upper left corner is determined for the column and the line by the values in col1 and lin1. The values refer to the GUI window of the basic list. The lower right corner is set automatically. The maximum lower right corner can either be specified in col2 and lin2 or is specified using the lower right corner of the GUI window where the list event took place.
col1, lin1, col2, and lin2 expect data objects of the type i. The values of all data objects should be within the GUI window of the basic list and the values of col1 and lin1 should be less than those of col2 and lin2 . If not, the behavior is undefined.
If no GUI status is set using SET PF-STATUS and an event block is defined using AT LINE-SELECTION or AT PFnn, the system automatically uses a standard list status suitable for the dialog box without a menu bar and system toolbar. This includes pushbuttons for the predefined function codes PICK (only for AT LINE-SELECTION), PRI, %SC, %SC+, and RW in the application toolbar.



Latest notes:

If a GUI status is set using SET PF-STATUS, this should be created in the Menu Painter as a dialog box status and by including the list template.
ABAP_HINT_END



Example ABAP Coding

Displays the details of an airline in a dialog box after a line is selected.
ABEXA 00766
ABAP_EXAMPLE_END

Return to menu