Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Bapi for 'delete delivery document'

Former Member
0 Kudos
8,007

Hi SAP Gurus,

Can anyone tell me Bapi for 'delete delivery document'

Thanks & Regards,

Krishna..

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
1,456

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

4 REPLIES 4

raymond_giuseppi
Active Contributor
1,457

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

Former Member
0 Kudos
1,456

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

Former Member
0 Kudos
1,456

Hi,

use:

BAPI_OUTB_DELIVERY_CHANGE

Thanks,

Krishna

ramesh_mahankali
Active Participant
0 Kudos
1,456

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