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

Function module

Former Member
0 Likes
1,094

Hi All,

The following function module is used in the program.

BAPI_EXCHANGERATE_GETDETAIL.

I need to know whether this is pulling the exchange rate from tcurr table or some other table.

How do i trace this ?

Thanks and Regards,

Amit Nayak

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,023

it means that it is using that particular table for exchange rate.

if u want to check the code for the same

then put break point on select statement.

and follow the code select ... from tcurr; to find out what exactly being done

Message was edited by: Manoj Gupta

11 REPLIES 11
Read only

Former Member
0 Likes
1,023

Hi Amit,

You can start a SQL trace on the same from ST05 and see all the select queries.

<b>Reward points if it helps.</b>

Read only

Former Member
0 Likes
1,023

u can use <b>sql trace</b> transaction to trace out wat fields are being used in the report & from where

Read only

Manohar2u
Active Contributor
0 Likes
1,023

1) You can search this FM with "from TCURR" to know where the selects are getting triggered

2) You can debug by keepting breakpoint at select statement.

Cheers

Manohar

Read only

Former Member
0 Likes
1,023

place a break-point at the function module CALL, & execute.

when program reaches this statement, in ST05,say sql trace on & select F6 & then in ST05 say sql trace off & select analyse button to see which tables used in the function module ..

or

go to the function module in SE37 & go to global search & give your table name 'TCURR' & search for it.

regards

srikanth

Read only

former_member181966
Active Contributor
0 Likes
1,023

Yes its reading Exchange rate ::

<i>If you’ll go to the code of “BAPI_EXCHANGERATE_GETDETAIL” ( Tr.SE37), its call up the following FM</i>

call function 'BAPI_EXCHRATE_GE<b>TCURR</b>ENTRATES'

exporting

date = date

rate_type = rate_type

show_protocol = 'X'

tables

from_curr_range = from_curr_range

to_currncy_range = to_currncy_range

exch_rate_list = exch_ratetab

return = rettab.

Hope this’ll give you idea!!

<b>P.S award the points.</b>

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

Read only

Former Member
0 Likes
1,023

Amit,

Yes, the FM is reading data from TCURR along with some supplementary tables like TCURV,TCURC etc. What are you actually trying to figure out?

Read only

0 Likes
1,023

Hi Sandip,

The problem statement is mentioned below :

But going forward, we will pull all rates from OC41 as $/foreign currency.

When I checked the program, it is retreiving the data from the function module. So am not sure whether to change or continue with the existing program .

Thanks,

Amit Nayak

Read only

0 Likes
1,023

<b>OC41</b> using the View "V_TCURR".....

Thanks

SK

Read only

0 Likes
1,023

Even if it gets the curr from tcurr or not, you can just over write just after the call to the bapi you have mentioned .

Regards,

Ravi

Read only

0 Likes
1,023

Amit,

Doesn't what Saquib said answer your question?

Check in SE93, transaction OC41 is actually a maintenace view of TCURR.

Read only

Former Member
0 Likes
1,024

it means that it is using that particular table for exchange rate.

if u want to check the code for the same

then put break point on select statement.

and follow the code select ... from tcurr; to find out what exactly being done

Message was edited by: Manoj Gupta