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

Barcode in a Report program

Former Member
0 Likes
2,242

Hi Experts !

We have a requirement to print a Barcode ( Code 39) in the report program. Customer has a existing report in which they would like to add the barcode. Barcode would be displayed as text when the report is executed & when he clicks on PRINT from the menu bar, he wants the report to be printed along with the barcode.

We do not want to use SAP Script/Smartform.

Any pointers to call a barcode from the report program would be appreciated.

The sample program which we created but not displaying barcode :-

REPORT  ztest_barcode1.

*NEW-PAGE NO-HEADING PRINT ON LINE-SIZE 80.

WRITE :/ 'Test printing a barcode without *'.
FORMAT COLOR OFF INTENSIFIED OFF.

WRITE :/.
PRINT-CONTROL FUNCTION 'BARON'.
PRINT-CONTROL FUNCTION 'SBP11'.                              
WRITE : '12345678' NO-GAP.
PRINT-CONTROL FUNCTION 'SBS11'.                              
PRINT-CONTROL FUNCTION 'BAROF'.
WRITE :/.


WRITE :/ 'Test printing a barcode with *'.
FORMAT COLOR OFF INTENSIFIED OFF.
WRITE :/.
PRINT-CONTROL FUNCTION 'BARON'.
PRINT-CONTROL FUNCTION 'SBP11'.                             
WRITE : '*12345678*' NO-GAP.
PRINT-CONTROL FUNCTION 'SBS11'.                              
PRINT-CONTROL FUNCTION 'BAROF'.
WRITE :/.

Thanks,

Best regards,

Prashant

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,257

Hi Prashant,

I did work on barcodes, but unfortunately i haven't tried out ever in ABAP reports.

You can check this link i found on SCN. It has a sample program and gives complete idea on how to work on barcodes via ABAP Reports.

[How to display barcode in ABAP report|;

Refer the link which Gautham has recommended too.

4 REPLIES 4
Read only

Former Member
0 Likes
1,258

Hi Prashant,

I did work on barcodes, but unfortunately i haven't tried out ever in ABAP reports.

You can check this link i found on SCN. It has a sample program and gives complete idea on how to work on barcodes via ABAP Reports.

[How to display barcode in ABAP report|;

Refer the link which Gautham has recommended too.

Read only

Former Member
0 Likes
1,257

Hi Prashant,

Refer this link

Read only

Former Member
0 Likes
1,257

HI

Please check the below link

Read only

Former Member
0 Likes
1,257

Thanks for your replies.

The links have code which is specific to device types. We are using HPLJ4.

Any pointers for Barcode 39 for device type HPLJ4 ?

Thanks,

Best regards,

Prashant