‎2012 Apr 27 12:02 PM
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.
‎2012 Apr 27 12:54 PM
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
‎2012 Apr 27 12:15 PM
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
‎2012 Apr 27 12:54 PM
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
‎2012 Apr 28 7:22 AM
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)&</>