‎2009 Jan 23 12:00 PM
Hi SAP Gurus,
Can anyone tell me Bapi for 'delete delivery document'
Thanks & Regards,
Krishna..
‎2009 Jan 23 12:09 PM
You may try BAPI like
- [BAPI_INB_DELIVERY_CHANGE|https://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_inb_delivery_change&cat=sdn_all]
- [BAPI_OUTB_DELIVERY_CHANGE|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_outb_delivery_change&adv=false&sortby=cm_rnd_rankvalue]
setting set the DLV_DEL indicator in the HeaderControl parameter.
Regards
‎2009 Jan 23 12:09 PM
You may try BAPI like
- [BAPI_INB_DELIVERY_CHANGE|https://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_inb_delivery_change&cat=sdn_all]
- [BAPI_OUTB_DELIVERY_CHANGE|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_outb_delivery_change&adv=false&sortby=cm_rnd_rankvalue]
setting set the DLV_DEL indicator in the HeaderControl parameter.
Regards
‎2009 Jan 23 12:13 PM
Hi,
You can use BAPI_INB_DELIVERY_CHANGE to change and delete the inbound delivery.
In control structures (HEADER_CONTROL,ITEM_CONTROL ) you can find deletion indicator flag. If you set that flag and exectue it will delete the Delivery.
For deleting the delivery I think it would be sufficient to set the DLV_DEL of the Header control data flag to 'X'.
Pass the HEADER_CONTROL-DELIV_NUMB and HEADER_CONTROL-DLV_DEL = 'X'
You might also have to pass the delivery number to HEADER_DATA-DELIV_NUMB.
But if you want to delete a single item, then you will have to pass data to
ITEM_CONTROL-DELIV_NUMB
ITEM_CONTROL-DELIV_ITEM
&
ITEM_CONTROL-DEL_ITEM = 'X'.
You might also have to pass the delivery number and item number to ITEM_DATA-DELIV_NUMB and ITEM_DATA-DELIV_ITEM. Also not sure of this, you test this in transaction SE37.
Check this link
‎2009 Apr 07 11:51 AM
‎2009 Jun 15 9:02 PM
Hi,
I have a similar requirement to delete out bound delivery but we are in 4.6C version.
Please let me know if you know any BAPIs/FMs out there to delete a out bound delivery in 4.6c.
BAPIs given in this thread are only available in ECC.
Thanks in Advance,
Ramesh