Skip to Content
0
Former Member
Dec 05, 2013 at 02:47 AM

ALV: Quantity Field - Display whole number and decimal number only.

2875 Views

Hi Experts,

I am currently displaying quantity using FKIMG field.

This is my clients requirement:

1. Display only whole number.

Instead of Displaying 1.000, it should be displayed as 1.

2. Display the decimal number.

1.230 = should be 1.23

0.230 = should be 0.23

This two should be displayed on quantity column in my alv report.

The problem is, if I use "I" as my data type it only display the whole number and not the decimal.

If I use P and set decimal into 2, it displays the whole number but also display 2 decimal places.

What should I do?

Please help and thank you in advance.