BAPI_OUTB_DELIVERY_CHANGE is one of the more obnoxious BAPI calls I have made to update custom fields. I had custom fields on LIPS that needed to be updated. My issue was that Business Function LOG_LE_INTEGRATION was not turned on and that meant that BAdI LE_SHP_DELIVERY_UPDATE was not being called. This BAdI is crucial for updating LIPS with custom fields from table CT_VBPOK.
Steps for Updating Custom Fields on Delivery Line Item
- Append structure VBPOK with custom fields
- Create enhancement implementation of classic BAdI SMOD_V50B0001. In method IF_EX_SMOD_V50B0001~EXIT_SAPLV50I_010 you will want to copy the values of your custom fields from Extenson1 or Extension2 to CT_VBPOK.
- Create enhancement implementation of BAdI LE_SHP_DELIVERY_UPDATE. NOTE: Business Function LOG_LE_INTEGRATION must be switched on. This BAdI will allow you to update LIPS from CT_VBPOK.
Below are screen shots of my debugging that helped me figure this out:
I found the switch by looking at Enhancement Implementation VL_SFWS_LV50LF14
I then looked in table SFW_SW_BF to find the corresponding Business Function
Then T-code SFWF