BAPI_OUTB_DELIVERY_CHANGE Help - Add new line item
I am trying to use BAPI_OUTB_DELIVERY_CHANGE to add a new line item to an existing delivery automatically when a new line is added to the sales order. I can successfully use the bapi to change the order quantity of an existing line but cant get it to add a new line. Thoughts?
What fields are required? Currently I am passing it:
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
TECHN_CONTROL = it_tech
HEADER_DATA = it_header
HEADER_CONTROL = it_hdr_cont
DELIVERY = gp_delivery
NEW_ITEM_DATA = it_new_item
NEW_ITEM_ORG = it_new_item_org
RETURN = it_return