Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the font of ABAP Report display?

Former Member
0 Kudos

Dear friend..........

I have a urgent requirment to chaneg the font of a abap Report display.Please suggest me the best way

Regards

Ricky

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

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

0 Kudos

Your answer will help me in other application but not in this case.

Thanks for reply to me

Former Member

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'.

*

*

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

0 Kudos

Thanks but itis not helpful to me in my requirment

Former Member
0 Kudos

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

0 Kudos

Hi,Vidya...

this is not helpful to me.thanks fo0r reply

Former Member
0 Kudos

THANKS TO ALL