Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding Quantity field truncation

Former Member
0 Likes
460

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

2 REPLIES 2
Read only

Former Member
0 Likes
422

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
422

>

> 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?