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

Similar Messages

  • Unassign delivery from a shipment which is deleted.

    Hi,
    I need to know how can we remove a delivery from a shipment which has been deleted from the system?
    Regards,
    Naveen

    Hi,
    Where do you see the delivery still assigned after deleting the shipment? Because normally after deleting the shipments, deliveries should be also unassigned, and get proper transportation statuses.
    Do you standard VT02N->delete to delete shipment, or any other process?
    Regards,
    Dominik Modrzejewski

  • 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

  • How to know Packing should be at Delivery level or shipment level?

    Hello Experts,
    As per my knowledge Packing can be done at delivery level and Shipment level but how to know at material should be packed at what level?
    Thanks

    Hi Prashant,
    Normally we update Matl Grp Pack.Matls field in BASIC DATA 1 of Material Master in Packaging Material Data section.
    Based on that details, you can get to know that if this needs to be Packed in What type of Material.
    Depending upon your design of Packing you can get to know when should you do the packing.
    Regards,
    MJ.

  • How to look as to who has deleted the Delivery note

    Hi
    I have a issue from one of my customers who mentioned in his problem that he needs to find out as to who has deleted a Delivery note. He has mentioned the Delivery note number.
    I have tried looking at SM21 & tables CDHDR and CDPOS but I could not find. I tried to simulate the similar issue in my development environment by deleting one of the deliveries and checking in Transaction SM21if it displays my name, but it did not.
    Please help me in this issue or at least let me know how to approach this problem.
    Thanks

    Hi,
    You can find the Information from the CDHDR table
    Goto the table in SE16 and ehter the details for the table like
    OBJECT CLASS   As   LIEFERUNG
    OBJECT ID    As   DELIVERY DOCUMENT NUMBER ( It should be 10 digits)
    Now execute.
    It will all the information on who deleted.
    regards,
    santosh

  • Issue while deleting Inbound delivery.

    Hello All,
    Here there is an issue while deleting Inbound delivery.
    GR ie 101 movement type is done for 1000 stocks.
    Later GR reversal ie 102 movement type is done for 200 stocks.
    So now in MD04 transaction inbound delivery is opened for 200 stocks.
    I am trying to delete Inbound delivery for 200 stocks but it doent allow.
    wht to do?please help

    I think you have used 102 and manully amend the qty.
    The inbound has 1000 qty, you reverse 200 qty. You should amend inbound delivery document qty to 800 and not delete it.
    Appreciate to revert is solution works for you.

  • Error while deleting outbound delivery

    Hi experts,
    To brief about the issue,we are trying to delete outbound delivery created with reference to sales order which was created with wrong line items .We are trying to delete the outbound delivery document but the system is showing the error " Topfile KT-STB2000-C1WW line item 000020 has the following missing components :STB2000-C10007R".BOM is created for the same line item KT-STB2000-C1WW with subcomponets STB2000-C10007R and KT-14000-148R.suggest the solution for the same
    Thanks & Regards
    subhash

    Hi Reazuddin,
    We are concerned only with deleting the OBD.Earlier there was a mismatch between material BOM and OBD sub-componets.The wrong sub-componets were taken from sales order.Later on we realized that we dont want these componets (it was mistake) in OBD since BOM has different components.Later on we realized our mistake and we have sychronized BOM components,Sales order components and OBD components and tried to delete the OBD,but the system gives error as explained in above query.The message number that we received is "ZW024".
    Thanks & Regards
    Subhash

  • Delivery costs with shipment costs

    Dear Sir,
    I want to capture the delivery costs from shipment cost document.
    I did all bellow mentioned settings:
    For freight cost to be transfered as delivery cost, the Purchase order need to have a freight condition with zero value. Also the freight condition need to have indicator set in config for 'copy shipment cost'. Once this is set up and shipment cost document created, do PGI and it should create a DCGR document in PO History.
    Even after all these settings, i tried but no result. It is not creating ths DCGR in PO History.
    Can any body tell me this bellow setting: Where is this exactly. I tried no field with the name Relevant for costing
    Shipment cost item categories Under the Shipment cost types and item categories activity, set the Relevant for costing field to A = Relevant for calculating delivery costs (Delivery costs). This results in the shipment costs not being transferred directly into accounting. The accounting is done via the purchasing functionality for delivery costs.
    Can any body give me the solution?
    With regards
    Lakshmikanth

    Hi
    I think that you have had your question answered so if you are happy with this can you please award points if you want to but mainly can you please mark your question as answered so that it is easier to navigate around the open questions in the forum as the number of pages are growing and growing and it takes too long to go through everything especially if a satisfactory answer has already been given and people like me who want to help will give up and so some people may not get any help.
    Thanks for this
    Frenchy.

  • Transfer of Delivery Dates to Shipments

    Dear Gurus,
    I've read SAP Library in the shipment, there's feature for transfering of delivery dates to shipments :
    The system propose shipment dates and times from the delivery.There are two methods to choose from:
    1.Standard default
    When this indicator is set, dates and times are copied from deliveries into the shipment. There are a few rules that apply to standard defaults. First, the loading date and time in the delivery becomes check-in time and loading start in the shipment. The delivery's planned goods-issue time becomes the loading end, shipment completion and transportation start time for the shipment. If the goods-issue date and time (loading time) is unclear in the delivery, the latest goods issue date that appears in the delivery is copied into the shipment. The delivery date and time is copied into the shipment's transportation end.
    2.You can create your own copy routine to use for date and time defaults by using the flexible default option.
    I don't have any clue how to use the first method.
    Any gurus can help me bout this?
    Thank you,
    Yan

    Hi,
    The rules that you want to apply are setup at shipment type definition in SPRO.
    There you can find field 'copy routine' which includes the code copying data from deliveries into shipments.
    Standard SAP routine is 008 (FV56C008) that includes simple logic as you specified.
    Naturally you can copy this one into your custom code that you can also assign for your shipment types.
    Regards,
    Dominik Modrzejewski

  • 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

  • Not able to delete inbound delivery.

    Hi Gurus,
    Please help me delete inbound delivery. I have a ticket where user is not able to delete inbound delivery. I tried to delete this delivery and I’m also getting the same errors that user is getting.
    I have tried to insert real screen shots from production system in this post to give a better understanding of the scenario.
    The situation is: PO was created for 2 line items for same material but different batch, for different quantities.
    For line item 1:
    1.      Two separate partial deliveries were received along with 1 delivery note each, for quantities 14,957.130 KG and 855.017 KG.
    2.      Goods issue was posted for both quantities.
    3.      Invoice receipt was done for both quantities.
    4.      Goods receipt was done for both quantities.
    5.      However, goods receipt was later reversed for quantity 14,957.130 KG.
    Screenshots Line item 1
    For line item 2:
    1.      One delivery was received for full quantity of 292.112 KG.
    2.      Goods issue was posted for same quantity.
    3.      Invoice receipt was posted for same quantity.
    4.      Goods receipt was posted for same quantity.
    5.      However, goods receipt was later reversed for full quantity.
    Inbound Delivery screens below:
    Error VL32N screen
    Message in VL09 when trying to reverse goods movement with reference to inbound delivery:
    Please tell me how can this inbound delivery be deleted?
    Points will be awarded for right help.
    Thank you for viewing.

    Hi
    BV Yadav:
    1. it's the business user who posted the invoice, and posted goods issue the was it appears in PO history.  i'm not sure how they did it.
    Kamlesh: I tried both, changing the document date and delivery date to current. i still got same error. still not able to delete inbound delivery.
    Tomas Figura: Puaway QTY is already 0. this field is blank, nothing in it. pic below:
    Note: someone has suggested to follow the process to reverse as many postings that have been done against the PO as possible and ultimately delete the PO, this will break all links between PO and inbound, outbound deliveries. and hence, there won't be a need to delete inbound delivery anymore.  then the business user can start the brand new process from scratch by creating a new PO, create a new outbound, inbound deliveries, and all. what do you guys think of it? Please comment.
    Thank you guys.

  • 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

  • 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

  • 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

  • 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

