on 05-29-2007 10:26 AM
Hi,
I have problem using this FM CONVERT_TO_LOCAL_CURRENCY in my coding. I have a requirement in which the workflow will be triggered based on the limit value in USD. So in my BADI (btw we're using n-step approval workflow in SC), we will utilize this FM.
As what i know from the documentation, if we put 'X' in parameter READ_TCURR then it should read the exchange rate table with type of rate we specify in TYPE_OF_RATE. I run this FM using 100 EUR (foreign) converted to USD (local) and I got 119 USD, while actually I'm using 1 EUR = 2 USD in rate type M. I notice that though I expressly put "M" as the type of rate, I got DERIVED_RATE_TYPE = "EURX" as output.
Then I assume that for EUR it should only read rate type EURX. Then I change the table for type rate EURX for EUR in which 1 EUR = 0.5 USD. And then I run the FM again, and still I got 119 USD (!!). So can anyone tell me what is the logic used by this FM for EUR translation?
Thanx in advance
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Atul,
Thanks for the input. I check the BAPI already, and it is giving us the reading from the table. But if we're using the BAPI then we need to do manual calculation for the amount in local currency which actually provided nicely by FM CONVERT_TO_LOCAL_CURRENCY (except for EUR). Or do you have any sample code of how you use these 2 FM together? Or is there any other FM that have the same capability with FM CONVERT_TO_LOCAL_CURRENCY but works fine with EUR as well?
Best regards,
John
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.