Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>