Application Development and Automation 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: 
Read only

font size in basic list output

Former Member
0 Likes
2,823

Hello,

I am outputting a report with line size of 220. When i print the report, the font size appear small. Viewable but small. I know when we increase the line-size, the font gets low, but is there anyway to increase the font size ..

Thanks a lot.

Shehryar Dahar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,736

Hi Shehryar,

There is a way.

If you are looking for increasing the font size in the Output list you can do it manually at the output please follow this path:

Step 1: Execute the Basic list , it gets displayed with smaller font.

Step 2: Click on the <b>'Customizing the Layout'</b> button , the last buton on the right hand side of the application tool bar.

step 3: click on 'Font(I18N) , you willl get an window to increase the font & print.

But, do you need it programmatically, please let me know if yes.

Regards,

Daniel

8 REPLIES 8
Read only

suresh_datti
Active Contributor
0 Likes
1,736

I don't think you have any option to play with the fonts in a normal ABAP report.. take a look at the PRINT-CONTROL options.. may be you will get an idea..

~Suresh

Read only

Former Member
0 Likes
1,736

Hi Shehryar,

You can't increase font size in normal classical report.

Use sap script or smartforms to do so. u can increase / decrease font size in script and smartforms.

Reward points if helpful.

Regards,

Hemant

Read only

Former Member
0 Likes
1,736

Hi,

Try with following example:

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

Be aware that the PRINT-CONTROL is not supported in SAP Enterprise 4.7

For more information read SAP OSS notes 66478.

Regards,

Bhaskar

Read only

Former Member
0 Likes
1,737

Hi Shehryar,

There is a way.

If you are looking for increasing the font size in the Output list you can do it manually at the output please follow this path:

Step 1: Execute the Basic list , it gets displayed with smaller font.

Step 2: Click on the <b>'Customizing the Layout'</b> button , the last buton on the right hand side of the application tool bar.

step 3: click on 'Font(I18N) , you willl get an window to increase the font & print.

But, do you need it programmatically, please let me know if yes.

Regards,

Daniel

Read only

0 Likes
1,736

Hello Daniel ,

I increased the layout font size, but it only increases while previewing the list and not when printing. Printing remains the same.

Regards,

Shehryar dahar

Read only

0 Likes
1,736

Shehyar,

You have to change the character format font size which you have declared in smartstyles used for the smartforms.

K.Kiran.

Oops,I thought you are talking about Smartform.Sorry.

Message was edited by:

Kiran K

Read only

Former Member
0 Likes
1,736

Hi

I think you can use PRINT CONTROL Option in your report,which allows you to change the size of the font.

Because print control gives you the option of printing the font on required data.

PLZ REWARD

Read only

Former Member
0 Likes
1,736

Hi Shehryar,

Yes, its possible to give colors and fonts to report text.

Check this sample program <b>DD_STYLE_TABLE</b> 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.

Plz reward if it is helpful....

Thanks,

Vinay