‎2008 Oct 29 12:47 PM
Hi
I have report which outputs the quantity field from mara. the quantity for a material in mara shows as 3,300 KG ( 3 kg 300 grms) . but the select from mara in the report fetches it as 3.300 . Instead of comma it is showing as dot.
The user profile setting is also correct which 12.334,000.
Please let me know which things we need to check.
Thanks,
Kishore
‎2008 Oct 29 1:18 PM
Hi,
The select will always fetch is as 3.300 because in databse it is stored like this. You can't change it. If you want to convert it to your user setting, write this to another variable of type c.
Write : <QUANTITY> to <C Type variable>.
Regards,
Rudra
‎2008 Oct 29 1:18 PM
Hi,
The select will always fetch is as 3.300 because in databse it is stored like this. You can't change it. If you want to convert it to your user setting, write this to another variable of type c.
Write : <QUANTITY> to <C Type variable>.
Regards,
Rudra
‎2008 Oct 29 1:24 PM
Hi,
Also check if you want it to convert it from Grams to KG.
3.300 * 1000 = 3,300.
‎2008 Oct 29 1:33 PM
Hi Kishore,
Its better to declare a character variable and assign that value into the character variable.
Example
DATA: V_AMT(10) TYPE C.
V_AMT = VAL. " Where VAL = 3.300
WRITE: V_AMT.
It will show the output as 3.300.
Thanks,
Chidanand