Skip to Content
avatar image
Former Member

Fm/BAPI to delete outbound delivery

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Nov 03, 2009 at 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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 03, 2009 at 09:48 PM

    Hi

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

    This is precisely what you need.

    Dean Q.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 12, 2014 at 04: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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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