Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in identifying Fnc1 characters in EAN - CODE 128 using SAP SCRIPT

Former Member
0 Likes
4,344

Hi friends ,

i have a requirement where i need to print a label bar code (Code 128 ) using fnc1 characters.

The data that needs to be printed is as follows :

(421) 036 3146 (90) 150 where (421 ) and (90) are application identifiers:

As per the code 128 standard , it should start with CODE C ,followed by a function character (FNC1) and FNC1 character is required as a seperator before the second Application identifier (90).

As per SAP the code set is >; and fnc1 charactere is >8

The format we are passing for the barcode is : >; >8421 036 3146 >890 150

But the scanner is unable to recognize the fnc1 characters seperator .... and it is reading the fnc1 (>8) characters as it is.

It is not identifying the seperator between second appiication identifier (90) and the data.

Please let us know what fnc1 characters that needs to be passed in order to read the barcode data correctly.

Your Response is highly apprieciated.

Regards,

Srinvas

6 REPLIES 6
Read only

Former Member
0 Likes
1,983

Hi,

Seems to be a scanner configuration issue.

Can function characters be used "inside" the code? I don't know Code-128 in detail, but sounds as a possible restriction...

Regards,

mr.

Read only

former_member201275
Active Contributor
0 Likes
1,983

answered here:

Read only

0 Likes
1,983

Hi All,

Thanks for your reply. As mentioned, the problem is not yet resolved. The scanner is unable to differentiate the second Applicaton identifier (90). Even though we are using the FNC1 character (>8) before AI (90).

We have one more label with single AI in the barcode . This one is printing correctly where as the above one we arre facing an issue as it has two Application identifiers in the barcode

Please suggest.

Thx,

Srinivas

Read only

0 Likes
1,983

Hi All,

Waiting for your response......... Let me know if you have any idea about this issue.

Regards,

Srini

Read only

0 Likes
1,983

Hi,

maybe your scanner doesn't like the "impair-fault" creating a EAN-128 code.

Counting your numrics i come to a result of 15 --> that's impair and not good (maybe forbidden) creating CODE128 subtype EAN128. Please try to encode with a leading 0.

ex. (90) 0150

background:

CODE128-symbols are based on ASCII-Code.

1 letter it takes 1 symbol, and 2 numerics are 1 symbol (space reducing)

A

B

C

...

00

01

02

03 ...

regards

Jörg

Read only

Former Member
0 Likes
1,983

Hi All,

Thanks for your response. The query is resloved. Below is the final code that has been used. Code set C: value is '>;' and FNC1 Value is '>8' and code switch c to b is '>6'.

DATA: c_start_code_c(2) TYPE c VALUE '>;',

c_fnc1(2) TYPE c VALUE '>8'.

c_ai1(5) TYPE c VALUE '(421)',

c_ai2(4) TYPE c VALUE '(90)',

c_ai3(4) TYPE c VALUE '(00)',

c_au_code(3) TYPE c VALUE '036',

C_SWITCH_C_TO_B(2) TYPE c VALUE '>6'.

CONCATENATE:

c_start_code_c

c_fnc1

c_ai1+1(3)

c_au_code

wa_adrc_to-post_code1

c_fnc1

c_ai2+1(2)

wa_delivery-store_num+0(2)

c_switch_c_to_b

wa_delivery-store_num+2(2) INTO v_barcode1 .

CONDENSE :v_barcode1.

Create a style with a specified barcode specifications and assign it to a text label in smartform for printing......

Hope this one useful for all....

Thx...

Srinivas