Using Fonts command in ABAP

How to change the font size of some of the character of SAP report without using scripts?

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
*                https://www.erpgreat.com
*
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

Get help for your ABAP problems
Do you have a ABAP Question?

ABAP Books
ABAP Certification, BAPI, Java, Web Programming, Smart Forms, Sapscripts Reference Books

ABAP Functions Tips
ABAP Functions Examples

ABAP Tips
ABAP and Samples Program Codes for Abapers

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG. 
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk. 
 The content on this site may not be reproduced or redistributed without the express written permission of 
www.erpgreat.com or the content authors.