2007 Nov 26 8:45 AM
Dear friend..........
I have a urgent requirment to chaneg the font of a abap Report display.Please suggest me the best way
Regards
Ricky
2007 Nov 26 8:47 AM
Hi Ricky,
<b>DD_STYLE_TABLE</b> is the sample program to print text in reports with fonts and colors and this report is based on class <b>CL_DD_DOCUMENT</b> with its methods and this class is avialable from 4.7 onwards.
Thanks,
Vinay
2007 Nov 26 8:47 AM
Hi Ricky,
<b>DD_STYLE_TABLE</b> is the sample program to print text in reports with fonts and colors and this report is based on class <b>CL_DD_DOCUMENT</b> with its methods and this class is avialable from 4.7 onwards.
Thanks,
Vinay
2007 Nov 26 9:13 AM
Your answer will help me in other application but not in this case.
Thanks for reply to me
2007 Nov 26 8:51 AM
HI
in classical report it is not possible to change the font
Be aware that the PRINT-CONTROL is not supported in SAP Enterprise 4.7
For your information, SAP cannot provide any support to error caused by print control command (see SAP OSS notes 66478). * Parameters for function below should be taken from your printer
configuration in SAP - check SPAD transaction -
standard print control
print-control position 1 function: 'CI006', 'SF015'.
*
Submitted by : SAP Basis, ABAP Programming and Other IMG Stuff
*
REPORT ZFONT NO STANDARD PAGE HEADING LINE-SIZE 80 LINE-COUNT 65.
Start of print-control
NEW-PAGE PRINT ON.
PRINT-CONTROL FUNCTION 'SF000'.
WRITE: / 'This is CPI 20'.
SKIP.
PRINT-CONTROL FUNCTION 'SF020'.
WRITE: / 'This is CPI 6'.
SKIP.
PRINT-CONTROL FUNCTION 'SF008'.
WRITE: / 'This is CPI 12'.
Depending on your SAP printer device, this may also work
PRINT-CONTROL FONT 1 LPI 6.
you can try to change font and LPI numbers
WRITE: / 'font 1 lpi 6'.
PRINT-CONTROL FONT 2 LPI 6.
WRITE: / 'font 2 lpi 6'.
PRINT-CONTROL FONT 3 LPI 6.
WRITE: / 'font 3 lpi 6'.
End of print-control
NEW-PAGE PRINT OFF.*--- End of Program
2007 Nov 26 9:13 AM
2007 Nov 26 8:56 AM
Hello,
May be this will help you....
You can have colors set, and intensified but no BOLD in reports.
Eg:
1.FORMAT INTENSIFIED INPUT.
WRITE 5 'JOHN'.
FORMAT INPUT OFF.
2. Addition 1
... COLOR n [ON] or ...COLOR OFF
Color of line background . n can have the following values:
OFF or COL_BACKGROUND Background
1 or COL_HEADING Headers (grayish blue)
2 or COL_NORMAL List body (bright gray)
3 or COL_TOTAL Totals (yellow)
4 or COL_KEY Key columns (bluish green)
5 or COL_POSITIVE Positive threshold value(green)
6 or COL_NEGATIVE Negative threshold value (red)
7 or COL_GROUP Control levels (violet)
With Regards,
Vidya
2007 Nov 26 9:11 AM
2007 Dec 10 1:01 PM