Application Development and Automation 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: 
Read only

Doubt in using :Function Module : MS_CONVERT_TO_OTHER_CURRENCY

Former Member
0 Likes
431

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.

2 REPLIES 2
Read only

Former Member
0 Likes
399

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.

Read only

Former Member
0 Likes
399

Get company currency from T001 passing Bukrs.

SELECT SINGLE * FROM T001 WHERE BUKRS EQ P_BUKRS