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: 

HR_INFOTYPE_OPERATION not updating amount values correctly

Former Member
0 Kudos

Hi,

When i try to update IT 15 for any currency which has zero decimal places, HR_INFOTYPE_OPERATION updates amounts incorrectly.

For example: 123.00 COP is updated as 12300. Please advise.

6 REPLIES 6

former_member188827
Active Contributor
0 Kudos

Please first try and creating the same entry using PA30 and check if you get the same result there as well. Also, try passing only '123' to function module instead of '123.00'.

Regards

0 Kudos

Am passing 123 to FM, since the data type is of Curr with decimal places 2, it stores the value as 123.00, but when updating it updates the value 12300.

Also with PA30, it would not allow to save when we enter decimal places as it is maintained as 0 decimals in TCURX and therefore not permitted for this currency

former_member491621
Contributor
0 Kudos

Hi,

Try passing the amounts without decimals.

The main program of the FM might not be using fixed point arithmetic(Just a guess!!).

Hope this helps

0 Kudos

Hi,

Please ensure that to accept  the decimals,  in userprofiles settings (SU01) tcode in that default tab select the decimal places as X.some times it might be the reason for that.

Hope this helps you.

0 Kudos

No, This will not work....

raymond_giuseppi
Active Contributor
0 Kudos

The structure PA0015 must be filled in actual internal format, so an amount of 123 must be stored as 0000000001.23 and not as 0000000123.00

Check this looking with SE16N at a table like BSIS for a currency without decimal like COP (display data "Output without Conversion Exit") you should that for amount in document currency the two trailing characters are not always equal to 00.

Regards,

Razymond