WINDOW is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details.
WINDOW
Basic form
WINDOW STARTING AT x1 y1.
Addition
... ENDING AT x2 y2
Effect
Displays
the current secondary list as a modal dialog box (see CALL SCREEN ).
The same rules apply as for displaying a list on the full screen, i.e.
the page size corresponds to the window size.
The left upper
edge of the window appears at column x1 and line y1 . If you do not
specify the addition ENDING AT , the position of the right lower edge
corresponds to the coordinates of the current screen.
You can use variables to specify the coordinates.
All the functions for secondary lists are supported. These include:
Scrolling in the window.
Hiding field contents (see HIDE ).
Line selection in the window (see AT LINE-SELECTION , ...)
Set the window title (see SET TITLEBAR )
Addition
... ENDING AT x2 y2
Effect
Positions the right lower edge of the window in column x2 and line y2 .
You can use variables to specify the coordinates.
Example
Define a window covering columns 1 to 79 and lines 15 to 23:
WINDOW STARTING AT 1 15
ENDING AT 79 23.
WRITE 'Text'.
Note
Inserts a window on the normal screen .
You
can insert the windows described above only within the context of list
processing, i.e. not until after an interactive event (see AT
LINE-SELECTION ).
You can use the technique shown in the example below to insert a window containing a list during a dialog (see CALL SCREEN ).
Example
Display a list as a modal dialog box:
CALL SCREEN 100. "Screen of modal dialog box type
* STARTING AT 10 10 "... can be started as
* ENDING at 60 15. "... separate window with
* "... these additions
In
the flow logic of the screen 100, the processing branches to list
processing in the PBO ( Process Before Output ) module (see LEAVE TO
LIST-PROCESSING ).
Flow logic:
PROCESS BEFORE OUTPUT.
MODULE LIST.
Program:
MODULE LIST OUTPUT.
LEAVE TO LIST-PROCESSING.
* AND RETURN TO SCREEN 0. "Alternative to LEAVE SCREEN
* "at end
PERFORM OUTPUT. "Output list
LEAVE SCREEN.
ENDMODULE.
Related 10 ABAP Syntax Tutorials
Most readed SAP Tutorials
- WRITE - Output to a list ( SAP ABAP Keyword)
WRITE ( Output to a list ) is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - List of SAP HR TABLES and Infotypes tables
Detailed full list of tables and infotypes used in SAP HR module. - List of SAP MM Transaction codes
This documentation covers the details of SAP MM Transaction codes - SELECT-OPTIONS ( SAP ABAP Keyword)
SELECT-OPTIONS is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - FI Accounts Receivable and Accounts Payable | SAP FI PDF manual
The following topics are an introduction to the Accounts Receivable and Accounts Payable application components. - SAP MM Process Flow
The typical procurement cycle for a service or material consists of the following phases: - SELECT clause ( SAP ABAP Keyword)
SELECT clause is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details.
Latest Added SAP documents
- 9KE9 Transaction code
Details about SAP transaction code 9KE9 - 9KE8 Transaction code
Details about SAP transaction code 9KE8 - 9KE7 Transaction code
Details about SAP transaction code 9KE7 - 9KE6 Transaction code
Details about SAP transaction code 9KE6 - 9KE5 Transaction code
Details about SAP transaction code 9KE5 - 9KE4 Transaction code
Details about SAP transaction code 9KE4 - 9KE3 Transaction code
Details about SAP transaction code 9KE3 - 9KE2 Transaction code
Details about SAP transaction code 9KE2 - 9KE1 Transaction code
Details about SAP transaction code 9KE1 - 9KE0 Transaction code
Details about SAP transaction code 9KE0