Application Development 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: 

Change the billing date of a sales contract

former_member806481
Participant
0 Kudos
143

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.
0 REPLIES 0