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 type

Former Member
0 Likes
432

Hi All,

Kindly help me on the below equirement. Many thanks in advance to all.

I need to get the exchange rate from Tcurr table.

flow is:

Select dument number for BKPF as per the selection screen

Then for all this entries get the docmunt detials from bseg. (eg: local currency )

use function modiule READ_EXCHANGE_RATE to get the validaty date.

and then get the exchnage rate from Tcurr table on the base of validity date.

ISSUE is :

The fm has currency type as import parameter and i am not getting fron where to pass the these imput parameter.

As bseg table do not have currency type.

Kindly help me on this.

many thanks,

Anuj.

2 REPLIES 2
Read only

brad_bohn
Active Contributor
0 Likes
388

You don't need to read TCURR directly - the function returns the exchange rate as well as the valid from date. The default exchange type is 'M'. If you need a different rate based on your process then you need to pass that value to the function. Also, if you're looking for the value from the document based on document and local currencies being different, the exchange rate will be in BKPF.

Read only

Former Member
0 Likes
388

Hi Brad,

many thanks for the information , please also let me know how to pass the import parameter to the fucntion for the above mention senerio.

I am facing problem in that.

many thanks,

Anuj.