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: 

Fm/BAPI to delete outbound delivery

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

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

5 REPLIES 5

kesavadas_thekkillath
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi

Please look at http://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery+(VL02)

This is precisely what you need.

Dean Q.

Former Member
0 Kudos

Hi Abhilash,

Can you please share how did you delete delivery line item from delivery?

Please also share sample coded if possible.

Thank you.

0 Kudos

Hi ,

Do you solve of found any solution to your issue ?

Thanks & Regards

PCA

0 Kudos

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