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.