2022 Aug 24 7:43 AM
I already have a sales contract however i want to change the sales contract item billing date
is there is any BAPI or FM for it ?
I am using below code for this requirement but the billing date is not getting updated when i check the contract in VA43
order_header_in_2-division = ls_vbak-spart.
order_header_inx_2-updateflag = 'U'.
order_header_inx_2-division = 'X'.
order_items_in_1-bill_date = lv_to_date.
order_items_inx_1-updateflag = 'U'.
order_items_inx_1-bill_date = 'X'.
CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'
EXPORTING
salesdocument = ls_vbak-vbeln
contract_header_in = order_header_in_2
contract_header_inx = order_header_inx_2
TABLES
return = return
contract_item_in = order_items_in_1
contract_item_inx = order_items_inx_1.