Application Development 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: 

Finding IRR (Internal Return Rate)

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member181966
Active Contributor
0 Kudos

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 this’ll give you idea!!

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

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

2 REPLIES 2

former_member181966
Active Contributor
0 Kudos

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 this’ll give you idea!!

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

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

Former Member
0 Kudos

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