2006 Jun 05 3:09 PM
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
2006 Jun 05 3:26 PM
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
2006 Jun 05 3:12 PM
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>
2006 Jun 05 3:13 PM
u can use <b>sql trace</b> transaction to trace out wat fields are being used in the report & from where
2006 Jun 05 3:14 PM
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
2006 Jun 05 3:16 PM
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
2006 Jun 05 3:16 PM
Yes its reading Exchange rate ::
<i>If youll 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 thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"
2006 Jun 05 3:17 PM
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?
2006 Jun 05 3:34 PM
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
2006 Jun 05 3:38 PM
2006 Jun 05 3:44 PM
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
2006 Jun 05 4:52 PM
Amit,
Doesn't what Saquib said answer your question?
Check in SE93, transaction OC41 is actually a maintenace view of TCURR.
2006 Jun 05 3:26 PM
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