2007 Sep 19 12:06 PM
Hi friends,
I need a small help.
My requirement is like,I need to pad zeroes in front of a quantity value.
I am using CONVERSION_EXIT_ALPHA_INPUT.But,it is going into dump,because
I am passing a quantity field as input.
Can any one suggest any function module,to pad zeroes to a quantity value or decimal value.
Points guaranteed,
Imran
2007 Sep 19 12:08 PM
hi masood,
first Convert that Quantity field value into Char type and then pass it to conversion routine..
ex:
data: var(length) type c.
var = quantity field.
and then pass it to conversion routine.
<b>Reward points if useful</b>
Message was edited by:
Chandra
2007 Sep 19 12:09 PM
Hi,
take the quantity field as character and then pass to fm,it will work.
Regards,
nagaraj
2007 Sep 19 12:11 PM
HI
Set this attribute in the fieldcatalog
NO_ZERO
regards,
prasant
reward if helpful
2007 Sep 19 12:25 PM
No.it is not working that way.
It is not padding zeroes.Finally,output should be in decimal form with zeroes padded in front.
2007 Sep 19 12:32 PM
HI,
convert the variable into char.
Try to concatenate Zeros in the front of the variable like
concatenate ' 00' qty into qty.
then assign this into a decimal.
2007 Sep 19 12:52 PM
hi,
i hope this would solve ur problem
DATA: L_MATNR(18) TYPE N.
IF T_UPLOAD-MATNR CO '0123456789 '.
L_MATNR = T_UPLOAD-MATNR.
T_UPLOAD-MATNR = L_MATNR.
ENDIF.
regrds,
karthik