05-25-2006 7:35 PM
Hi everybody!
I need how find the IRR to use in a ABAP programm, i found the TV_COMPUTE_IRR but i uknow the parameters, i'll glad if you have a code to find the IRR from a itable.
Kind regards,
DM
05-25-2006 7:52 PM
TRy
RE_GET_IRRECOVERABLE_TAXACC
I_BUKRS LIKE T001-BUKRS (( Company Code)
I_SAKNR LIKE TIV65-SAKNR ( G/L Account Number)
<u><b>For call function 'TV_COMPUTE_IRR'</b></u>
See the include :<b>RFTVIR03</b>
call function 'TV_COMPUTE_IRR'
exporting
akt_datum = vtv_klko-aktudat
start_datum = vtv_klko-startdat
horizont = vtv_klko-horizon
anz_waehrung = p_anzwr
w_mseg = w_mseg
p_mess = p_mess
tables
it_vtv_pvre = wf_vtv_skku
it_szn = i_szn
i_methodirr = i_methodirr
i_method = i_method
e_cashflow = e_cashflow
i_method_irr = i_method_irr
i_method_irr1 = i_method_irr1
i_method_irr2 = i_method_irr2
s_method = s_method
s_method2 = s_method2
s_cashflow = s_cashflow
s_cashflow2 = s_cashflow2
exceptions
others = 1.
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"
05-25-2006 7:52 PM
TRy
RE_GET_IRRECOVERABLE_TAXACC
I_BUKRS LIKE T001-BUKRS (( Company Code)
I_SAKNR LIKE TIV65-SAKNR ( G/L Account Number)
<u><b>For call function 'TV_COMPUTE_IRR'</b></u>
See the include :<b>RFTVIR03</b>
call function 'TV_COMPUTE_IRR'
exporting
akt_datum = vtv_klko-aktudat
start_datum = vtv_klko-startdat
horizont = vtv_klko-horizon
anz_waehrung = p_anzwr
w_mseg = w_mseg
p_mess = p_mess
tables
it_vtv_pvre = wf_vtv_skku
it_szn = i_szn
i_methodirr = i_methodirr
i_method = i_method
e_cashflow = e_cashflow
i_method_irr = i_method_irr
i_method_irr1 = i_method_irr1
i_method_irr2 = i_method_irr2
s_method = s_method
s_method2 = s_method2
s_cashflow = s_cashflow
s_cashflow2 = s_cashflow2
exceptions
others = 1.
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"
05-25-2006 9:56 PM
Hi again!
I need to find the IRR in a ABAP programm wiht severals cashflow located in a internal tab. The function TV_COMPUTE_IRR is used by SAP for other purpouse, i need find the internal return rate for the cashflow group.
Thank you a lot!
DM