You can use any of the following FORMAT options: COLOR <n> [ON|OFF] Colors the line background INTENSIFIED[ON|OFF] Intensify colors YES|NO INVERSE [ON|OFF] Inverse: Background/text color HOTSPOT [ON|OFF] Display mouse pointer as hand and single click with mouse button (used with AT LINE-SELECTION ) RESET Resets all formats to their default values The formats set with FORMAT take effect with the next WRITE statement. You can use all FORMAT options with the WRITE statement, but the options will affect only the one field in which they appear. FORMAT options in a WRITE statement change the global formatting instructions (set with a FORMAT statement) for the field.
You can use the AS SYMBOL option of the WRITE statement to include symbols in lists. The symbolic names of these characters are defined in include program <symbol> . You can also insert icons into the list with WRITE <f> AS ICON . To do this, you have to link the include program <icon> in your program. You can link the include program <list> to use both symbols and icons in the list. You can find an overview of available symbols and icons in the online documentation or in the statement examples for WRITE . To generate a horizontal line, use the ULINE statement, system field sy-uline in a WRITE statement. To generate a vertical line, use system field sy-vline in a WRITE statement
Use the additions LINE-SIZE <s> and LINE-COUNT <m> with the REPORT statement to create global definitions for column and line length for all list levels. The different list levels are created during interactive reporting. Within a list level, you can use NEW-PAGE LINE-COUNT <s> to change the number of lines on a page - this value overrides the definition in the REPORT statement. The width of a list can only be changed by creating a new list level. If you want to use the default values, then set <s> and/or <m> to zero. You cannot use variables for <s> or <m>. An optional addition in the REPORT statement, n, reserves a line for the footer. To create a footer, you have to program the END-OF-PAGE event.
You can maintain a list header (page header) and up to four column headers for a list. If you have not maintained a list title, the system uses the program name as a default (system field SY-TITLE ). The addition NO STANDARD PAGE HEADING in the REPORT statement suppresses the output of list/column headers. Alternatively the TOP-OF-PAGE event can be used to generate page headers. TOP-OF-PAGE is especially useful when you want to output variables in the headers. TOP-OF-PAGE is triggered whenever a new page is created ( WRITE , ULINE , and so on). If you do not suppress the standard list headers, they appear above the lines generated by TOP-OF-PAGE . Lines generated by TOP-OF-PAGE remain in the window during vertical scrolling.
Note the use of the START-OF-SELECTION event to separate the TOP-OF-PAGE event. START-OF-SELECTION is the default event if your program does not have an event entry.
Formatting Output - Solid Lines SY-ULINE & SY-VLINE allow you to frame a list, and separate headings by horizontal lines and columns by vertical lines. Explain how program works in reference to producing the output below: