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 Classical Report

former_member809362
Discoverer
0 Likes
1,398

Dear Experts,

We have an urgent requirement to add barcode for Storage Bin field as a new output column in LI04 transaction.

And we have already copied this standard transaction to ā€˜Z’ program and added other additional fields as required.

Issue where we are stuck is only on the barcode part. This is a classical report and not a SAP script (or) Smart form (or) Adobe.

Also, I tried below sample code per old forums and it prints the actual value '12345678' instead of barcode.

DATA: l_barcode(16) TYPE c VALUE '1234568'.

NEW-PAGE PRINT ON IMMEDIATELY 'X'.

FORMAT COLOR OFF INTENSIFIED OFF.

WRITE: /.

PRINT-CONTROL FUNCTION 'SBP01'.

WRITE: l_barcode NO-GAP.

PRINT-CONTROL FUNCTION 'SBS01'.

WRITE: /.

Please let us know if anyone of you have implemented barcode in classical ALV report. It is really urgent and I appreciate any inputs.

Dear Experts,

We have an urgent requirement to add barcode for Storage Bin field as a new output column in LI04 transaction.

And we have already copied this standard transaction to ā€˜Z’ program and added other additional fields as required.

Issue where we are stuck is only on the barcode part. This is a classical report and not a SAP script (or) Smart form (or) Adobe.

Also, I tried below sample code per old forums and it prints the actual value '12345678' instead of barcode.

DATA: l_barcode(16) TYPE c VALUE '1234568'.

NEW-PAGE PRINT ON IMMEDIATELY 'X'.

FORMAT COLOR OFF INTENSIFIED OFF.

WRITE: /.

PRINT-CONTROL FUNCTION 'SBP01'.

WRITE: l_barcode NO-GAP.

PRINT-CONTROL FUNCTION 'SBS01'.

WRITE: /.

Please let us know if anyone of you have implemented barcode in classical ALV report. It is really urgent and I appreciate any inputs.

4 REPLIES 4
Read only

FredericGirod
Active Contributor
1,317

Did you check the print control used is linked to the printer type used to do your test ?

TSP03 to get the printer type

T022D to get the link print control/printer tye

Read only

former_member809362
Discoverer
0 Likes
1,317

Yes Frederic, Print control I had used in my program is linked to device type of the printer used for generating the output. Still, it shows the value instead of barcode.

Read only

Sandra_Rossi
Active Contributor
1,317

Sorry to say that, but you won't get faster answers by saying it's urgent for you...

Read only

Sandra_Rossi
Active Contributor
1,317

When you display on the screen, you don't see the barcode, it's only when it's printed that you can see the barcode.

If you want us to check your barcode configuration, please share it.