Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from Chidori0127 on Oct 25 at 8:22 PM Thank you very much for your kind advice! Unfortunately I can't get the source code. But my trouble is solved by your advice. My questions is ... Execute FM CONVERT_TO_LOCAL_CURRENCY in SE37 and I get the following result. 1.00 USD -> 115 JPY 1.00 USD -> 120GBP JPY looks fine, but GBP must be 1.20, not 120. But it is because of parameter type. If I execute FM in SE37, the foreign_amount and local_amount has CHAR(200). So the result is SAP internal format, but it looks external format because of lack of comma. In SAP standard program, the amount is transported with internal format. So I should use internal format in FM CONVERT_TO_LOCAL_CURRENCY, and I need to chagne external format with CURRENCY_AMOUNT_SAP_TO_IDOC if necessary. Is it right?
| | | ---------------Original Message--------------- From: Chidori0127 Sent: Thursday, October 25, 2012 4:50 AM Subject: Amount in FM : CONVERT_TO_LOCAL_CURRENCY Hi experts, Now I'm facing a trouble with converting foreign amount into local amount. I use function module CONVERT_TO_LOCAL_CURRENCY but the result looks like sometimes SAP internal format, sometimes external format. Should I set 'FOREIGN_AMOUNT' in import parameter with SAP internal format or external format? 'LOCAL_AMOUNT' in export parameter is internal/external format? Your kind advice will be really appreciated! Best regards, Yamashita | | Reply to this email to post your response. __.____._ | _.____.__ |