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: 

Eliminating decimal places in Quantity field in screen display

0 Kudos

hi gurus.,

in standard SAP transactions like va01,va02,va03 , the values displayed in the quantity firld has no decimal places .. i tried to do that in my Z-program(screen) ... plz help me how can i achieve this .. its very urgent .....

Regards.,

S.Sivakumar

2 REPLIES 2

former_member182371
Active Contributor
0 Kudos

Hi,

one possible solution:

e.g.

transaction SE11

data element of the quantity field

tabstrip "Data Type"

Elementary type

check "Predefined Type" instead of "Domain"

in data type use QUAN

in length use 15

in decimals use 0

Save and activate.

Best regards.

Edited by: pablo casamayor on Apr 25, 2008 10:11 AM

Former Member
0 Kudos

Also, you can specify a "Unit" field. This is addresses the decimal places appropriate for each type of quantity shown. E.g, a unit of EA (for eaches) has no decimal places, while a unit of FT3 (cubic feet) has 3 decimal places.

You should be able to find in the standard SAP screen how the unit is referenced.

Hope this helps,

Mark