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: 

printing barcode

Former Member
0 Kudos

hi all ,

i have a problem printing barcode in my sap script.can anyone help me out in this issue. i have checked it in se 73 and i have tried priinting sample barcode its printing. but when i assign barcode from character format by assigning it in character format and the format i used for barcode printing is c128a. but still i am not able to view the barcode on priview as well as on my output.please help me out on this issue . i am working on ecc 6.0 version.

2 REPLIES 2

Former Member
0 Kudos

Hi Abhinash

/: DEFINE &XDIM& = 2
/: DEFINE &YDIM& = 3
/: DEFINE &MODHEIGHT& = 3
* <FS><32>
/: PRINT-CONTROL SESCP
= (s1p&XDIM&,&YDIM&,&MODHEIGHT&,0s24850T
= &BARCODEFIELD1&&BARCODEFIELD2&
/: PRINT-CONTROL SBS01

regular text continues here

With the code mentioned above the content of the fields BARCODEFIELD1 and BARCODEFIELD2 is output as PDF417 bar code. HPLJ4/HPLJ5/HPLJ4000 must be used as a device type. The character format FS activates in this case the smallest possible font (without modification point 6) when using the modification mentioned above (point 2).

In this case, the complete printer command for PDF417,

ESC(s1p2,3,3,0s24850T

may alternatively be stored in a privately defined print control ZPDF4.

In this case, the SAP device type needs to be copied to Zxxxxx and modified accordingly. The example would then read:

* <FS><32>
/: PRINT-CONTROL ZPDF4
= &BARCODEFIELD1&&BARCODEFIELD2&
/: PRINT-CONTROL SBS01

regular text continues here

You can find the meaning of the individual parameters of the PCL-5 printer commands for PDF417 in the documentation for jetmobile BarSimm.

The contents of the BARCODEFIELD1, BARCODEFIELD2 fields are output as a PDF417 bar code when you use the aforementioned coding.

A modified copy Zxxxx of HPLJ4/HPLJ5/HPLJ4000 must be used as a device type. In this case, character format FS activates the smallest possible font (without modification point 6, otherwise 2).

The print control ZPDF4 must be defined in the copy Zxxxx of the SAP device type as follows (hexadecimal notation):

Reward all helpfull answers

Regards

Pavan

amit_khare
Active Contributor
0 Kudos

Refer this link might help you -

Regards,

Amit

Reward all helpful replies.