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.
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
VA03 is using the field type KWMENG in the ALV, I suspect that they have a specific conversion exit. You can always try to figure out the conversion exit being used in VA03 - the field there is not LIPS-LFIMG, which is only for the delivery not the sales order - and try to use the same conversion exit in your program - or write your own.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where do you see ALV in VA03? Other than document flow, which is not specific to VA03, it's a good old dynpro transaction. Unless we're talking about S/4HANA. (May need to start clarifying what release the question/answer pertains to, this is going to get very confusing.)
Ok, Sorry I did not double check if the grid on the screen was an ALV or a Table Control - which it is. But my point of, if you want it to work that way, go figure out what was used there and use the same still stands. Here is the image of the grid that I am talking about - and yes this is a table control, but it doesn't matter if it was an ALV or even a step loop. There is some conversion exit driving that behavior - my point to the OP is go figure out what is driving that and try to use the same.

Another note, looking at my own screen shot of 80.000 and 5 - There may be something else totally driving this decimal behavior. One would think the first row should be just 80.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.