Skip to Content
author's profile photo Former Member
Former Member

BAPI_RE_CN_CHANGE addition of terms

Dear All,

I want to add the terms details in ' BAPI_RE_CN_CHANGE ' for each RE contract. But the BAPI is returning error 'No renewal rule was entered'. Please check my code and kindly advice what needs to be changed.

*-- Terms
ls_term_renew-term_text = gs_contract-term_text.
ls_term_renew-renewal_type = ' '.
ls_term_renew-renewal_rule = '1000'.

ls_term_renew_x-term_text = 'X'.
ls_term_renew_x-renewal_type = ' '.
ls_term_renew_x-renewal_rule = 'X'.

ls_term-change_indicator = 'I'.
* ls_term-term_no = ''.
ls_term-term_text = gs_contract-term_text.
* ls_term-notice_type = '1'.
* ls_term-notice_procedure = '1100'.
APPEND ls_term TO lt_term.
CLEAR: ls_term.

REFRESH: lt_return[].

IF lt_condition[] IS NOT INITIAL.
CALL FUNCTION 'BAPI_RE_CN_CHANGE'
EXPORTING
compcode = gs_contract-bukrs
contractnumber = gs_contract-recnnr
term_renewal = ls_term_renew
term_renewal_x = ls_term_renew_x
trans = c_trans
test_run = p_test
TABLES
term_renewal_rule = lt_term
condition = lt_condition
return = lt_return.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 18, 2016 at 03:56 AM

    Closed.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.