cancel
Showing results for 
Search instead for 
Did you mean: 

Print decimal field like VL32N

vallamuthu_madheswaran2
Active Contributor
0 Kudos

Hi ABAPer's

I enter decimal place .000 in vl32n qty filed

If I press enter the it displays 10 without decimal point.

I want to display the same in forms ie without decimal place. Is there any function module/class?

Thanks with Regards,

Vallamuthu M.

Accepted Solutions (0)

Answers (1)

Answers (1)

peng_wen
Active Participant
0 Kudos

Hello,

Usually the application does not use the user default settings

to decide, whether a decimal point or a decimal comma

shall be used. Usually the application works on the following

way: It checks to which customer the sales document shall be

sent. Then it looks into the address data of this customer to

determine the country of the customer. Finally it looks into

the customizing table T005X to check whether a decimal comma

or a decimal point is used in this country. So usually the

application uses the country settings (for decimal point/comma

and date format) which are used in the country of the receiver

of the sales document.

If you want to get a fixed format for the number (if you

always want to get a decimal point), you can do this on the

following way: In the Smartform go to 'Global Definitions'

and here to tab strip 'Initialization'. Here add the ABAP command

SET COUNTRY ...

followed by a country which uses the required decimal point settings.

Regards,
Wen Peng

0 Kudos

Hello,

It's happen because you are entering '10.000' so system will accept only 10 and removing zero decimals point  value but if you are entering '10.123' system will accept that decimals value.

Regards,

Nikunj.