SAP WINDOW ABAP Statements
Get Example source ABAP code based on a different SAP table
Standard SAP Help for WINDOW
WINDOW
• WINDOW ABAP Statement
• STARTING AT WINDOW
• ENDING AT WINDOW
ABAP Syntax
What does it do? This statement initiates the display of the currently created details list in a dialog box. It functions in the event blocks only for an interactive list event. In the case of several
The upper left corner is determined for the column and the line by the values in
For
If no GUI-Status is set with
Latest notes:If a GUI-Status is set with
Example ABAP Coding
This example displays the details of an airline in a dialog box after selecting a line. DATA: scarr_wa TYPE scarr,
col TYPE i,
lin TYPE i.
START-OF-SELECTION.
SELECT carrid
FROM scarr
INTO scarr_wa-carrid.
WRITE / scarr_wa-carrid.
HIDE scarr_wa-carrid.
ENDSELECT.
CLEAR scarr_wa-carrid.
AT LINE-SELECTION.
col = sy-cucol + 40.
lin = sy-curow + 2.
WINDOW STARTING AT sy-cucol sy-curow
ENDING AT col lin.
IF sy-lsind = 1 AND
scarr_wa-carrid IS NOT INITIAL.
SELECT SINGLE carrname url
FROM scarr
INTO (scarr_wa-carrname,scarr_wa-url)
WHERE carrid = scarr_wa-carrid.
WRITE: scarr_wa-carrname, / scarr_wa-url.
ENDIF.
Return to menu