12-13-2013 5:33 AM
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.
12-13-2013 5:54 AM
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
12-13-2013 5:58 AM
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
12-13-2013 5:59 AM
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
12-13-2013 6:07 AM
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.
12-13-2013 10:28 AM
12-13-2013 11:15 AM
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