‎2010 Dec 29 5:11 AM
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
‎2010 Dec 29 5:46 AM
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.
‎2010 Dec 29 5:46 AM
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.
‎2010 Dec 29 6:21 AM
‎2010 Dec 29 7:51 AM
‎2010 Dec 29 8:53 AM
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