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

How to Decrease the Font Size in Write Statement?

jaydalwadi
Participant
0 Likes
1,662

PRINT-CONTROL FONT 10.
WRITE : / 'SIZE 10'.
PRINT-CONTROL FUNCTION 'SI001'.
WRITE : / 'NORMAL SIZE.'.
PRINT-CONTROL FUNCTION 'SI002'.
WRITE : / 'LARGE SIZE'.

Is it possible to reduce font with write statement in classical report or it is not possible to reduce because its is obsolete syntax and that can not also be set using the formatting options of the statements WRITE.

we have SAP_BASIS 740 support level 11 on our syatem.

2 REPLIES 2
Read only

0 Likes
1,399

Hi,

Font size in ABA reports can be changed using PRINT-CONTROL COMMANDS. Here i provide you the code and description of using print commands to change the font size.

(see SAP OSS notes 66478).

Copy Code
  1. * Parameters for function below should be taken from your printer
  2. * configuration in SAP - check SPAD transaction -
  3. * standard print control
  4. * print-control position 1 function: 'CI006', 'SF015'.
  5. *
  6. * Submitted by : SAP Basis, ABAP Programming and Other IMG Stuff
  7. * http://www.sap-img.com
  8. *
  9. REPORT ZFONT NO STANDARD PAGE HEADING LINE-SIZE 80 LINE-COUNT 65.
  10. * Start of print-control
  11. NEW-PAGE PRINT ON.
  12. PRINT-CONTROL FUNCTION 'SF000'.
  13. WRITE: / 'This is CPI 20'.
  14. SKIP.
  15. PRINT-CONTROL FUNCTION 'SF020'.
  16. WRITE: / 'This is CPI 6'.
  17. SKIP.
  18. PRINT-CONTROL FUNCTION 'SF008'.
  19. WRITE: / 'This is CPI 12'.
  20. * Depending on your SAP printer device, this may also work
  21. PRINT-CONTROL FONT 1 LPI 6.
  22. * you can try to change font and LPI numbers
  23. WRITE: / 'font 1 lpi 6'.
  24. PRINT-CONTROL FONT 2 LPI 6.
  25. WRITE: / 'font 2 lpi 6'.
  26. PRINT-CONTROL FONT 3 LPI 6.
  27. WRITE: / 'font 3 lpi 6'.
  28. * End of print-control
  29. NEW-PAGE PRINT OFF.
  30. *--- End of Program

Hope this solves your problem.

Thanks,

Iván

Read only

jaydalwadi
Participant
0 Likes
1,399

i have already tried this solution bit this code not working because i want to decrease font with write statement.