cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_RE_CN_CHANGE to change individual renewal rules

Former Member
0 Kudos

Hi Experts,

In contract I want to change Term-->Renewal-->Individual renewal rules.

Field 'Rounding of renewal' has to changed to '2'(Month-end). I am using BAPI_RE_CN_CHANGE to do it.

call function 'BAPI_RE_CN_CHANGE'

       exporting

         compcode          = wa_vicncn-bukrs

         contractnumber    = wa_vicncn-recnnr

*       CONTRACT          =

        CONTRACT_X        = wa_contx

         term_renewal      = lwa_term1

         term_renewal_x    = lwa_termx

       tables

         term_renewal_rule = li_ren_rule

         return            = li_ret.


But it is returning error 'Renewal term has to be defined as contract term'.

Can you please tell me what needs to be passed to change 'Individual renewal rules'.


Regards,

Greeshma.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Issue resolved by using proper structure while passing to BAPI.

Thanks for all the help.

Answers (1)

Answers (1)

jakubsalata
Participant
0 Kudos

Hi,

what do you put in BAPI_RE_TERM_RN_RULE_DATC-TERM_NO? It should equal  retm1_termno_default (space).

Kind regards.