In MD04 deleted sales order appearing

In my scanerio i found deleted sales order appearing in md04 and even it is not appearing in vbak table  and at the same time sales order not appearing for display .
can some one help for the cause ..........??

This is an error in the standard SAP programs (entries in VBBE table remain while they should be deteled). They made a program to clean up the entries in the VBBE table, it's program SDRQCR21
Best is to run a nightly job on this program.
You can check note 25444 for details.
Grtz,
Jan

Similar Messages

  • Delete sales order from MD04 screen

    Hi Gurus,
    Need help in deleting a sales order from the MD04 screen.
    The sales order was deleted, there are no production order/reservations associated with this Sales order, the sales order is still appearing on the md04 screen and consuming the stock. Ran MRP both in Netchange and Regen mode still the sales order appear on the MD04 screen.
    This is a four months old sales order.
    Thanks
    Srini

    Hi Aravind,
    No problem, I found some notes online.
    Executed the program SDRQCR21 and deleted the sales order.
    Thanks for your help.
    Regards
    Srini

  • View Deleted sales orders by material

    Hi gurus,
    how I can see deleted sales order by a specific material. My requeriment is that know all deleted sales order or items deleted in existing orders filtering by material.
    It's possible?
    Table CDPOS doesn't contain field material...
    Thank you!!!
    I will reward points all answers!!

    Hi,
    In this case, when you call MD04 for this material, the system displays an exception for the pruchase requisition.
    20 : cancel process.
    Then, you must to be deleted this purchase requisition.
    But, i have a proposition to follow sales orders which have deletes (quick approach).
    You can create en infostructure with LIS with keys : sales order nb, item, material, customer + key figures : quantity (or other).
    With an update rule appropriate.
    When you create sales order, this LIS table (infostructure) is update with different informations.
    If you delete item or sales order, system updates this table and displays "0" in quantity or price ...
    This is the simple test to know if sales order was deleted.
    But, you can used another information during the update in LIS user exit (MCS10001) with this condition XVBAP-UPDKZ = UPDKZ_DELETE (see in MV45AFZZ, doc_prepare).
    Why not ??
    That's all folks !!!
    Regards,
    Lionel

  • RR Reversal for deleted sales order items

    The revenue has been recognised for a sales order. but somehow user deleted this sales order. it seems there was some problem in the deletion. i can still see the sales order in VBAP but not in VBAK.
    Is there a way to reverse the RR for this sales order? The sales order appears as open item in FBL3n.

    The revenue has been recognised for a sales order. but somehow user deleted this sales order. it seems there was some problem in the deletion. i can still see the sales order in VBAP but not in VBAK.
    Is there a way to reverse the RR for this sales order? The sales order appears as open item in FBL3n.

  • User should not delete Sales orders in CRM before May 2014.

    Hi,
    We have  requirement in CRM i.e. user cannot delete Sales orders before may 2014 in SAP CRM.
    Recently we have implemented Credit Check management in ECC (Cash n Carry Process especially for some customers)
    Normally we do create orders in CRM it should be replicated to ECC, based on FD32 credit value in ECC, CRM  order should give credit check massage.
    go through the below notes n help us where to change BADI in CRM, plz.
    We like to add a scenario where prior to April’14 period, user can not cancel/delete any order in CRM, so that the order cancellation data will not flow to SAP and below problem can be resolved.
    While checking the credit Exposure of the INDL Customers, we found in some cases, user has deleted few old orders in CRM which creates a open sales order value as Negative in SAP System. Due to this for a customer, if there is ZERO credit limit, ZERO outstanding, ZERO liability, Credit Exposure is become Negative as open order value is there. In CRM order is being raised and credit block is not appearing if the order amount is below the Credit exposure.
    Request you pls maintain the open Sales order value as ZERO for the INC customers (as per attachment list) for those who have a NEGATIVE open sales order value.
    For the open Sales order Value which are POSITIVE, keep these as same as these are customer’s actual & current open orders.
    NOTE: If user delete before may 2014 sales orders, all the deleted order values will be added to FD32 (Credit exposure -Negative),then user can able to raise sales orders for that value also.(It cannot be happened)
    Regards,
    JK

    Hello JK,
    I guess you can play around with the standard. You need to create a separate PFCG Role which only contains sales order related authorization object. Basically removing sales order related authorization object from the main primary PFCG role. And then controlling the secondary PFCG Role which only have sales order object. Controlling sales order PFCG role with validity period. Below is the screen shot of the PFCG role where you can maintain the validity period of the PFCG role for the specific user assigned to it.
    I hope this solution was helpful for you!
    Regards,
    Neha Gupta

  • Report on deleted sales orders ( va02)

    hi,
    i got one requirement to write a program to display the list of deleted sales orders (through VA02 Tcode).
    to my knowledge when a sales order is deleted through VA02 the order will be deleted from the database itself and will be deleted from all the SAP tables.
    if that is correct, is there any possibility that we can create a Ztable and update the data before deletion or any other solution for the above requirement?
    thanks in advance,
    Rajani yeluri

    hi rajani,
    u will get deleted data from using tables CDHDR,CDPOS,CDRED and function module '  CHANGEDOCUMENT_READ'.
    i am sending u some sample code, i hope it will helps u
    DATA: it_editpos    LIKE cdred OCCURS 0 WITH HEADER LINE,
                                     "Change documents, display structure
          it_editpos1   LIKE cdred OCCURS 0 WITH HEADER LINE,
                                     "Change documents, display structure
          x_editpos1    LIKE cdred,  "Change documents, display structure
            x_editpos     LIKE it_editpos,
                                     "Change documents,display structure
    *-----Calling FM to populate the structure 'EDITPOS'
      CLEAR it_editpos.
      CALL FUNCTION 'CHANGEDOCUMENT_READ'
           EXPORTING
              objectclass                = ' ' 
           TABLES
                editpos                    = it_editpos
           EXCEPTIONS
                no_position_found          = 1
                wrong_access_to_archive    = 2
                time_zone_conversion_error = 3
                OTHERS                     = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CLEAR: x_editpos,
             it_editpos1.
      LOOP AT it_editpos
        INTO  x_editpos
        WHERE tcode = 'ME21N' OR  "Here u have 2 pass 'VA02'
              tcode = 'ME22N' OR
              tcode = 'ME23N'.
        APPEND x_editpos TO it_editpos1.
        CLEAR x_editpos.
      ENDLOOP.
    now it_edipos1 has all CHANGENR numbers, so now u have to fetch data from F_NEW and F_OLD Fields
    i hope this will helps u
    Regards,
    prasad

  • Reg:Deleting sales orders in bulk

    Hi Gurus,
    Can anybody through some light on the below mentioned queries.I faced this in one of my interviews .
    1.How to delete sales orders in bulk ?
    2.How to print invoices in bulk ?
    Thanking you in advance.
    With Regards,
    Sash......

    Dear sash
    1) To delete sale orders in bulk (subject to no subsequent documents), either you can use LSMW or BDC
    2) To print invoices in bulk, two options are there.  One is foreground and another one is background
    - To schedule foreground, run T.Code VF31
    - To schedule background, run T.Code VF06 where you can see a tab [Job started on]   If you fix a date and time here, that time, invoice will be printed out in mass
    thanks
    G. Lakshmipathi

  • List of deleted sales orders

    How can we find the list of deleted sales order documents.
    Is there any specific table.

    hi,
    SE16--> CDPOS->enter Object class : VERKBELEG    table name: VBAK     & enter change id:D---> keep the max no of hits  has blank----> execute
    this is give u teh details
    regards,
    Arun prasad
    Message was edited by:
            arun prasad

  • How to view the cancelled/deleted sales order?

    Hi SAP Gurus
    I there any T.code/Table to view the cancelled or deleted sales order.
    I am not able to view the order even in VA03.
    Regards
    Giridhar

    Dear Sushmitha,
    T. Code: SE16
    Key-in -
    Table: CDHDR - Change Document Header.
    Table: CDPOS - Change Document Items.
    and "Enter". On to next page, Key-in
    Field: Change doc. object (OBJECTCLAS) as VERKBELEG
    Field: Transaction Code as VA02
    Field: Appl.obj.change, as D - Delete, and execute (F8).
    Then you will get object values (sales orders) and document numbers. Pass these two values along with objectclas: VERKBELEG) to table CDPOS to get more details about these deleted orders.
    Also, Go to -
    T. Code: SE38,
    and execute Report: RVSCD100.
    Enter Sales Document Number and Execute. This will provide information, who deleted the order.
    Best Regards,
    Amit

  • How to find out the deleted sales order

    hi,
    sap gurus,
    my core user has deleted one sales order
    its showing as sales order is ARCHIVED in the status when we go for VA02
    in SAP in which table the deleted sales order will be stored.
    so that i can
    regards,
    balaji.t

    Plz SEARCH in SCN before posting.
    You can get those details from CDHDR, CDPOS tables.
    Give OBJECTCLAS = VERKBELEG and CHNGIND = 'D' in CDPOS table.
    You will the List of all Deleted Sales Orders.

  • Information about the deleted sales order line item in idoc.

    Hi Experts,
    I am new to IDOC.We have the following idoc requirement,
    When a line item is deleted from the sales order(VA02) ,
    the outbound idoc getting triggered for the sales order has the information about the rest all line items other than the deleted line item.We now want the information about the deleted line item in the Idoc .
    Please help me in proceeding further.

    Hi,
    I am facing the same scenario of capturing the  deleted sales order line item in idoc.
    I am using ORDRSP message type , where in E1EDP01- ACTION contains value  "000" .
    And the Deletion line item is not been captured, is there any configuration setting required to
    capture the deleted line item in Idoc.
    Based on the posting in this thread i understand that there is an  indicator which has to be set .
    Please let me know what is that indicator and how to set it?
    Thanks
    Sathish

  • Deleted Sales Orders Issue

    Hi,
    I have a typical issue with Sales Order deletion in R/3
    In R/3,the Sales Orders have been physically deleted due to which the sales orders are not available in the tables.
    In R/3 reports those Sales Orders are not reflected. But in BI, since they have already been loaded, they are showing in the results since the SOs at that time were loaded to BI. Once documents are deleted in R/3  those changes are not reflected  in to BI. This discrepency is not acceptable by the customer. Plz help in how to resolve the issue.
    Many Thanks
    Uday

    Hi Uday,
    It seems the same issue has been discussed sometimes back ,but no solutions were given.
    Deleted sales order items and delta direct
    As I said earlier,extractor will not capture those deleted items. Even enhancement may also not work for this case. Anyway,please check with OSS whether any solutions available for this problem .I convinced my users to go for the cancellation (not mark for deletion) of the items. 
    Below link will give you the info about why it is not a good practise to delete the item .
    deleted sales order
    All the best.
    Thanks.

  • Deleted Sales Order

    I would like to understand the possibility of looking the details abt a sales order that got deleted from the SAP system.
    I believe tables VBAK and Changes related tables will not help me out to find the same information as the deletion of the order will have the data deleted from these tables are there any other means by which i can get info on a deleted sales order .
    Thanks in Advance.
    Ilango

    this is not a process followed, but i just want to know if there are by any means we can see the line item level details (like material & Qty).
    CDPOS do provide information on the order but am unable to interpret the data i receive,
    passed the deleted order no, to the table and i could see only the values that got changed i can still see the information abt VBEP(sch line ) & VBAP. am unable to see the document details. i feel it shows only those fields that are changed inside the order before deletion, i cud see a document in the output of this table, wat is that document no.??

  • Require to delete sales order

    Hello
    All the contributors,
    plz to give me a right solution, Req_urjent.
    Query:
    with PO against Sales order ( indvidual purchase order_ sales process.)
    with ref PO- raised sales order, and also delivery with PGI,
    but when raised a  sls order customer code entered wrongly of other customer code, here i followed vl09 reverse goods entry, and vl02n deleted delivery, but when deleting the sls order in va02 the sls order unable to delete and getting some message of cost management account issue.
    so know i want to raise with the same Purchase Order Number with right customer code,
    therefore requiring how to delete sales order. plz help out me.
    thanking for all.

    Hi there,
    You willnot be able to delete the sales order. You will only be able to reject the line items in the order. Once you enter the reason for rejection, the order line items are not further processed.
    Regards,
    Sivanand

  • View Deleted Sales Order by material

    I need to know in that sales order has been a material because when we run MRP, system creates purchase requisition for requeriments of sales order, ok?
    But, after if user deletes sales order, the purchase requisition created is incorrect but purchase department can be that it purchase requisition is studied yet. Customer would like know what sales order deleted causes this purchase requisition in this case.

    Hi Daniel,
    If the sales order has been deleted then you should delete the corresponding PR as well.  Inorder to achieve this you need to write the logic in the Sales order user exit, to cancel the corresponding PR.
    We cancel the PR if the release strategy is implemented in the PR. We have implemented this logic and it worked fine for us.
    Thanks,
    Mahesh.

Maybe you are looking for