SAP VL02N外向交货发货过账 BAPI: BAPI_OUTB_DELIVERY_CONFIRM_DEC
外向交货发货过账 BAPI,BAPI_OUTB_DELIVERY_CONFIRM_DEC,
调用这个BAPI之前必须先执行拣配RFC:SD_DELIVERY_UPDATE_PICKING
过账成功后,内向交货单号,内向交货行项目保存在EKES-VBELN 和EKES-VBELP,关联交货单号和交货行项目EKES-VBELN_ST、VBELP_ST
CALL FUNCTION 'SD_DELIVERY_UPDATE_PICKING'
EXPORTING
vbkok_wa = ls_vbkok
synchron = 'X'
if_error_messages_send = ''
TABLES
vbpok_tab = lt_vbpok
EXCEPTIONS
error_message = 99
OTHERS = 01.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
EXPORTING
header_data = ls_header_dat