‎2008 Jun 04 3:01 PM
Hi ,.
In the Function Module :MS_CONVERT_TO_OTHER_CURRENCY.
I have to export following parametes:
DATE
FROM_CURRENCY
FROM_AMOUNT
TO_CURRENCY
COMPANY_CURRENCY
RATE (optional) .
Here my doubt is :what is the purpose of COMPANY_CURRENCY .What value i have to populate here , how i have to find the company currency?
I think we have to find this COMPANY_CURRENCY based on the sales organization.
Please update me regarding this COMPANY_CURRENCY .
Thanks,
Suresh.
‎2008 Jun 04 3:07 PM
Have you tried using 'CONVERT_TO_FOREIGN_CURRENCY' instead?
DATA: v_amount TYPE p DECIMALS 2.
CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'
EXPORTING
date = sy-datum
foreign_currency = 'INR'
local_amount = '1.00'
local_currency = 'USD'
IMPORTING
foreign_amount = v_amount
EXCEPTIONS
no_rate_found = 1
overflow = 2
no_factors_found = 3
no_spread_found = 4
derived_2_times = 5
OTHERS = 6.
IF sy-subrc = 0.
WRITE: / 'US dollar to Indian rupees - ', v_amount.
ENDIF.
‎2008 Jun 04 3:07 PM
Get company currency from T001 passing Bukrs.
SELECT SINGLE * FROM T001 WHERE BUKRS EQ P_BUKRS