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

Reg: Barcode generation.

Former Member
0 Likes
616

Hi everybody,

i have to generate a barcode with length 21. the 1st 2 characters are from archiv id field in toaom table next 4 characters are based on i/p company code, next 10 characters are i/p docu no next 4 characters are from i/p fiscal year and final character is a check digit. to generate the check digit i am using a custom function module whose import parameter is the 1st 20 characters of barcode. now in the function module im calculating the check digit by multiplying each character of the barcode with a constant. now the poblem is as the 1st two characters are character i cant able to multiply and getting dump hence check digit cant be created. please help me on this.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
541

Hi Mohanarangan,

Concatenate the all the fields in to single field and you choose the any stand  bar code its will display barcode.

Actually i was used like this way in  smart form and script.

or

Follow this link i hope its use full http://scn.sap.com/thread/1343165

Regards

mahesh

3 REPLIES 3
Read only

Former Member
0 Likes
541

Hi Mohanarangan,

you can move the 1st two characters to numerica variable, convert this variable and return to your character.


I hope it helps.

Thanks.

Jr Vieira


Read only

Former Member
0 Likes
542

Hi Mohanarangan,

Concatenate the all the fields in to single field and you choose the any stand  bar code its will display barcode.

Actually i was used like this way in  smart form and script.

or

Follow this link i hope its use full http://scn.sap.com/thread/1343165

Regards

mahesh

Read only

Former Member
0 Likes
541

page format :barcode type .

CONCATENATE  field1  field2 field3    INTO barcode1.

for example : CONCATENATE  w_itab-vbeln'-'w_itab-matnr'-'qty1    INTO barcode1.

in smartforms you can define varialbe like

TYPES : QTY1(30) TYPE C.

after that in text u write like <C1>,,&barcode1(CZ)&</>