‎2018 Sep 01 7:53 AM
I have created one custom barcode of type code 128 and one custom page of length 50 mm and height 20 mm for label printing. My problem is if I use barocde width 5, the data does not fit on the label. With barcode width 4, data fits on the label but does not get scanned using scanner. How to fix this problem ?
‎2018 Sep 03 11:08 AM
Hi Amit,
Do you use the old system barcode BC_C128B or the new barcode technology according to note 645158?
- In first case: The size of the printed barcode is determined by the printer escape sequence, which is sent by the SAP to the printer to print the barcode. Please go to transaction SE73, Printer Barcodes and select your device type. Now you get a list of the barcodes, which are supported by the device type. On the right side you see two print controls: SBP... and SBS... If you use device type HPLJ..., please see note 45643, which explains the printer escape sequence of the SBP... print control and where it must be changed.
- In case of new barcode technologiy: usually the widths of the bars are set and not the width of the complete barcode. Therefore the new barcode technology requires the parameters
- 'Narrow Module Width' (which is the width of the small bars) and
- 'Bar Ratio' (which is the ratio of the width of the broad and small bars).
Maybe you can modify the size of your custom page and the parameter of your barcode in SE73.
Best regards,
Hedvig
‎2018 Sep 03 12:02 PM
Hi Hedvig,
Thanks for your reply. I have used new barcode technology code 128. As per your suggestion, I have checked the parameters of my custom barcode. Please refer to attached screen shot of custom barcode parameters. 'Bar Ratio' parameter is not available. Please let me know how to check it.
I can not change the size of custom page because it is the size of the label to be printed. I changed the 'Narrow Module Width' parameter ('4' and '5') and facing the above problem.
Regards,
Amit

‎2018 Sep 03 4:05 PM
Hi Amit,
Thanks for the info. Parameter 'Bar Ratio' available only for bar code symbology Interleaved 2of5 and Code39.
There is no another way of adjusting the width, only the parameter 'Narrow Module Width' can be used for Bar Code Symbology Code 128.
But I am afraid if parameter 'Narrow Module Width' <= 0,4 the resulting bar codes will be too small for some scanning applications.
Best regards,
Hedvig
‎2018 Sep 04 6:08 AM
Hi Hedvig,
The value of parameter Narrow Module Width is '04' and not 0.4
Thanks,
Kalpesh
‎2018 Sep 04 7:37 AM
Hi Kalpesh,
sure , sorry I have only mistyped the value. Value range is 1 to 30 for Code 128 as described in note 645158.
I am afraid if you set the value 1 for your bar code maybe the data fit on the label but you have issue with the
scenner.
Best regards,
Hedvig
‎2018 Sep 05 7:48 AM
Hi Hedvig,
As per your suggestion, I will use code39 and let you konw.
Regards,
Amit