BitacoraSapAbap

30-03-2008

WINDOW (glosario ingles)

Archivado en: abap : glosario — bitacorasapabap @ 20:36:18

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.
Index
© SAP AG 1996

Blog de WordPress.com.