Good day Experts,
I have a requirement, according to which, I need to update FKKVKP-ADRRH field from an input file along with ABWRH. After doing some research I found this BAPI_CTRACCONTRACTACCOUNT_CH1 to achieve my objective, however, BAPI doesn’t update the values of these fields.
Can anybody take a look at my logic and advise what error I am making and how to rectify it (my biggest puzzle is which structure/table I have to use to update these 2 fields, especially ADRRH)?
________________________________________________________________________
lw_fkkvkp_upd-vkont = ‘10166724’.
lw_fkkvkp_upd-gpart = ‘1127680’.
lw_fkkvkp_upd-abwrh = ‘1127680’.
lw_fkkvkp_upd-adrrh = ‘2283780’.
lv_contract = lw_fkkvkp_upd-vkont.
lv_partner = lw_fkkvkp_upd-gpart.
lv_ctrdetails = lw_fkkvkp_upd-vkbez.
lv_ctrdetailsx = lc_x.
lv_contract = |{ lv_contract ALPHA = IN }|.
lv_partner = |{ lv_partner ALPHA = IN }|.
CALL FUNCTION ‘BAPI_CTRACCONTRACTACCOUNT_CH1’
EXPORTING
contractaccount = lv_contract
businesspartner = lv_partner
ctracdetail = lv_ctrdetails
ctracdetailx = lv_ctrdetailsx
TABLES
return = lt_return.
CLEAR: lw_fkkvkp_upd.
CALL FUNCTION ‘BAPI_TRANSACTION_COMMIT’
EXPORTING
wait = abap_true.
________________________________________________________________________
Many thanks for your time and help in advance.