11-03-2009 10:09 AM
Hi,
can anyone tell me the FM/BAPI name to delete the outbound delivery. I am able to delete the delivey line item using BAPI_OUTB_DELIVERY_CHANGE but I want to delete the entire O/B delivey so that no reference of the O/B delivery is there in table.
Below BAPI are of no use:
BAPI_OUTB_DELIVERY_CONFIRM_DEC
BAPI_OUTB_DELIVERY_CHANGE
BAPI_LIKP_GET_LIST_MSG
BAPI_LIKP_PROCESS_MSG
BAPI_LIKP_PROCESS_MSG_DIRECT
BAPI_OUTB_DELIVERY_SAVEREPLICA
BAPI_OUTB_DELIVERY_SPLIT_DEC
11-03-2009 10:42 AM
refer:
link:[http://www.sapnet.ru/viewtopic.php?p=811]
link:[http://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery+(VL02)]
check programs
RVDELSTA
SDRQCR21
11-03-2009 10:42 AM
refer:
link:[http://www.sapnet.ru/viewtopic.php?p=811]
link:[http://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery+(VL02)]
check programs
RVDELSTA
SDRQCR21
11-03-2009 9:48 PM
Hi
Please look at http://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery+(VL02)
This is precisely what you need.
Dean Q.
06-12-2014 5:24 PM
Hi Abhilash,
Can you please share how did you delete delivery line item from delivery?
Please also share sample coded if possible.
Thank you.
01-09-2015 4:10 PM
01-12-2015 5:05 AM
Hi Paulo,
Please use the FM BAPI_OUTB_DELIVERY_CHANGE for deleting delivery line item from delivery.
l_header-deliv_numb = p_delv.
l_headercntrl-deliv_numb = p_delv.
li_item_line-deliv_numb = p_delv.
li_item_line-deliv_item = li_lips_line-posnr.
li_item_line-material = p_ltap_line-matnr.
li_item_line-batch = li_lips_line-charg.
li_item_line-stock_type = li_lips_line-insmk.
li_item_line-fact_unit_nom = 1.
li_item_line-fact_unit_denom = 1.
APPEND li_item_line TO li_item.
li_itemc_line-deliv_numb = p_delv.
li_itemc_line-deliv_item = li_lips_line-posnr.
li_itemc_line-del_item = c_x.
APPEND li_itemc_line TO li_itemcntrl.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
EXPORTING
header_data = l_header
header_control = l_headercntrl
delivery = p_delv
TABLES
item_data = li_item
item_control = li_itemcntrl
return = li_return.
Please try with the above sample code.
Regards,
Gayatri