Maybe you are looking for

  • HT204088 There is a charge on my cc bill for $3.99, but no such charge is listed in my purchase history.  What is this charge for?

    There is a charge on my credit card bill for $3.99, I cannot figure out what it is for.  I searched my purchase history, and nothing comes up that could be it.  Can somebody help me with this?  I am starting to think that maybe it is a subscrption to

  • Firewire icon does not appear on desktop

    My Firewire is connected and turned on but it's icon does not appear on desktop. I ran disk utility and the drive's icon appears there. I can run repair tests on it but not a permissions test. When I checked "Get Info" I noticed a line that reads "OW

  • Selection of Report Data

    Post Author: phawkins666 CA Forum: Data Connectivity and SQL I am producing an absence report. Currently i have the selection. YeartoDate. {dayabs.Datefrom}>=YearToDate I need to make the report run from June to June (the company year) How can i sele

  • Asm disk error

    hi guys, just want to ask for your inputs regarding this error being generated every second.. WARNING: IO Failed. subsys:System dg:1, diskname:/dev/rhdisk59 disk:0x3c.0x3f1eaa0c au:65527 WARNING: failed to read mirror side 1 of virtual extent 6 logic

  • After updating my 3gs to IOS5 it reboots itself for no reason

    Last week I updated my 3gs to IOS5 and everything was ok, today morning it started rebooting itself for no reason It does this every couple of hours, without me even touching it. It is pretty annoying... has anyone a clue what's the problem? and how