cancel
Showing results for 
Search instead for 
Did you mean: 

Bar Code not coming properly in SAP script

Former Member
0 Kudos

HI,

I am using bar code in script. And using standard bar code type BC_C128B. In display the bar code is not coming properly, all the bars are looking like same width. I tried with other standard bar codes also, but its not coming.

Could any one know the solution?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello, here are some general considerations relevant to this topic.

In general, if you want to print a barcode, somebody must draw the bars

of the barcode to get a correct print. So there are four possible ways

to print barcodes from SAP:

1. Print e.g. via a Barcode DIMM/SIMM

To use this way, the printer must be able to print barcodes by itself,

so it needs e.g. a special barcode SIMM/DIMM module to print the

barcodes. The print works as follows:

SAP sends a simple printer escape sequence to the printer, which

activates the barcode printing in the printer. Then the SAP sends the

barcode number and finally it sends a printer escape sequence, which

switches the printer back to normal printing. So in this way the bars

of the barcode are created in the printer (and you only see a dummy

barcode in the print preview).

2. Print via a barcode.dll

If your printer doesn't have a barcode DIMM, it cannot create the bars

of the barcode itsself. So this must be done elsewhere. One possibility

is that you print via a Windows system, SAPLPD, device type SAPWIN and

a barcode.dll. If you print via SAPWIN, the creation of the print data

is done in Windows. So Windows may create a graphic, which

contains the bars of the barcode, and send this graphic to the printer.

The job to create the barcode graphic is done by the barcode.dll.

So it is only needed, if you want to print this way please see the

following Note for more information:

14561 - Printing barcodes via SAPLPD / Barcode DLL

3. New barcode technology

If your printer doesn't have a barcode DIMM and if you don't want to

use a barcode.dll, you may use the new barcode technology, which is

described in the SAP Notes 645158 and 430887. However this is

only possible when printing from Smartforms.

This way the SAP itself creates a picture, which contains the bars

of the barcode. This picture is sent to the printer. One important

requirement when you print the barcode via a Smartform is that you

have at least release 46C.

4. Use of a barcode font

There are some font files (e.g. Windows TTF files), which contains bars

instead of characters. So if you use these font files, the bars of the

barcode are printed instead of a text.

You may buy such a font file, install it under Windows and use it via

device type SAPWIN according to Note 48803. Since release 46C these

files can also be uploaded into the SAP and used via other device types.

To test the Barcode printing capability of your printer/device type

combination, please go to transaction SO10 in Client 000 and print the

standard text SAPSCRIPT-BARCODETEST. Please see the following Note:

5196 - Printing bar codes with SAPscript

Regards.

david_liu1
Advisor
Advisor
0 Kudos

Hello,

Satyajit is correct.

Regards,

David

satyajit_mohapatra
Active Contributor
0 Kudos

Are trying to check the barcode with print preview? As per my knowledge, the barcode will not be correctly represented in print preview. It needs to be printed and checked in the hardcopy as the barcodes are printer dependent.

Former Member
0 Kudos

Hi,

As you are trying to use a standard Bar code, I will suggest you to check the printer parameters as well.

Please have a look on below link, I will give you a better idea to use Barcode. (Since Printer settings are also imp.)

[Barcode_printing|http://help.sap.com/saphelp_nw70/helpdata/EN/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm]

Regards,

Lokesh.