‎2008 Mar 10 9:01 AM
Hi all,
How to make charcters bold and increase the font size in normal classical report?
‎2008 Mar 10 9:04 AM
Hi.
Yu may try this.
Format Intensified.
write statements....
...................
Format Intensified Off.
‎2008 Mar 10 9:08 AM
Hi
Use the INTENSIFIED option in the write statement to make it bold.
For font size, use the PRINT_CONTROL stmt with fomat <SIZE>
Thanks
VIjay
‎2008 Mar 10 9:15 AM
Hi,
See the document...with example...
The options COLOR, INTENSIFIED, and INVERSE of the FORMAT statement influence the colors of the output list.
To set colors in the program, use:
Syntax
FORMAT COLOR <n> [ON] INTENSIFIED [ON|OFF] INVERSE [ON|OFF].
To set colors at runtime, use:
Syntax
FORMAT COLOR = <c> INTENSIFIED = <int> INVERSE = <inv>.
These formatting options do not apply to horizontal lines created by ULINE. They have the following functions:
COLOR sets the color of the line background. If, in addition, INVERSE ON is set, the system changes the foreground color instead of the background color.
For <n> you can set either a color number or a color specification. Instead of color number 0, however, you must use OFF. If you set the color numbers at runtime, all values of <c> that are less than zero or greater than seven, lead to undefined results. The following table summarizes the different possibilities:
<n>
<c>
Color
Intended for
OFF
or COL_BACKGROUND
0
depends on GUI
background
1
or COL_HEADING
1
gray-blue
headers
2
or COL_NORMAL
2
light gray
list bodies
3
or COL_TOTAL
3
yellow
totals
4
or COL_KEY
4
blue-green
key columns
5
or COL_POSITIVE
5
green
positive threshold value
6
or COL_NEGATIVE
6
red
negative threshold value
7
or COL_GROUP
7
violet
Control levels
The default setting is COLOR OFF.
INTENSIFIED determines the color palette for the line background.
With one exception (COLOR OFF), the color palette for the line background specified above can be intensified or normal. The default setting is INTENSIFIED ON. For COLOR OFF, the system changes the foreground color instead of the background color. If, in addition, INVERSE ON is set, then INTENSIFIED OFF has no effect (again with the exception of COLOR OFF).
INVERSE affects the foreground color.
With one exception (COLOF OFF), the system takes the COLOR specified from an inverse color palette and uses it as foreground color. The background color remains unchanged. For COLOR OFF, INVERSE has no effect, since this would set the foreground and the background to the same color.
The following statements have the same effect:
FORMAT INTENSIFIED ON. and SUMMARY.
FORMAT INTENSIFIED OFF and DETAIL.
However, SAP recommends that you always use the FORMAT statement, since it makes programs easier to read.
The following examples show the colors possible in lists and how to use them.
For another demonstration of colors in lists, call the executable program SHOWCOLO in any system.
Demonstrating the Colors Available in Lists
The following example shows the different combinations of the color formatting options:
REPORT demo_list_format_color_1.
DATA i TYPE i VALUE 0.
DATA col(15) TYPE c.
WHILE i < 8.
CASE i.
WHEN 0. col = 'COL_BACKGROUND '.
WHEN 1. col = 'COL_HEADING '.
WHEN 2. col = 'COL_NORMAL '.
WHEN 3. col = 'COL_TOTAL '.
WHEN 4. col = 'COL_KEY '.
WHEN 5. col = 'COL_POSITIVE '.
WHEN 6. col = 'COL_NEGATIVE '.
WHEN 7. col = 'COL_GROUP '.
ENDCASE.
FORMAT INTENSIFIED COLOR = i.
WRITE: /(4) i, AT 7 sy-vline,
col, sy-vline,
col INTENSIFIED OFF, sy-vline,
col INVERSE.
i = i + 1.
ENDWHILE.
In the FORMAT statement, the COLOR option for the subsequent WRITE statements is set at runtime. The other options are set individually for each WRITE statement in the program.