Application Development and Automation 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: 
Read only

Decimal notation for different user defaults

Former Member
0 Likes
1,416

Ok , the problem that i am facin is as follows :

I have a input field which is of type decimal .The value in this field is taken and updated to a table using BDC call transaction. Now when the user default setting is 1,234,567.890 the program works fine. For example if I input 3 , then the value entered is 3.000 . Which is correct. If the default setting is changed to 1.234.567,890 , the program automatically adds 3 zeros before the decimal . So if I enter 3 , the value input is 3.000,000 instead of 3,000

Is there a solution for this. I have checked the attributes and the Fixed point arithmatic is checked. I tried both with checked and unchecked...and the problem persists.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
847

Hi,

Move that field to a charecter type field and move the charecter type field to BDC data

to move the field to a charecter type, then use WRITE TO option

Regards

Sudheer

3 REPLIES 3
Read only

Former Member
0 Likes
848

Hi,

Move that field to a charecter type field and move the charecter type field to BDC data

to move the field to a charecter type, then use WRITE TO option

Regards

Sudheer

Read only

0 Likes
847

I tried writing it to type C , but the problem persists. Is there any other solution ?

Read only

0 Likes
847

You need to first get the user settings. So you need to get value of DCPFM from table USR01 for that user id.

There are 3 different notations to display amount for user. Check these settings and based upon these settings, pass the amount value to CHAR field. While passing you need to take care of ',' and '.' as based upon user setttings the meaning of ',' and '.' varies.

Hope this helps.

ashish