Application Development and Automation 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: 
Read only

API_RE_CN_CHANGE

Former Member
0 Likes
1,240

Hi All,

I am using a funciton module API_RE_CN_CHANGE to update the tax type and tax group for contract in RECN tcode. I am passing the company code and contract to BAPI 'API_RE_CN_GET_DETAIL' to get the details and i passed change indicator U to update the contract. But i am getting UPDATE TERMINATED error message and some times tax type and tax group are not updating to the tcode RECN.

LOOP AT IT_TERM_PAYMENT.

CALL FUNCTION 'API_RE_CN_CHANGE'

EXPORTING

ID_BUKRS = WA_UPLOAD-BUKRS

ID_RECNNR = WA_UPLOAD-RECNNR

IT_TERM_PAYMENT = IT_TERM_PAYMENT[]

EXCEPTIONS

ERROR = 1

OTHERS = 2.

endloop.

How to capture the error messages?

Pls suggest me how to use API_RE_CN_CHANGE.

Thanks in advance

Sreekala.

Hi All,

I am using a funciton module API_RE_CN_CHANGE to update the tax type and tax group for contract in RECN tcode. I am passing the company code and contract to BAPI 'API_RE_CN_GET_DETAIL' to get the details and i passed change indicator U to update the contract. But i am getting UPDATE TERMINATED error message and some times tax type and tax group are not updating to the tcode RECN.

LOOP AT IT_TERM_PAYMENT.

CALL FUNCTION 'API_RE_CN_CHANGE'

EXPORTING

ID_BUKRS = WA_UPLOAD-BUKRS

ID_RECNNR = WA_UPLOAD-RECNNR

IT_TERM_PAYMENT = IT_TERM_PAYMENT[]

EXCEPTIONS

ERROR = 1

OTHERS = 2.

endloop.

How to capture the error messages?

Pls suggest me how to use API_RE_CN_CHANGE.

Thanks in advance

Sreekala.

2 REPLIES 2
Read only

Former Member
0 Likes
937

after that function module. if sy-subrc = 0 .

i used commit work to update to the database.

Read only

Former Member
0 Likes
937

see the Note 1356567 to check a known bug or not.