cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

I have a quantity field of datatype LIPS-LFIMG in module pool screen. While displaying the value in this field i do not want the decimals to appear.

In the screen the value gets displayed as 2,000

But i want it to be displayed as 2.

I do not want to change the datatype of the field.

The same functionality works in the standard transaction VA03, where the quantity field displays values without decimals.

View Entire Topic
Sandra_Rossi
Active Contributor

To complement Jürgen : in the dynpro, you have not maintained the link between the quantity field and the unit field. They must both be on the screen (eventually hidden).

.

In SE11, you'll see which unit field is assigned to LIPS-LFIMG (tab "Currency/Quantity Fields"). It's LIPS-VRKME. Then, add LIPS-VRKME into your dynpro, make sure the dynpro field has the DDIC flag ticked. At run time, you'll see that the number of decimals will vary based on the value in LIPS-VRKME. The number of decimals is defined for the unit in T006-DECAN (0 means that an integer value will be displayed without decimals).