cancel
Showing results for 
Search instead for 
Did you mean: 

Code 128 in Adobe forms

Former Member
0 Kudos

Dear all

I have trouble with Adobe forms (SFP) when trying to print Code 128 barcodes.

The value for the barcode is combined with 4 AI codes like this :

400 : Customer Purchase Order Number (1-29 alfanumeric)

240 : Add. product infomation (1-30 alfanumeric)

92 : Company internal infomation (1-30 alfanumeric)

11 : production date(6 char)

Here is my example :

Value for 400 : 4505383310

Value for 240 : 1144803

Value for 92 : 3127442

Value for 11 : 130418

Acc. to oss 995199 I need to encode the string for the object like this:

[F1][CC]4004505383310[F1]2401144803[F1]923127442[F1]11130418

The barcode is generated and printed - BUT when I scan the code it gives me this back:

]C140045053833100#24001144803#9231274402#11130418

The issue here is that the value for the AI 400 sends 45053833100 back instead of 4505383310 - there is an extra "0" added !!

and the same is for the AI 92 - the barcode sends 31274402 back instead of 3127442 - it changes the value !

What could be the case ??

Please help me

Best Regards

Lars Bregnedal

Joerg_S
Participant
0 Kudos

dktmplb1 - your post i quite old, but the problem still exists

Using Code128 or GS1-128 you need also to handle with CodeSet A, B, C

Let's asume all your values are numeric (= non alphanumeric), so you only have to set the "SPECIAL Characters" if any value is IMPAIR. This is because using CodeSet C requires that the datalength of your STRING (here: each variable) is EVEN (not impair). Why? CodeSet C groups 2-digits for creating barcode symbols

so where die you go wrong ?
(a) [F1][CC] >> correct [F1][SC] ... this is START of barcode
(b) first AI = 400 ... length of AI+value = 13 (UNEVEN)
--> So you need to use [F1][SB] from the start on (as if the values where alphanumeric)

wrong: [F1][CC]4004505383310[F1]2401144803[F1]923127442[F1]11130418
correct: [F1][SB]4004505383310[F1]2401144803[F1]923127442[F1]11130418

(!) please be aware that you always have to check for each AI if there is a need to switch from CodeSet C to CodeSet B. (Rule: is_numeric OR isnot_even )
---
The real program ERROR is, that normaly one must check only the whole STRLEN of all data to be encoded and not field by field 🤪
example:
Value for 400 : 4505383310
Value for 240 : 1144803
Value for 92 : 3127442
Value for 11 : 130418


StrLen = 40 / all_numeric
[F1][SC]4004505383310[F1]2401144803[F1]923127442[F1]11130418 --> correct setting, BUT this will still not work in Adobe Forms 🙄 --- in the result you will find ZERO for each AI where the StrLen is UNEVEN 😢

Accepted Solutions (1)

Accepted Solutions (1)

rakesh_m2
Contributor
0 Kudos

Hi Lars,

Could you please let us know, why are you are encoding data and sending for barcode 128?  Since you are encoding and sending, is there anything for decoding data also.   I am directly sending value to barcode 128 and is working fine.  Please let me know, if there is any limitation where we need to send encoded data.

Thanks,

Rakesh

Former Member
0 Kudos

Hi Rakesh

When you have AI codes like 400 and 240 that are variable lenght you need to have a delimiter [F1] after the value

Lars

rakesh_m2
Contributor
0 Kudos

Thanks for the info lars.  Since you are encoding the data and sending in particular format, is there any procedure for decoding?

--

Rakesh

rakesh_m2
Contributor
0 Kudos

Hi Lars,

Found this info in one online document.  Try this.

When you are concatenating multiple Application Identifiers and their fields but only one of them is of variable length, we recommend locating the variable-length field at the end of the symbol because then no separator character is required.

Link: http://www.barcodedatalink.com/media/pdf/WhitePaper_UsingBarTendersApplicationIdentifierWizard.pdf

Thanks,

Rakesh

Former Member
0 Kudos

hi Rakesh

Thanks for reply - but I know the rules for adding the FNC1 - and yes it's best to put the variable AI codes in the end - but here I have 3 different AI codes that are variable, and the customer have demanded the order of the Barcode to be like this.

For info: I have found and OSS 1784412 thant describes the issue in detail - but it dos'nt help... I have now created an OSS message since this looks a lot like an SAP standard issue.

thanks

Lars

Former Member
0 Kudos

Hi Lars,

   I am dealing with similar issue...so I wonder whether you found a solution.


Thanks.

Joerg_S
Participant
0 Kudos

(ℹ) if you combine Code128 + FNC1 Symbols you will get GS1-128* (EAN128) as result

*) this barcode font is missing in Adobe Forms, so you have to deal with the SPECIAL Symbols described https://launchpad.support.sap.com/#/notes/995199

Answers (0)