‎2007 Apr 26 9:22 AM
Hi All,
I have created a new Style Z_Style. In that I am using B7 character Format and BARCODE = ARTNR, the code in the SAPSCRIPT is BR ,,<B7>P&RESBD-MATNR&</>,,,,,,,,<B7>Q&RESBD-BDMNG&</>.
While I see the printpreview. I can see the BARCODE properly. When I print it I get the BARCODE and material no printed below the BARCODE. I just want the BARCODE. I have installed BARCODE.DLL on my PC.
Can anybody sort this out.
Sanjay.
‎2007 Apr 26 9:35 AM
‎2007 Apr 26 10:11 AM
Hi Sanjay
Its really a long story I try to cut short.
A printer is basically controlled by sending special control characters to the printer. These control characters also know as esc sequences are usually hexadecimal strings that tells the printer what font (or in your case barcode) should be printed, what size should be printed etc.
For barcodes the hexadecimal string also contains info about what type of barcode (ex. EAN128), and it also controls if it should print only the barcode, the barcode with the number in-layered at the bottom of the barcode or with the number printed below the barcode. In your case we must conclude that the definition of the ARTNR barcode is printing the number below the barcode.
The hexadecimal string is different for different printers you are probably using a HP printer with some kind of BarDimm expansion card?
In transaction SE73 you can see system barcodes and printer barcodes.
System barcodes is basically just a general description of the barcode. You can find your barcode ARTNR in here.
Under printer barcodes you will see a connection between the system barcode and a device type like HPLJ4. If you double-click on the line with HPLJ4 you will see the ARTNR is pointing to a prefix print control and a suffix print control. In my system the prefix is SBP01 and the suffix is SBS01. If you chose a complete other device type like the KYOF1000 you will se that the ARTNR is pointing to exactly the same prefix and suffix.
These print controls are pointers to the hexadecimal strings. The prefix print control is used to switch barcode printing on and the suffix print control is used to switch barcode printing off.
Now you go to the spool admin transaction SPAD, select the Device Types tab and press the display button next to the Device Types field. A list of device types pups up. From this list you mark your printer and press the pushbutton "Print Controls". Now you se a list of device type print controls and the attached hexadecimal string. For HPLJ4 you will se that the hexadecimal string for SBP01 is 1B28733370323437303054 .
You will have to look up in the technical documentation of your own barcode printing system to understand this string but my guess is that one or two bytes of this string is controlling if the number should be printed below the barcode.
Good luck.
Thomas Madsen Nielsen
‎2007 Apr 26 10:26 AM
Thomas,
Your reply is really of great help, However can you suggest a possible solution to avoid printing material number below the BARCODE.
The material number is overlapping the BARCODE half way which I dont' want.
My printer is XeroxDC555.
Thanks in Adv.
Sanjay.
‎2007 Apr 26 11:06 AM
Hi again Sanjay
I'm sorry I can't help you with that - apart from suggesting that you find or create an other barcode.
Maybe the right print control is all ready created for your system. The barcode prefixes are usually always named SBPxx and the suffixes SBSxx. So you could check in transaction SPAD if other barcode printcontrols exist.
You could also check in SE73 if other printer barcodes are created for your system.
If you don't find the wanted barcode you simply has to creat it. I can't help you with that because I dont have any documentation for any Xerox printers, so I don't have a clue how the hexadecimal string should be build.
Best regards
Thomas Madsen Nielsen