Deleted sales order remains in document flow

Hello!
The problem:
We had sales order with reference to a contract. We deleted the sales order (it doesn't appear in VBAK anymore), but, the sales order still appears in VBFA (if we see the document flow for the contract, the sales order still appears there as archived!!!)
I deleted  the sales order in a regular way via VA02.
I heared that there is a function module or another solution to fix the document flow.
I also saw a solution for this kind of problem for delivery (SAP note 74513).
Please assist,
Thanks

Hi!
Thanks to Jelena!!!
As she wrote that in these cases OSS can solve the problem and it happens a lot, we opened an OSS and got an answer:
OSS answer:
when you delete an order the corresponding entry in VBFA is not
deleted. The system is not able to differ between archived and deleted
orders, so to ensure that the document flow is also showing archived
documents the entries in VBFA remain. This is also described in
attached note 390905. When you are sure which entries in VBFA can be
deleted you can use report SDVBFA00 to delete the entries.
What we need to do:
go to SE38 and run report SDVBFA00.
Sales document is a contract number (preceeding document)
"Delete" - put X or leave empty.
The logic is:
You put the preceeding document and leave the field "Delete" empty.
The program finds by himself all the sales orders (following documents) that are connected to this contract and are deleted.
You check that the system suggests to delete the correct sales orders
Run this report again, but this time put X in "Delete" field and the sales orders will be deleted.
Apparently there are several reports exist to solve VBFA problems SDVBFA00,SDVBFA01 etc.
Thanks!

Similar Messages

  • Sale Order without a Document Flow

    Hallo Everybody,
    How can i copy a sale Order without a Document Flow ?
    Thanks.

    Hi,
    Try to use the FM BAPI_SALESDOCUMENT_COPY
    Rgds,
    Bujjji

  • FM for linking deleted sales order and accounting document

    Hi there,
    I have this scenario:
    -I create a sales order and make a certain amount of downpayment.
    -At the save of the order, an accounting document is created in BSEG table with reference to this order (BSEG-VBEL2).
    -I delete the order that I created in step 1.
    -The accounting document still exists in BSEG.
    Question:
    A direct select on BSEG with vbel2, takes a very long time.
    Can anyone suggest a way to improve the performance, or does anyone know of a Fuction Module that I can use?
    Thanks,
    Deepti

    Hi,
    Con't you use alternative table, Example insted BSEG use BSID and create a index on VBEL2 to improve the performance..
    Regards,
    Srinivasa M

  • Regresion test flow of Sales order and billing document to CO-PA

    Hi
    In the regresion test we need to test the  sales order and billing documents values are flown to CO-PA are not.
    May i know the transaction codes to test this scenario
    Best regards
    Thomas

    Hi
    1. Your sales ordre will have a pricing procedure in it.. Pricing procedure has condition typess. for revenues and discounts. Did you assign cond types in KE4I to your value field?
    2. Also, if your pricing procedure has cond type VPRS, this will contain the COGS.... Assign VPRS also to a value field in KE4I
    3. Check If you did the settings in COPA for
    a. Select Valuation Strategy 001 in KE4U
    In DETAILS tab: Assign it to Appl = KE, Check Mat Cstng, and Qty Field = ABSMG
    In Assignment tab: Assigning 001 to Point of valuation 01 and Record Type = F
    b. Creating a costing key in KE40
    Check : Transfer  Std cost estimate
    Period indicator =Current Cost estimate acc to entry in mat master
    c. assigning costing key to material types in KE4J or KEPC and
    d. assigning Cost Comp Structure to Value field in KE4R
    Regards
    Ajay M

  • 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

  • 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.??

  • Find deleted sales order

    hi all
    can any one help me finding out the deleted sales order
    what is the process for it.
    thanks
    sridhar

    HI,
    Try FTWB or SARA.
    or
    after deliting sales order its gone out of database, then also you can see the change history of who deleted the order and when. To do this (I'm on 3.1I), go to Sales Order --> Display --> put the number in and go to Environment --> Changes. Then Green check and it will tell you the history.
    After the record (order) gets deleted from the database, to get a list of records deleted you will need to run a report (user defined), with the query for VBAK table, for order type and the missing numbers. The date may also be required. Once you get this, you can find out when and who changed (deleted) the documents.

  • Deleted Sales Order tracking

    Hello Gurus,
    Where can I see the deleted sales order. Is it stored in any table?
    Regards,
    Balu

    Balu,
    In general, one should not delete the sales order, instead we should reject all the line items.
    If some one deletes an order it will be stored in CDHDR and CDPOS tables.
    To know the deleted orders, go to CDPOS
    enter "VERKBELEG" in change document object.
             VBAK in Table name.
              "D"  in Change ID.
    You should get the data.
    Regards,
    Ajai.

  • Mass deletion sales order/ deliveries

    Dear All
    We need to delete sales orders in Production system. I tried transaction MASS but could not do from there.
    Kindly provide pointers for the same.
    Regards
    Dinesh

    Dear Dinesh
    Either through LSMW or BDC you can delete sale orders in bulk but you must ensure that for those orders, no subsequent document is generated.  If any subsequent document is there, you cannot delete those sale orders.
    thanks
    G. Lakshmipathi

  • Cannot delete sales order when invoice is canceled

    Hi guys,
    I have this problem. Proces is defined with two document: sales order and invoice. I  have canceled invoice
    with VF11 and set u201CReason for rejectu201D in sales order but status overview is not set as u201CCompletedu201D.
    I cannot delete sales order, what is the problem any idea??
    Thanks,
    Nihad

    This is overview of the status:
    Standard Order      27057                                                                               
    Sold-to             400000               proba                                                                               
    Status overview                                                                               
    5  Current hdr status         Everything rejected                                                                               
    Total processing     Open                                                                               
    Rejection status     Everything rejected                                                          
            5  Ord-related bill.st. Not invoiced                                                                               
    Invoice               90012921    14.10.2008                                                  
                   Cancel. Invoice (S1)  90012986    14.10.2008                                                                               
    Completeness         Complete header data                                                         
               Billg doc. complete  Complete header data                                                                               
    Current item status                                                                               
    ItemNo Material                                                                               
    5  000010 Otkup tendera                              1,000 PC                       Fully rejected                                                                               
    Total processing     Open                                                                               
    Reason for rejection 10 Unreasonable request                                                      
               Rejection status     Fully rejected                                                               
            5  Ord-related bill.st. Not invoiced            0,000 PC Billed       1,000 PC open                                                                               
    Invoice               90012921     10 14.10.2008               1,000 PC                       
                   Cancel. Invoice (S1)  90012986     10 14.10.2008               1,000 PC                                                                               
    Completeness         Complete item data                                                           
               Billg doc. complete  Complete item data

  • Deleted Sales Orders

    Hi,
        Business needs to get the data back for all the deleted sales orders for a period. Is there any way these data can be retrieved. When I put the sales orders number system says "Sales Document XYZ is not in the database or has been archived".
      Your views are much appreciated.
    Regards
    Raj

    Hi,
    There is only one option available by which you can track changes done for a particular sales order which has been deleted.
    thru VA02, go to an existing Sales order, click on tab ENVironment, changes.
    Here, you will find, the existing sales order number. Delete this number and enter the number of the sales order that was deleted & for whose details you intend to RETRIVE.
    You will get a change LOG, which will give u complete details of the changes done for that Sales order.
    Reward points if found useful.
    Regards,
    C. Ramakrishna

Maybe you are looking for

  • I can no longer access my diary

    I removed my photo album and photo strwm, I had a soft as well as hard reset but still I have no access to my diary on iPad2 Wifi 16 GB iOS 7.1.1. I tap the icon, I see my diary for less than a second and then it is gone. I combine 2 hotmail accounts

  • Iphone 4s - ios 8.1 Update, No sound

    Hello, I have just updated my iphone 4s from 7.1 to 8.2 (not a stepped migration I know, more of a big bang update!) I did this thinking 8.1 was stable and that stories I had heard of 8.0 problems would have been ironed out. They haven't. I am a seas

  • Can my lost iphone being track with the IMEI number??

    I just lost my iphone, I read on the web that every phone has a unique IMEI number, and if I call ATT and tell them my IMEI number then they can disable my iphone and it can not be use again, now I am talking about the iphone itself, not the sim card

  • Oracle installation for Win NT

    I went into follwoing link.. http://otn.oracle.com/software/products/8i_personal/htdocs/winsoft.html Downloaded following Oracle8i Personal Edition Release 3 Version 8.1.7 for Windows NT/2000 Download the Complete File nt817personal.zip (612,139,274

  • Error loading plugins pngfileformat.aip upon startup, then Ai crashes - help?

    I just downloaded Ai, and I get the following error message upon launch: error loading plugins pngfileformat.aip.  After that, Ai crashes.  Suggestions?