Page 1 of 1

smartform automatically deletes leading zeroes

PostPosted: Wed Mar 26, 2014 10:58 am
by abapper53
hi guys,

i have a variable that can hold a alphanumeric value, ie AA01 or 0031 etc. My problem is when i pass the value to smartform, the form automatically suppress the leading zero so 0031 is displayed as 31 instead which is incorrect. what am i missing?!

any help is greatly appreciated.

abapper53

Re: smartform automatically deletes leading zeroes

PostPosted: Wed Mar 26, 2014 11:04 am
by Gothmog
Moving this to the SAPscript/Smartforms forum.

Also, I guess the field type has an ALPHA conversion routine?
You can ignore the conversion routine using the formatting option K:
&symbol(K)&

Re: smartform automatically deletes leading zeroes

PostPosted: Wed Mar 26, 2014 11:09 am
by abapper53
thanks Gothmog.

that did the job! :D