Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Decimals for a quantity field in the module pool screen

Former Member
0 Kudos

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.

12 REPLIES 12

Former Member
0 Kudos

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

0 Kudos

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.

former_member209217
Active Contributor
0 Kudos

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.

0 Kudos

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

0 Kudos

You can check the FM CHECK_AND_CONVERT_NUMERICS by setting the following parameter

IMP_DECIMALS = '0'.

may it solve your problem.

Regards.

Sarbajit.

Former Member
0 Kudos

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

Former Member

I got the solution.

Regards

Pradeep.

0 Kudos

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

0 Kudos

How you got the solution.?

in the screen, goto its attribute.

Set format ==> QUAN, and insert the screen field that contains unit of measure

marie_s
Discoverer
0 Kudos

hi,

can you explain your solution. I have the same request.

Regards

M Schonbuch

moshenaveh
Community Manager
Community Manager
0 Kudos

Hello,

Can you please post a new question?

Regards,

Moshe