‎2005 Apr 30 11:07 AM
Hey All,
Does any one have any idea how to make SAP create and print Bar codes.
My requirement is to print the Bar-code on the invoice using a dot-matrix printer.
One approach, I think, can be to save the data (converted to bar-code) as an image file (tiff, jpg or similar) to the local disk, then convert it to tiff, if required, read it dynamically from the local disk and then print it using a Form.
Anybody with better ideas? Please help.
Thanx & regards,
Madhur
‎2005 May 02 11:01 AM
Hello,
You can create your own barcode. Go to Transaction SE73. Click on System Bar Code Change.There are various types of barcodes already defined by SAP so you can use them or create one of your own. Say we use the BC_EANH. It has the following attributes.
BC_EANH EAN 128, n.txt,h=13mm 01 40 9,00 CM 1,30 CM 000
height width etc.
Now go to the script. Create a Character format and in the barcode put this name.
in the script <c1>&Barcode_number</>. and your barcode will be seen in the printview.
A very good example by sap itself is go to transaction so10 see script SAPSCRIPT-BARCODETEST and try to give a print on the dot matric printer that you have. if it prints well and good if not then we will have to check the printer types and other things.
Regards,
Shekhar Kulkarni
‎2005 Apr 30 12:15 PM
You can try to download a barcode true type font from internet; install it into your client; use the new font into apap application.
Gianluca
‎2005 Apr 30 7:18 PM
Hi Madhur,
I have never printed a barcode on a dot matrix printer. However printing of barcode from SAP is possible in three ways (that i know) -
1. Using special DIMM modules for printer.
2. Using barcode.dll ( OSS Note 14561)
3. Using special thermal transfer printers (e.g. Zebra).
You can try using the barcode.dll method with your dot matrix printer, I am reasonably sure it won't work. You need to convince your client/company to invest in a laserjet printer to print barcode.
Regards,
Sanjeev
‎2005 May 02 7:09 AM
Hi Sanjeev,
Thanks for the information.
However, the problem here is that the client is currently printing the barcodes using a BarCode printer and then sticking it on the invoices printed on the dot-matrix (4 copies) printer.
I am trying to eliminate this procedure and directly print Bar-cods on the invoice. Since there are 4 copies of the invoice, printing on a dot-matrix is most suitable.
Thanks & Regards,
Madhur
‎2005 May 02 8:48 AM
Hi Mohit,
Try the barcode.dll (method 2), there is a test program these companies provide with the dll. If you are able to print barcode using this test program then your next job would be to verify that barcode generated by a dot matrix is readable by the scanner or not. Otherwise if you can not print even using test program, it shows that dot matrix can not print barcode. You will have to convince them to buy a laser printer and print all the four copies from laser printer, I think printing cost will still be less if you compare the overall cost of getting the pre-printed stationary and all those carbon papers used.
Regards,
Sanjeev
‎2005 May 02 9:31 AM
You might have special escape sequence for printing bar code
depending of your printer and driver you use.
Go to OSS with youre printer model ( and emulation )
And search with barcode they give you the right driver to use and how to configure.
Sincerely
Christophe Blineau
‎2005 May 02 11:01 AM
Hello,
You can create your own barcode. Go to Transaction SE73. Click on System Bar Code Change.There are various types of barcodes already defined by SAP so you can use them or create one of your own. Say we use the BC_EANH. It has the following attributes.
BC_EANH EAN 128, n.txt,h=13mm 01 40 9,00 CM 1,30 CM 000
height width etc.
Now go to the script. Create a Character format and in the barcode put this name.
in the script <c1>&Barcode_number</>. and your barcode will be seen in the printview.
A very good example by sap itself is go to transaction so10 see script SAPSCRIPT-BARCODETEST and try to give a print on the dot matric printer that you have. if it prints well and good if not then we will have to check the printer types and other things.
Regards,
Shekhar Kulkarni
‎2005 May 03 7:56 AM
Hey Shekhar,
Thanks a lot man!! Your solution is the most relevant and I'm sure it will solve the problem... I'm sorry I can't test it immediately, since I am now working on another problem, but thanks a lot anyway...
I did check out the transactions you have mentioned and am sure that I will be able to get to the solution. Therefore, I am closing the thread and awarding you the rightfully deserved points.
Thanks & Regards,
adhur
‎2005 May 03 10:00 AM
I doubt it. I don't want to sound negative but when you create a barcode like this it is only half a solution. What actually matters is the print control you define and prefix. Unless you really try it out you won't know. Most people think that the solution is working if they see the barcode in the print preview but getting a barcode in print preview will never ensure that barcode will be printed on paper. You need to actually print it and see for yourself.