Unable to delete Replensihment Delivery document

Dear All,
The user has created a Replenishment delivery against a Stock Transfer PO with only one line item. Then due to unavailabilty of proper batch as per selection criteria the user deleted the whole line item and saved the delivery.
Now the issue is there is an entry in LIKP table showing the line item with quantity and batch whereas when we open the delivery in VL02N or VL03N  there is no line item.  Also if we look into the packing tab we can see the material, batch etc.
Due to this the user is unable to do PGI, or cancel the document. When the user tries to cancel there is a message shown as document is cancelled but it is not getting cancelled. The Super-user has got the authorisation of deleting the delivery and even he is not able to delete it.
Has anyone come across such situation? Please guide.
Thanks & Regards,
Karthik.

Hi All,
We took the help of SAP by raising the OSS. The entry in LIPS was deleted from the table and subsequently we were able to delete the Outbound delivery.
Regards,
Karthik

Similar Messages

  • Disable Deletion in Delivery Document

    Hi All,
    I want to prevent Delivery Document to be Deleted by User, how can I disable the Delete Option in Delivery Document? At the moment I cannot create a Transaction Variant for it
    Any help will be appreciated

    Dear Imran
    Ask your basis team to access TCode PFCG, input all the required datas and execute.  Once they input the required datas and proceeding further at one stage, against each transaction code, you can see a tab with Activities with numeric value 01, 02, 03 etc.,
    Here you have to untick 02 for VL02N for that particular user.
    thanks
    G. Lakshmipathi

  • 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

    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

  • Deleted outbound delivery doc displayed in document flow

    Hello,
    Deleted outbound delivery document is still displayed in document flow and its status is 'Archived'
    I don't know why deleted document  is seen and moreover I haven't ever seen such a status in document flow. For your reference, the delivery document is displayed in only VF02 or VF03 with its billing document, which is also cancelled. One more thing, its sales order is also deleted.
    Thanks for your kind response in advance.

    Hi,
    This is happening because invoice can only be cancelled and not deleted. While sales order and delivery can be deleted. So if you check the document flow of the cancelled invoice it will show the delivery number but with status as archived. If you try to display such documents you will get an error message 'Delivery xxx does not exist'.
    If you delete a sales order and delivery which does not have an invoice this will not happen.
    Regards,
    Sajith.

  • Authorization Control for Delivery Document Deletion

    Hi experts,
    I know there's way to control the deletion of Sales Document through V_VBAK_AAT and V_VBAK_VKO.
    However, how can I control the deletion of Delivery Document (in t-code VL02N)?
    Thanks in advance.
    Chin

    Hi,
    if you can't find a standard authorization object using standard tools such as SU24 and ST01 then there is a BADI LE_SHP_DELIVERY_PROC with method CHANGE_FCODE_ATTRIBUTES. This method is called whenever screen is displayed and can be used to exclude menu items e.g. Delete Delivery. So you can create a custom authorization object which will be used to control access to delete function.
    Cheers

  • Unable to delete the BDS attachment

    Hi,
    I am using the FM BDS_BUSINESSDOCUMENT_CREA_TAB in my ztable to attach file to the BO. I am able to attach the file and open it from the document but i am unable to delete the same document.
    Dd anyone know the solution? Pls suggest.
    This is my code:
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = lv_file
          filetype                = 'BIN' "Binary Mode
        IMPORTING
          filelength              = lv_filelength
        CHANGING
          data_tab                = lt_data
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          not_supported_by_gui    = 17
          error_no_gui            = 18
          OTHERS                  = 19.
      CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
        IMPORTING
          own_logical_system = lv_logical_system.
      CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
        EXPORTING
          full_name     = lv_file
        IMPORTING
          stripped_name = lv_filename
          file_path     = lv_filepath
        EXCEPTIONS
          x_error       = 1
          OTHERS        = 2.
      SPLIT lv_filename AT '.' INTO lv_strip lv_extension.
      CALL FUNCTION 'SDOK_MIMETYPE_GET'
        EXPORTING
          extension = lv_extension
        IMPORTING
          mimetype  = lv_mimetype.
      ls_files-doc_count = '1'.
      ls_files-comp_count = '1'.
      MOVE lv_filename TO ls_files-filename.
      MOVE lv_filepath TO ls_files-directory.
      APPEND ls_files TO lt_files.
      CLEAR ls_files.
      ls_components-doc_count = '1'.
      ls_components-comp_count = '1'.
      ls_components-mimetype = lv_mimetype.
      ls_components-comp_size = lv_filelength.
      ls_components-comp_id   = lv_filename.
      APPEND ls_components TO lt_components.
      CLEAR ls_components.
      ls_signature-doc_count = '1'.
      ls_signature-doc_id = space.
      ls_signature-doc_ver_no = 1.
      ls_signature-doc_var_id = 1.
      ls_signature-doc_var_tg = 'OR'.
      ls_signature-comp_count = 1.
      APPEND ls_signature TO lt_signature.
      ls_signature-prop_name = 'DESCRIPTION'.
      ls_signature-prop_value = lv_filename.
      APPEND ls_signature TO lt_signature.
      ls_signature-prop_name = 'LANGUAGE'.
      ls_signature-prop_value = sy-langu.
      APPEND ls_signature TO lt_signature.
      ls_signature-prop_name  = 'BDS_DOCUMENTTYPE'.
      ls_signature-prop_value = 'ATTACHMENT'.
      APPEND ls_signature TO lt_signature.
    case lv_extension.
    when 'txt'.
      ls_signature-prop_name  = 'BDS_DOCUMENTCLASS'.
      ls_signature-prop_value = 'TXT'.
      APPEND ls_signature TO lt_signature.
    when 'pdf'.
      ls_signature-prop_name  = 'BDS_DOCUMENTCLASS'.
      ls_signature-prop_value = 'PDF'.
      APPEND ls_signature TO lt_signature.
    when 'xls'.
      ls_signature-prop_name  = 'BDS_DOCUMENTCLASS'.
      ls_signature-prop_value = 'XLS'.
      APPEND ls_signature TO lt_signature.
    endcase.
      CLEAR ls_signature.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = P_QMNUM
          IMPORTING
            output = lv_qmnum.
      move '005000011781' to lv_object_key.
    MOVE '0000000402' TO lv_object_key.
      CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CREA_TAB'
        EXPORTING
          logical_system  = lv_logical_system
          classname       = 'BUS2088'
          classtype       = 'BO'
          object_key      = lv_object_key
          binary_flag     = 'X'
        TABLES
          signature       = lt_signature
          components      = lt_components
          content         = lt_data
        EXCEPTIONS
          nothing_found   = 1
          parameter_error = 2
          not_allowed     = 3
          error_kpro      = 4
          internal_error  = 5
          not_authorized  = 6
          OTHERS          = 7.
    Best Regards,
    Pavan Jhawar.

    Hello Francois,
    Thanks for the reply. I guess ur code which u have metioned to check is not pasted. Can u reply back with the code?
    Regards,
    Pavan Jhawar.

  • 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

  • How to view archieved delivery documents

    Hi Team,
    Actually my requirement is to see the archived delivery document in the system.
    Kindly help me.
    Actually one user has deleted the delivery by mistake.
    the client wants to know who has deleted that delivery document.
    Thanks in advance,
    Kishore.

    Refer following links:
    Retrieve the Archived Document.
    Archive documents
    Thanks & Regards
    JP

  • Unable to delete the Handling Unit

    Hi Friend,
    I wanted to delete the delivery document, when i unpack and delete the Handling unit i am getting the following error "Handling Unit 2000679441 contains item that cannot be deleted" in the Log" Handling Unit 2000679441 is packed - only entire HUs can be reassigned"
    Need assistance.
    Thanks in advance.
    Regards,
    Kannan M

    Try using packing station functionality tcode HUPAST.
    Select delivery from the dropdown and give delivery number in the next screen.
    System will populate the HU content of the delivery.
    Give negative quantity of material and material number and save the transaction.

  • 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

  • Document Flow for deleted |outbound delivery

    Hi All,
    I am facing with a very urgent issue. I hope somebody will be able to help.
    Scenario:
    I have a sales order. I have created outbound delivery with no picking and PGI done. By mistake one of the end user have deleted the outbound delivery. Now i want to find the sales order number of the deleted delivery. I have the deleted outbound delivery number.
    Is there any way, I can look at the document flow or data in any table regarding this deleted delivery number?
    This is an urgent issue. Please help

    Hi
    Once the delivery is deleted the references you are looking for a cleared
    (LIPS-VGBEL, VGPOS) go with the deletion and the document flow link in VBFA
    is also deleted. As mentioned the record of the deletion and what happened to the delivery
    should still be available in VL22 as mentioned.
    When a sales document is relevant for delivery it is written to table VEPVG.
    So when you deleted the delivery the entry for the affected sales order would have been
    restored to the delivery due index. You will find it in there but no where else now at this
    stage.
    I hope this helps
    Kind regards
    Brian

  • Unable to Delete the Inbound Delivery

    Hi Experts,
    We have made GR(101) against Inbound Delivery on 01/02/2008.
    On 24/02/2008, same GR(102) was reversed.
    When i tried to delete the inbound delivery, it is showing error as" Inbound Delivery cannot be deleted".
    Please help.

    Hello Shravan
    Have u checked the document flow for delivery/ Is there any thing pending for the delivery? Is it WM based plant? Please reverse any document created and then delete the delivery.
    2nd thing you need to check is when u made GR 101, where this stock goes? Unrestricted or Quality? You need to transfer the stock to 'Returns' with MB1B or MIGO with movement type 457 or 458 (plz chk) and then try reversing documents.
    Reward it if found useful
    Regards
    Amol

  • Can the deleted delivery document make live

    Dear Friends,
    Pl tell me how to make the deleted delivery document live.
    Case:  User has deleted the delivery doucument after doing the excise invoice (of STO).  Now they cannot cancel the exice invoice.
    Regds,
    Sreehari

    Hi ,
    If this a prforma invoice you can goto vf02 then billing docs and complete the invoive the invoice aotumatically cancel.
    If u r problem has solve reward points.
    VM

  • Deleting delivery document

    Hi guys,
    In production system the end user has canceled the invoice and then he tried to reverse the PGI but the system is showing some error   Cancellation date 05.05.2007 is before the goods issue date 30.05.2007. the thing is by mistake he mentioned the goods movement date as 30.05.2007. Now how can i cancel the PGI .kindly give some inputs regarding this.
    thanks in advance
    Sitaramaraju.P

    In order to delete the delivery doc,
    1. Invoice cancellation :VF11, this can be done if accounting document is not  generated. If  accounting document is generated already then first reverse accounting doc (FI settings are required for this) then Invoice cancellation should be done.
    2. Reverse PGI : VL09 ,i,e picking =0
    3. Delete sales orders.
    Hope it clarifies ur query.
    Please Reward Points.

  • Deleted Delivery documents

    Hi gurus,
    How can I find "deleted" delivery documents from SAP?
    Regards,
    Prassee

    What to put if the document is sales order or billing doc in Change doc object field
    Change doc. object LIEFERUNG
    and one more whether to put doc no. in Object value field or document no. field as stated by u . Object value Enter your delivery Nr here if Avaialable
    you will get the all the deleted deliveries and details such as who has deleted ,when. etc.
    Once delete one delivery and enter in Object Value field you will get the record.
    and check what you are getting in Appl.Obj Change???
    If that field is unique then you can get the deleted delivery documents.or check other field which is unique to deleted delivery doc and you will get the required list
    Regards
    Jitesh
    Regards
    Jitesh

