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

Currency conversion

Former Member
0 Likes
811

Hi friends,

Please suggest a function module or BAPI to get the exchange rate between two currencies for a particular given date.

Regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
733

BAPI_EXCHANGERATE_CREATE

BAPI_EXCHANGERATE_GETDETAIL

BAPI_EXCHANGERATE_GETFACTORS

function module

PTRV_GET_EXCHANGE_RATE

COPA_CALCULATE_EXCHANGE_RATE

COPA_READ_EXCHANGE_RATE

CALCULATE_EXCHANGE_RATE

Hi friends,

Please suggest a function module or BAPI to get the exchange rate between two currencies for a particular given date.

Regards.

3 REPLIES 3
Read only

Former Member
0 Likes
734

BAPI_EXCHANGERATE_CREATE

BAPI_EXCHANGERATE_GETDETAIL

BAPI_EXCHANGERATE_GETFACTORS

function module

PTRV_GET_EXCHANGE_RATE

COPA_CALCULATE_EXCHANGE_RATE

COPA_READ_EXCHANGE_RATE

CALCULATE_EXCHANGE_RATE

Read only

Former Member
0 Likes
733

hi antony,

try this

BAPI_EXCHANGERATE_CREATE

A BAPI is assigned to one and only one business object. ... The relations between currencies have to be maintained per exchange rate type ...

or pls see the below links for ur query

http://abaplog.wordpress.com/2008/01/28/betting-on-sap-esa-part-2/

http://sapabapnotes.blogspot.com/2007_12_01_archive.html

abaptutorial.blogspot.com/2006_01_01_archive.html - 57k

thanks

sagar

Read only

Former Member
0 Likes
733

Hi,

Try to use this.

CALL FUNCTION 'READ_EXCHANGE_RATE'

EXPORTING

date = i_dtbase

foreign_currency = i_form

local_currency = i_to

type_of_rate = i_ctg

IMPORTING

derived_rate_type = i_rate_type

EXCEPTIONS

no_rate_found = 1

no_factors_found = 2

no_spread_found = 3

derived_2_times = 4

overflow = 5

OTHERS = 6.

Regards,

Fernando