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: 

When I enter 100, it shows as 1.00, 1000 as 10.00, etc...

aris_hidalgo
Contributor
0 Kudos

Hello Experts,

I have 1 editable column in my ALV grid that lets users input a numeric value

to be added to another column. My problem is, it always put 2 decimal places

in the value that we enter like for example we entered 100 and it displays as 1.00,

1,000 as 10.00, etc. So if it displays as 1.00 it treats it as 1 if I add it in another

column. My editable field is based on BSAK-DMBTR. Hope you can help me guys. Thank you and take care!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

just try writing - set country space - just before u display ur alv or the place in ur user command . i hope it should work .

Thanks

Rohit

Reward if helpfull

5 REPLIES 5

Former Member
0 Kudos

just try writing - set country space - just before u display ur alv or the place in ur user command . i hope it should work .

Thanks

Rohit

Reward if helpfull

Former Member
0 Kudos

change the decimal notation for your user as 1,234,567.89...and try...

Pawan_Kesari
Active Contributor
0 Kudos

two things can influece the decimal notation in your case.

1) Decimal notation, which you can change from menu path System->User Profile->Own Data->Defaults.

2) Currency specified in fieldcatelog for field DMBTR, check what is the value filled in field 'qfieldname' and 'currency' .

former_member223537
Active Contributor
0 Kudos

Hi,

Please change the reference field BSAK-DMBTR. DMBTR has 2 decimal places & hence the problem.

Change data type to some CHAR field .

Best regards,

Prashant

aris_hidalgo
Contributor
0 Kudos

Hi Guys,

It still doesn't work...