Maybe you are looking for

  • IP Phone VPN connection to ASA using Anyconnect

    Hello, I will be configuring my first Anyconnect VPN to allow an IP Phone to connect over the internet.  I wanted to know what the best practice is in generating a certificate on the ASA...is self generating ok or get one from a CA?  What are the con

  • Problem with JPanel and JDesktopPane

    Hi, I am having a problem with my app and I wonder if someone can see what I am doing wrong. I have a class that extends JFrame that holds a centered JPanel to draw on. There are also 3-4 other JInternalFrames that are in use. From what I have read t

  • Running WL as NT Service is not Creating Connection  Pools?

    We have something very strange happening here. We recently installed Weblogic 6.1 sp 4 on an WinNT 2000 box and installed our application. We are connecting to an Oracle 8.1.7 database using the Oracle 8.1.7 client drivers. We configured our connecti

  • Customize Viewer Login page

    Hi All, We are trying to Customize Viewer Login page by defaulting 'Oracle Applications' in the Connect To dialog box. Now it is 'OracleBI Discoverer'. Can anyone help me with that? I am not very familiar with uix scripts. I went into ViewerConnectio

  • Workflow to work through 2 sites

    Hi, i need to set up a workflow that runs over 2 sites. We have departments set up as sites on our system and i need a list in one of the sites to create an item in a list in another site when an item is added to the first. Is there a way we can do t