Skip to Content

Restricting the length of Barcode


Hi ,

I have been using the barcode type C128A in all my forms. C128A is of standard size as noted below.

Width 4.00 CM

Height 0.50 CM

Now I am working on a small label of size 4 inches in width. ButI am facing an issue with respect to length of barcode here. I have a '40' character part no. field and corresponding barcode has to be printed. But whenever a 40 char value is coming into picture, the barcode goes out of the label as the length is more than the planned length of the label(shown in SS below). Is there any ways to restrict the length of barcode to be with in the 4 inches or even make lesser to 2-3 inch(even when the material number is 40 char). Request suggestions.

Thanks and Regards,

J

BC_Length.JPG (19.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2014 at 04:11 PM

    Hi

    You can define a new one (by SE73) having the width you need: but you need consider that barcode contains a many informations, so if the size you need is too small, then it couldn't be read

    Max

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Ab ABAP

      From SAP note 645158:

      parameters for Code128:

      • Narrow module width
        Value range: 1 to 30
        This is the width for the narrowest module of a bar code, measured in pixels. It controls the width of the bar code. Value 1 generates the "narrowest", value 30 the widest bars or spaces.
      • Linear height
        Value range: 1 to 9999
        Controls the height of the bars of the bar code, measured in pixels. A value of 600 is equal to a height of one inch.
      • Code128 mode
        Value range: N (default value), A, U
        In default mode N (None), the Code128 bar code works in subset B. If you want to switch to another subset, you must trigger the change explicitly with a control command ("invocation code") in the bar code data.
        In mode A (automatic), the software analyzes the transferred bar code data and recognizes automatically which subset is the most adequate for the bar code data. Subsets are swapped automatically in the bar code data. A sequence of four or more digits initiates an automatic change in subset C.
        In mode U (UCC case mode), you must transfer 19 digits in the bar code data. Subset C is set automatically and an FNC1 character is added as prefix.
        Comment: If fewer than 19 digits are transferred, the bar code is filled with zeros to the left until it contains 19 digits.
      • UCC check digit
        Value range: X equals YES, blank character equals No
        Note: This parameter has no effect becaues Code128 always generates a check digit, even in UCC mode. The parameter will be removed in the future.

      I suppose you need to manage the first one

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2014 at 08:32 AM

    Hi,

    Go to SE73 SAPscript Font Maintenance to create or display the system bar codes.

    Check on the radio button System Bar Codes. Press display if you want to see different bar codes styles or press change button if you want to create your own bar code style.

    please check this link Step-by-step New Barcode Technology for Smart Forms - Code Gallery - SCN Wiki

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.