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

Problems on scanning BAR CODES

Former Member
0 Likes
1,433

Hi people!

I have to print bar codes from an abap report and then scan. I've done the first part (printing) but I just can't scan the code I print. Does someone have an idea?

Thanks,

Rodrigo.

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,234

There could be a few reasons why. First, how are you generating a barcode from an ABAP report, are you using a SAPscript? Second, what kind of scanner are you using. Is it setup to handle the "kind" of barcode that you are generating?

Regards,

Rich Heilman

Read only

0 Likes
1,234

Hello Rich!

I´m generating it from a report (not sapscript). I've tried to scan with many kinds of scanners but is didn't work.

Thenks!

Rodrigo

Read only

0 Likes
1,234

Not really sure how you are doing that. Anyway, all of our barcodes that are generated from SAP are done thru a SAPscript. We have 3 different types of scanners, all scan the barcode successfully.

Regards,

Rich Heilman

Read only

christian_wohlfahrt
Active Contributor
0 Likes
1,234

Hi Rodrigo!

I guess, you checked your scanners with the barcode on a bottle of water or some sweets.

Try to print an identical barcode by your report. Maybe your output is to small and the lines are to close to each other -> use bigger font.

There are different types, e.g. there can be markers in beginning and at end -> it's possible to scan bottom up and bottom down (turn the paper 180 degrees). It's possible to customize scanners to accept only special types - are your scanners restricted / do you use special types? E.g. including a checksum is part of an other definition - if check number is not correct, no scan is done.

Regards,

Christian

Read only

0 Likes
1,234

Hi Rodrigo,

Didn't know you could produce Barcodes from ABAP reports - how did you do this? As Christian said, you could also make the font bigger. What are the barcode specs? Sometimes, you need to have the ratios between the "thin" and "thick" lines set up based onthe type of scanner you use. You can manipulate these settings through the Bar Code Settings via SE73.

This is how you can do it. Let's assume you are using a HP1200 Device Type and a Code 128A Barcode Font. From SE73, click on the "Printer Bar Codes" Radio button and select Display.

Double Click on the HP1200 Device Type and you will see all the Bar Codes that have been set up for that Device Type. Find "C128A_00" and single click on the Prefix 'SBP25' and hit the "Displ. Print Control" button.

This Prefix is the external printer control command that SAP will pass to the printer in the printer's language. Once you hit the "Disp. Print Control" button a popup will appear, now look at the Control Char. Seq. This is the printer command for this particular Barcode font. All the characteristics relating to Barcode Font, Size, Height, Spacing, Ratios, etc are defined here.

Because these commands are in the Printer's Native Language, you will need to get the relevant programming guide for your printer to know what values to manipulate.

Let me know if you need more info.

Cheers,

Pat.

P.S. Kindly aloocate Reward Points as appropriate.

Read only

Former Member
0 Likes
1,234

Hello Rodrigo,

you're obviously the only person in this forum, who did print a barcode on a simple report.

If it is not too time-wasting for you, could you give me a hint how you did this? Your help would be extremely usefull as I have to cope with the same problem at the moment!

Thank you very much in advance.

Regards

Markus

Read only

Former Member
0 Likes
1,234

Hi,

would you please give me some tips how to generate barcodes from a ABAP reports..i have been struggling to find solution..??