Deleting OB Delivery after TO confirmed in Lean WM

Hi Guru's
I would like to know how one can delete the outbound delivery after Transfer Order is confirmed in Lean WM. As the material is not moved to interim storage type we cannot use LT0G to reverse the picking. What is the best approach in such cases?
I have read few discussion on SCN related to deletion of outbound delivery but was not clear on the solution provided,hence created a new thread.
Thanks
Rahul

have a look into KBA 1486490 - Delete a delivery note without eliminating the transfer order (WM)
and OSS note 521409 - Problems with deleting delivery items online
Having read those notes, it makes me think that setting VL173 as error message was done by some of your colleagues, as the standard allows deletion without any message. So you should consult with them to understand the reason why they did it and if they thought about such a deletion in their concept, or if they eventually have a different concept for deletion

Similar Messages

  • Deletion of Delivery after confirm of Pick and WM TO, should not be allowe

    The system will allow a delivery to be deleted after confirmation of Picking and WM TO. This creates all kinds of issues in WM for tracebility. Is there any way to prevent this from happening through config in WM or SD?
    Edited by: Daryl Dellinger on Jan 30, 2008 3:51 PM

    Try OSS notes 567666 - stock inconsistencies after deletion of delivery items
    Regards
    Edited by: Shiva Ram on Jan 30, 2008 8:32 PM

  • Why I can delete a delivery after picking was done?

    Hello,
    Someone knows if it is a bug or a feature that I can delete a delivery although it was already fully picked and the status is "C"?
    I am not sure since when I can delete a delivery even after picking was done, maybe it started after our upgrade to ECC 6.0 but
    Any way I need to change it and I am not sure if it is a bug or some customization cause it?
    Thank you
    Tomer Zimmerman

    Hi Tomer;
    This is a feature of SAP. We are on 4.7 and I tested the above scenario. The delivery gets deleted even if the picking is done. I have not tested using the confirmations.
    I think this is because there is no real impact in accounting or inventory terms. Because picking does not create any transactional dicoments.
    Pls reward if useful.
    Regards,
    Mani

  • Not able to delete a delivery after revenue recognition is reversed

    Hello Gurus,
    We have a situation for certain Sales Order types after creation of Sales Order -> Delivery and PGI, we do revenue recognition. But there was some mistake and delivery needed to be deleted and recreated if needed. So after doing revenue recognition reversal we are reversing the PGI. After this when we try to delete the  Delivery ( which would have got deleted if there was no revenue recognition process ) we get the below error.
    Is it a problem with the way Revenue recognition is configured or does the standard behave like this. If the Invoice is also present in the above I am able to cancel the Invoice. If you think its a problem with the way Revenue reccognition is configured please advise.
    Item 000010 cannot be deleted (revenue recognition status)
    Message no. VL896
    Diagnosis
    The delivery or delivery item cannot be deleted.
    System response
    The document cannot be deleted since the delivery contains items that
    reference sales document items that are relevant for revenue
    recognition. When the goods issue was posted, the system created revenue
    lines that had already been recognized. This means that there are
    subsequent documents in revenue recognition for this delivery.
    Procedure
    If you no longer require the delivery or delivery item for deletion, set
    the delivery quantities to zero and repost the goods issue. Make sure
    that the quantity zero is allowed in Customizing for the delivery item
    category. When the goods issue is posted, the overall processing status
    is set to C and the delivery can be archived. Message determination
    should be configured not to send any messages in this case. To make sure
    that the system makes revenue corrections if there are differences
    vbetween billed and recognized values, set a billing-relevant rejection
    reason in the sales document item if more than one partial delivery is
    allowed.
    If you still want to use the delivery, adjust the delivery quantities
    accordingly. Alternatively, deliver the referencing sales document item
    again. Note that the sales document item cannot be delivered again if
    only a partial delivery is allowed.
    What are the changes I can do to Delete the Delivery?
    If I cannot Delete the Delivery, Should I make the Delivery as 0 qty and create a new delivery with changed qty and do further process. Or should I reject the Sales Order and create a new sales order with exact qty and do further process.
    Please advise.
    Regards,
    SNK.
    Delivery has one line item. For the above case scenario, invoice is there for some deliveries and for some deliveries there is no invoice. Eg: SO -> DN -> PGI -> Rev Recog -> Iv or SO -> DN -> PGI -> Rev Recog. Requirement was SO was wrongly created as the qty was wrong or in some cases SO needs to be rejected. I am able to cancel Invoice. Rev recog is reversed. PGI is cancelled by VL09. Not able to delete Delivery and I get the above error. Ideally I thought since Rev recog is reversed, Delivery should have been deleted but not happening and above error comes.
    SO - Sales Order DN - Delivery IV - Invoice
    Edited by: sapconsultnt on Dec 16, 2009 5:06 AM

    Hello,
    Please review the Note 1224871 which introduced this functionality.
    Regards,
    Raghavendra YN

  • Block or warn when delete a delivery that has confirmed transfer order

    Hi,
    Our system allows user to delete a delivery with confirmed transfer order (not for open TO though). This creates lots material in the status of wating PGI. Is there any method to block or at least warn the user from deleting a delivery with confirmed TO?
    Thanks in advance,
    Colin

    Hi Sridhar,
    Thanks for your quick response. I put these codes in the user exit
    FORM userexit_delete_document.
      message 'cannot delete' type 'E'.
      v50agl-no_commit = 'X'.
    ENDFORM.                    "USEREXIT_DELETE_DOCUMENT
    The no_commit would stop delivery being deleted. Since the internal tables and structure have been cleared up/changed before this user exit, when back to VL02N, the line items and some other info disappear. Is there any way I can roll back the data in those internal tables or structures, or simply exit out and back to the selection screen?
    Thanks,
    Colin

  • Vl02n : How to restrict changed in Delivery after TO confirmation

    Hi,
    Standard behaviour of system is observed as follows.
    Delivery created --> TO Create --> No changes in Delivery --> TO Confirmed --> Delivery Item quantity can be increased or Line item/s or delivery itself can be deleted.
    Needs to be restriced Delivery Changes , once TO Confirmation is done.
    Can you please advice me, how to achive this.
    Regards,
    Manish Gupta

    Hi:
    I had a similar trouble in a 46B version, and if I remember well, the system when the TO was confirmed, the system display a warning message, no error message. I achieved display error message with two user-exits.
    1. In report MV50AFZ1, in subroutine 'USEREXIT_SAVE_DOCUMENT_PREPARE', you can write this tcode (it verify that the end user that manage deliveries don't delete items in delivery when TO is confirmed by users of warehouse, because they are not the same users).
    EHM 280403 (CHEQUEAR ANTES DE GRABAR) / do a check before save
    *break-point.
    verif si utilizamos sy-uname / check if I must use sy-uname
    CHECK sy-tcode = 'VL02N' OR sy-tcode = 'VL02'.
    TABLES: ltak.
    DATA: BEGIN OF iltap OCCURS 30,
    lgnum LIKE ltap-lgnum,
    tanum LIKE ltap-tanum,
    tapos LIKE ltap-posnr,
    posnr LIKE ltap-posnr,
    pquit LIKE ltap-pquit,
    nlpla LIKE ltap-nlpla,
    vorga LIKE ltap-vorga,
    nsola LIKE ltap-nsola,
    nista LIKE ltap-nista,
    END OF iltap.
    DATA: linpan TYPE i, "delevery line in dynpro-> PAI (xlips)
    lintab TYPE i, "delivery lines in table ->PBO (lips, linelips)
    ot LIKE ltak-tanum,
    confir LIKE ltak-kquit.
    DESCRIBE TABLE ilips LINES linpan.
    DESCRIBE TABLE xlips LINES lintab.
    *PASO A SELECT SINGLE: ACCESO + RAPIDO
    SELECT SINGLE tanum kquit INTO (ot, confir) FROM ltak
    WHERE vbeln = xlips-vbeln.
    *ENDSELECT.
    IF sy-subrc = 0 and confir = 'X'.
    SELECT lgnum tanum tapos posnr pquit nlpla vorga nsola nista
    INTO CORRESPONDING FIELDS OF TABLE iltap FROM ltap
    UP TO lintab ROWS
    WHERE lgnum = '151'
    AND tanum = ot
    AND pquit = 'X'.
    *DESCRIBE TABLE ilips LINES linpan.
    *DESCRIBE TABLE xlips LINES lintab.
    IF lintab > linpan AND linpan > 0.
    LOOP AT xlips.
    READ TABLE ilips WITH KEY posnr = xlips-posnr
    BINARY SEARCH.
    IF sy-subrc NE 0. "es la posicion eliminada (item deleted)
    READ TABLE iltap WITH KEY nlpla = xlips-vbeln
    posnr = xlips-posnr
    BINARY SEARCH.
    IF sy-subrc = 0
    AND iltap-pquit = 'X'
    AND iltap-nsola EQ iltap-nista
    AND iltap-vorga NE 'ST'
    AND iltap-vorga NE 'SL'.
    message e027(ZB) WITH ot.
    ENDIF.
    ENDIF.
    ENDLOOP.
    VERIFICAR SI SE MANTIENE
    ELSEIF lintab < linpan.
    message e028(ZB) WITH ot.
    ENDIF.
    ENDIF. "sy-subrc
    2.Enhancement V50PSTAT, FM 'EXIT_SAPLV50P_001' in the include 'ZXV50U07' you can write this tcode (it check that the end user in a delivery with a TO confirmed cannot change the quantity to avoid problems):
    INCLUDE ZXV50U07 *
    EHM ABRIL 2003 : IMPEDIR Q MODIFIQUEN ENTREGAS CON OT CONFIRMADA
    *BREAK-POINT.
    CHECK sy-tcode = 'VL02N' OR sy-tcode = 'VL02'.
    EHM 020703 (CHEQUEO SY-UCOMM DISTINTO A WABU_T -> CONTAB. SM)
    CHECK sy-ucomm NE 'WABU_T'.
    FIN VERIF. (Q NO VERIFIQUE A EXPEDICIONES AL IMPRIMIR EL ALBARAN)
    TABLES: lips, ltak, ltap.
    DATA: BEGIN OF tltap OCCURS 30,
    lgnum LIKE ltap-lgnum,
    tanum LIKE ltap-tanum,
    tapos LIKE ltap-posnr,
    posnr LIKE ltap-posnr,
    pquit LIKE ltap-pquit,
    nlpla LIKE ltap-nlpla,
    vorga LIKE ltap-vorga,
    nsola LIKE ltap-nsola,
    nista LIKE ltap-nista,
    END OF tltap.
    DATA: ordcar LIKE lips-vbeln,
    ocposi LIKE lips-posnr,
    occant LIKE lips-lfimg.
    DATA: ot LIKE ltak-tanum,
    confir LIKE ltak-kquit.
    CLEAR: occant, ot, confir.
    SELECT lfimg INTO occant FROM lips
    WHERE vbeln = is_lips-vbeln
    AND posnr = is_lips-posnr.
    ENDSELECT.
    INCIDE A lkat-vbeln ??
    SELECT SINGLE tanum kquit INTO (ot, confir) FROM ltak
    WHERE vbeln = is_lips-vbeln.
    ENDSELECT.
    (SE AÃu2018ADE EL SINGLE PARA HACER MAS RAPIDO EL ACCESO A LTAK)
    IF sy-subrc = 0.
    SELECT lgnum tanum tapos posnr pquit nlpla vorga nsola nista
    FROM ltap
    APPENDING CORRESPONDING FIELDS OF TABLE tltap
    WHERE lgnum = '151'
    AND tanum = ot.
    EHM 280403: OJO: SOLO PARA LAS POSICIONES DEL PEDIDO
    CONFIRMADAS. LAS DEMAS SE PUEDEN MODIFICAR
    VERIFICAR Q NO VIENE LA OT DE MAS DE UNA ENTREGA
    READ TABLE tltap WITH KEY nlpla = is_lips-vbeln
    posnr = is_lips-posnr
    BINARY SEARCH.
    IF sy-subrc = 0
    AND tltap-pquit = 'X'
    AND tltap-nsola EQ tltap-nista
    AND tltap-vorga NE 'ST'
    AND tltap-vorga NE 'SL'.
    IF occant NE is_lips-lfimg.
    MESSAGE e025(ZB) WITH ot.
    ENDIF.
    ENDIF.
    ENDIF.
    *DATA:
    One suggestion: be careful with the performance with the SQL on tables LTAK and LTAP if you have a lot of records in this tables, because you could have an expensive performance of tcodes VL02N, VL02 and so on. You can avoid it with secondary indexes (if you can growth in DB) or archiving data of LTAK, LTAP with object RL_TA (if deliveries are loaded in a reasonable period).
    I hope this help you.
    Regards.
    Eduardo
    Edited by: Eduardo Hinojosa on Sep 3, 2009 5:01 PM

  • Need to delete / cancel delivery after picking

    Hi,
       In case if delivery picked and PGI has not been done then i need to cancel the delivery. To delete / cancel the delivery i need to undo pickings. Could you suggest me the FM / BAPI to unpick the qtys and cancel the delivery.

    Hi..
    Refer the below thread...
    Re: BAPI's for Delivery
    Hope this helps...
    Regards,
    Chithra

  • Is it possible to reterive the deleted Outbound Delivery details

    Hi
    I would like to know , Is it possible to reterive the deleted Outbound Delivery details like who deleted with  date and time.
    Can It possible to create Proforma invoice without Post Goods Issue (PGI) of Outbound Delivery.
    Can it possible to delete Outbound delivery after creation of its proforma and excise Invoice.

    Thanks sridhar,
    My prob is solved regarding deleted details.
    Can  we avoid , user can't delete the Outbound Delivery after creation of Proforma Invoice and Excise invoice. because OD is related to PRof and Excise inv.
    Actually In case of Sale Order's OD user cant delete OD's. but in case of STO it possible.
    Thanks and Regards,
    Tapovardhan

  • Delete inbound delivery against PO after goods recipt

    Hi Gurus,
    I have a question regarding the link of Purchase Order and Inbound delivery status indicator.
    This is my scenario. I had created a purhase order with qty 10, I have received GR using MIGo for 4 qty.
    After one month I have created inbound delivery  for the reaining qty 6 against the same PO.
    When I am trying to delete this delivery document system throughing the error message "cannot delete inbound delivery as the status of the document is partially completed".
    why system linked the delivery document with previuos goods reciept?
    how can I delete the inbound delivery?
    please suggest
    Thanks.
    Sreeram

    Sreeram,
    From the PO, get the confirmation control key value from confirmation tab and go to SE16 on table T163G with this value. My guess is field WEREL for confirmation category LA has a value of "X". If this is the case, that explains the behavior as you described in your posting. When the inbound delivery is created, the program will update the quantity reduced field in the confirmation tab of PO by GR quantity (4 in your example). With this update, you can no longer delete the inbound delivery.
    So to delete the inbound delivery, you will need to cancel the GR. Once the GR is cancelled, you should be able to delete the inbound delivery. Once the inbound delivery is deleted, you can re-post the GR so you stock data can be restored to its original value.
    Revi

  • Warning 'sales document is not yet complete' with BAPI_SALESORDER_CHANGE after deleting correspnding delivery

    Hi,
    I'm trying to change a sales order (add some positions) after deleting the corresponding delivery to it.
    But I get the warning "sales document is not yet complete: Edit Data", because of incomplete dates in schedule lines.
    The schedule lines are filled correctly.
    When I have a Sales Order without corresponding delivery, this Order could be changed successful with BAPI BAPI_SALESORDER_CHANGE.
    But if there is a Sales Order with corresponding Delivery (where I do delete the delivery first with BAPI BAPI_OUTB_DELIVERY_CHANGE ), than the BAPI for changing the Order gives a warning "sales document is not yet complete: Edit Data".
    This is confusing.
    Is there something I have to consider when changing a sales order after deleting its delivery?
    Coding:
    "1. delete delivery to sales order
    CLEAR ls_header_data.
       CLEAR ls_header_ctrl.
       ls_header_data-deliv_numb = iv_vbeln.
       ls_header_ctrl-deliv_numb = iv_vbeln.
       ls_header_ctrl-dlv_del    = abap_true. "set flag for deletion
    * call BAPI to delete delivery
       CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
         EXPORTING
           header_data    = ls_header_data
           header_control = ls_header_ctrl
           delivery       = iv_vbeln
         TABLES
           return         = et_msg.
    IF ...
    COMMIT WORK AND WAIT.
    ELSE.
    ENDIF.
    "2. change Sales order (adding new item positions)
    "add new/changed data
       LOOP AT IT_NEW_ITEMS ASSIGNING <ls_new_items>.
         CLEAR: ls_order_item_in,
                ls_order_item_inx,
                ls_schedule_line,
                ls_schedule_linex.
         add 10 to lv_posnr.
         ls_order_item_in-itm_number = lv_posnr. "posNr
         ls_order_item_in-material = <ls_new_items>-matnr. "material
         ls_order_item_in-target_qty = <ls_new_items>-menge.  "quantity
         ls_order_item_in-sales_unit = <ls_new_items>-MEINH. "sales unit
         APPEND ls_order_item_in TO lt_order_item_in.
         "fill order item check table
         ls_order_item_inx-itm_number = lv_posnr.
         ls_order_item_inx-updateflag = 'I'.
         ls_order_item_inx-material   = abap_true.
         ls_order_item_inx-target_qty = abap_true.
         ls_order_item_inx-sales_unit = abap_true.
         APPEND ls_order_item_inx TO lt_order_item_inx.
         "schedule lines
         ls_schedule_line-itm_number   = lv_posnr. "posnr
         ls_schedule_line-sched_line   = '1'.
         ls_schedule_line-req_qty      = ls_order_item_in-target_qty. "quantity
         ls_schedule_line-req_date      = lv_lfdate.               "schedule line date
         APPEND ls_schedule_line TO lt_schedule_line.
         "schedule lines check table
         ls_schedule_linex-itm_number   = lv_posnr. "posnr
         ls_schedule_linex-sched_line   = '1'.
         ls_schedule_linex-req_qty      = abap_true. "quantity
         ls_schedule_linex-req_date      = abap_true.               "schedule line date
         ls_schedule_linex-UPDATEFLAG  = 'I'.
         APPEND ls_schedule_linex TO lt_schedule_linex.
       ENDLOOP.
       "call bapi to add items to sales order
       CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
         EXPORTING
           SALESDOCUMENT    = iv_sales_order
           ORDER_HEADER_INX = ls_order_header_inx
         TABLES
           RETURN           = et_msg
           ORDER_ITEM_IN    = lt_order_item_in
           ORDER_ITEM_INX   = lt_order_item_inx
           SCHEDULE_LINES   = lt_schedule_line
           SCHEDULE_LINESX  = lt_schedule_linex.
    IF....
    COMMIT WORK AND WAIT.
    ELSE.
    ENDIF.

    The first thing I would try is to use fm BAPI_TRANSACTION_COMMIT (with parameter WAIT = 'X') instead of COMMIT WORK AND WAIT which is directly put in your code (this is almost the same but not exactly).
    Then make sure that if your code performs two BAPI calls one after the other, they are separated with either a call to fm BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK.
    Then - if the above is applied and still does not help - I would suspect that some invalid / incomplete data is passed to fm BAPI_SALESORDER_CHANGE.
    regards

  • Open production orders and outbound delivery after go-live

    Hello All,
    I tried to search answer for this question but could not find answer.
    Could anybody suggest, what to do with open production orders and outbound delivery after go-live when WM is activated. As, after go-live WM-PP interface will be activated and system should consume material from storage bin specified in control cycle and that will happen for newly created production order after go-live,but what about existing production orders how to update production supply area against work center in production order.
    Similarly with outbound delivery how to update WM status after go-live.
    Thanks in advance

    Thanks to both Jurgen and Sander
    Regarding production order yes, one way is to re-read PP master data in production orders, but is that the only way to handle this or do we have any other option?
    I was aware of re-read PP master data but it will real time consuming and also if it will problematic for already released or partially confirmed production orders.

  • Deletion of Delivery Appended to Shipment

    Hi,
    Can anybody help for process to delete a delivery which is appended to a shipment. Shipmaent has Handling Unit. I have tried to unpack and de assign the HU in shipment for the delivery and then Delete the delivery but no success. <removed by moderator>
    Pankaj
    Edited by: Thomas Zloch on Oct 30, 2010 2:36 PM

    Try OSS notes 567666 - stock inconsistencies after deletion of delivery items
    Regards
    Edited by: Shiva Ram on Jan 30, 2008 8:32 PM

  • Avoid the deletion of delivery when the user press the delete button

    Hi guys,
    In VL02N transaction, when the user press the button for delete the delivery (trash button) i have to send an idoc to an external system in order to inform about. Im using IF_EX_LE_SHP_DELIVERY_PROC~DELIVERY_DELETION for this and it works fine.
    After send the idoc i have to stop the deletion process. So How i can avoid the delivery deletion? I can change some flag in this BADI or maybe i can do something in userexit_delete_document? I dont find the way.
    Thank you,
    Manel

    HI,
    In the method SAVE_DOCUMENT_PREPARE; try to pass some error messages in the parameter CT_LOG.
    This should raise some messages before saving and the data will not be saved and hence delivery will not be deleted.
    Check the same.
    Regards,
    Ankur Parab

  • Automatic logout in SAP System after Pressing Confirm button

    Dear all,
    We have Stock confirmation Transaction(ZTransaction) coming from SAP System through ITS. Our Issue is When user click on Confirm button in that transaction, background process will run. It is more like running Replenishment in ICH. Then user will be able to see the order pager after 45 min,after pressing Stock confirmation button. but the user is still alive in backend system, this will causing load on the backend system. So want to set automatic logout from that system after pressing confirm button in that transaction.
    Can anyone help me or guide the logic to implement in ABAP Program.
    Note: User will access this Transaction through Portal.
    Rgds
    PRadeep

    Dear all,
    There are two function modules are available...they are as follows.
    TH_DELETE_MODE(Session will delete)
    TH_DELETE_USER( Total login will delete)
    Rgds
    PRadeep

  • Label print after TO confirmation

    Hi ,
    I have specific requirment and wonder if there is a standard way to trigger labels after TO is confirmed? Requirement is that we validate SH to from a custom table on staging. If SH matches then we print lable otherwise not.
    Thanks

    I think Yazmin is referring to partner function "SH" ship-to party Manish. If that's the case I believe its possible to print based on a select ship to customer numbers (NACE entries) but it really depends on what output type and other details,
    We need better details please Yazmin
    Where is this output coming from after TO confirmation? (TO, HU, Delivery, Shipment)?
    Is this a custom output type if not what output is it?
    Is the requirement to print or not based on an existing custom table or are you just mentioning custom table as a possible way to access a list of SH partners that you want to print the output for?
    Please provide as many details as possible to get the best answer to your query.
    Kind regards

Maybe you are looking for

  • Scaling a Text box in InDesign CS3?

    I am trying to scale a linked text box and cannot get it to work 100% of the time. I have a 64 page document that is one text box linked with three columns per page. Because the size of the type varies, i need to stretch or squish the individual colu

  • Showing Red flag in Message Monitor

    Hi All, I am getting red flags in Message Monitor while send from SAP through RFC. If i click the flag, showing message "Column status could not process - Transaction Execution Terminated Upon Request" previously its worked properly. In last process

  • Cannot Burn CDs, Disc recording not found

    Pretty straight forward issue here. I am not able to burn CDs.  I have tried the UpperFilter reg fixes that are out there with no luck.  When i do a complete reinstall and go into the diag tools i can see the drive is listed. If i apply the UpperFilt

  • Having problems installing Acrobat X Pro on Windows 7.

    When the installation is about to end, I get the following: Has anyone experienced this issue? I would appreciate your feedback. Thanks.

  • Airtunes/airport express not connecting

    I'm having trouble with my new airport express. I can't seem to get it set up. Currently, I have the old, flying saucer shaped airport extreme. I bought the airport express because i want to use airtunes. I used the set up assistant to set it up. Fol