04-01-2009 7:11 AM
Hi Experts,
I have a quantity field of datatype KWMENG in module pool screen. While displaying the value in this field i do not want the decimals to appear.
For example:
Let me take the field as f_kwmeng.
Now in this field i pass the value ,
f_kwmeng = 2.
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.
Please give me solution for this scenario.
Thanks & Regards
Pradeep.
04-01-2009 7:16 AM
Hi:
Select the field in field va03 and press F1 go in technical setting and find its data element which should be use d in your module pool.
Regards
Shashi
04-01-2009 7:26 AM
Hi shashi,
The field in Va03 has the same properties of the field i am using in my screen.
It is also of the type kwmeng.
But yet the standard screen shows no decimals.
Regards
Pradeep.
04-01-2009 7:21 AM
Hi Pradeep,
Goto screen layout of your module pool program.Double click on the quantity field and u will get attributes displayed in separate window.
At the bottom u have dictionary tab .click on it and select FORMAT option value as QUAN.
Hope it will be useful.
Regards,
Lakshman.
04-01-2009 7:28 AM
Hi Lakshman,
The FORMAT is already set to QUAN and has all the properties which the datatype KWMENG has.
Even the reference field also is set.
Is there any conversion routine for this particular field?
Regards
Pradeep.
Edited by: Pradeep Kumar on Apr 1, 2009 8:39 AM
04-01-2009 7:52 AM
You can check the FM CHECK_AND_CONVERT_NUMERICS by setting the following parameter
IMP_DECIMALS = '0'.
may it solve your problem.
Regards.
Sarbajit.
04-01-2009 7:28 AM
HI ,
dolble clk on ur screen no-> clk layout.
then dclk on the input filed quantity,on the attribute window ,select attribute as dict then format as quant.
hope this solves ur problem.
Regards
04-01-2009 11:43 AM
05-27-2013 9:53 AM
Hi Pradeep Kumar,
I'm facing to the same problem you had (4 years ago...). Can you please tell me how you resolved it.
Thank you
Regards
09-11-2015 6:43 PM
11-03-2015 2:42 PM
in the screen, goto its attribute.
Set format ==> QUAN, and insert the screen field that contains unit of measure
01-12-2024 5:29 PM
hi,
can you explain your solution. I have the same request.
Regards
M Schonbuch
01-15-2024 9:04 AM