2010 Jul 03 8:51 PM
Hi Friends,
I have issue with quantity field, i just want to display aquantity field without decimals in the output,
For eample iam having aquantity of 5,914.391 (3 decimal positions) and the extraction is showing a quantity of 5914391 when it should be only 5914 without the decimals,kindly help me ASAP.
Thanks in advance
Regards,
AK
Hi Friends,
I have issue with quantity field, i just want to display aquantity field without decimals in the output,
For eample iam having aquantity of 5,914.391 (3 decimal positions) and the extraction is showing a quantity of 5914391 when it should be only 5914 without the decimals,kindly help me ASAP.
Thanks in advance
Regards,
AK
2010 Jul 03 9:18 PM
Hi Kishor,
Try converting the packed variable into type I.
Try the below logic to full fill your requirement.
data : v_quan type p decimals 3,
v_quan_i type i. " Quantity without the decimals.
v_quan = 3.453.
move v_quan to v_quan_i.
write : v_quan_i.
Regards
Mishra
2010 Jul 04 5:45 AM
>
> For eample iam having aquantity of 5,914.391 (3 decimal positions) and the extraction is showing a quantity of 5914391 when it should be only 5914 without the decimals.
What do you mean by extraction ? Are you displaying the quantity field in some kind of a report / ALV / form?
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |