SET BLANK LINES ON
was not executed beforehand.
Example ABAP Coding Displays a ready-for-input field and evaluates it in the
AT LINE-SELECTION event. The evaluation is done only if the user
clicks on the hotspot below the line that is ready for input.
DATA: input_field TYPE c LENGTH 100,
line_num TYPE i.
START-OF-SELECTION.
WRITE 'Input text:'.
SET BLANK LINES ON.
FORMAT INPUT.
WRITE / input_field.
FORMAT INPUT OFF.
WRITE / '>>> OK <(><<)><(><<)><(><<)>' COLOR 5 HOTSPOT.
AT LINE-SELECTION.
IF sy-lisel = '>>> OK <(><<)><(><<)><(><<)>'.
line_num = sy-lilli - 1.
READ LINE line_num FIELD VALUE input_field.
WRITE: 'The input was:',
/ input_field.
ENDIF.
ABAP_ADDITION_6 ... FRAMES [{ON|OFF}|{= flag}]
What does it do? This addition defines whether the "-" and "|" characters
are transformed to line elements .
flag expects a data object of type i . If ON is
specified or if the content of flag is not equal to 0, the
characters are transformed in the relevant list area (default setting).
If OFF is specified or if the content of flag is not equal
to 0, the characters are not transformed. If none of ON , OFF
, or flag are specified after FRAMES , the addition
ON is applied.
In the FRAMES ON setting, the following points apply:
If the "-" and "|" characters are displayed directly next to each
other or above each other, they are replaced by line elements, producing
continuous lines (frames). This applies particularly to the output of
lines using ULINE .
A solitary "|" character is always replaced by a vertical line.
Line elements that are displayed explicitly by the AS LINE
addition are not replaced by other line elements and they do not
influence "-" and "|" characters that are next to each other.
In the FRAMES OFF setting, the "-" and "|" are not converted
into line elements. Line elements can be displayed explicitly using the
addition AS LINE .
Latest notes: The addition FRAMES OFF is suitable for preventing
unwanted results in spool lists. This applies particularly to lists that
are intended for archiving.
Example ABAP Coding Displays a frame with the characters "-" and "|"
joined/not joined.
CLASS demo DEFINITION.
PUBLIC SECTION.
CLASS-METHODS main.
PRIVATE SECTION.
CLASS-METHODS frame.
ENDCLASS.
CLASS demo IMPLEMENTATION.
METHOD main.
FORMAT FRAMES ON.
frame( ).
FORMAT FRAMES OFF.
frame( ).
ENDMETHOD.
METHOD frame.
SKIP.
WRITE: / '----',
/ '| |',
/ '----'.
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
demo=>main( ).
ABAP_ADDITION_7 ... RESET
What does it do? This addition sets all formatting settings for which the
corresponding addition is not specified in the same FORMAT
statement to the state OFF , apart from the setting of the
addition FRAMES , which is set to ON . For settings whose
addition is also specified, the addition RESET is ignored.
The following table shows the effect of RESET compared with the
default settings (the setting when the program starts and the setting
that is made for reporting and list events).
Addition State after RESET State after
Program Start State after Reporting Event/List Event
COLOR OFF OFF OFF
INTENSIFIED OFF ON ON
INVERSE OFF OFF OFF
HOTSPOT OFF OFF OFF
INPUT OFF OFF OFF
FRAMES ON ON No change
Example ABAP Coding This FORMAT statement creates the default setting
after the program starts.
FORMAT RESET
INTENSIFIED ON.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved