Skip to Content
author's profile photo Former Member
Former Member

delete delivery document, use: BAPI_OUTB_DELIVERY_CHANGE

hi friends,

I want to delete a delivery document. I think BAPI_OUTB_DELIVERY_CHANGE will be useful for my purpose but I cannot find any field indicating the operation type like 'U'pdate, 'D'elete etc.

is it the right bapi function or should i use a different one?

thanks,

- ferudun

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Mar 02, 2007 at 12:21 PM

    If you use this FM, You can only delete deliveries in the decentralized system and copy

    this deletion to the central SAP ERP system, if the decentralized

    WMS is an external system. For this, set the DLV_DEL indicator in

    the HeaderControl parameter.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I have tried this way but nothing has happened. The return table was containing a row with error E VL 302 and empty message texts. (Delevery document doesn't exist)

      header_control-dlv_del = 'X'.

      CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'

      EXPORTING

      HEADER_DATA = header_data

      HEADER_CONTROL = header_control

      DELIVERY = delivery_no

      TABLES

      RETURN = return.

      I see the delivery document from VL03 tcode.

      what is wrong? what data should i supply?

      thanks,

      - ferudun

      Message was edited by:

      Ferudun ATAKAN

  • Posted on Mar 02, 2007 at 02:42 PM

    Hi,

    Please try this FM and BAPI.

    WS_DELIVERY_UPDATE

    BAPI_DOCUMENT_DELETE

    BAPI_DOCUMENT_DELETE_DIRECT

    Regards,

    Ferry Lianto

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.