Help with deleted sales orders

Hi everyone,
I have an issue with sales order deletion.  We load BW nightly.  If a sales order is created one day and deleted the next day we get a record for a positive qty and a record for a negative qty, this is ok.  The problem is when the record is created and deleted the same day, this creates a negative qty amount that does not have a positive amount to cancel out and in turn throws our sales qty's off.  Can anyone help?
Thank you,
Aaron Blasi

Hi AVR,
Thanks for the reply.  What I am trying to figure out is why the extractor sends only the negative amount record when the sales order is created and deleted the same day.  What happened to the positive amount record?  does anyone know why or has anyone come accross this issue.
Thanks,
Aaron

Similar Messages

  • Delete sales order stock with deleted sales order reference

    Hi,
    Our user deleted a SALES ORDER Document without checking if there is still inventory. Now, we cant zero-out the sales order stock because the reference sales order was already deleted. The system is giving us error message that the reference sales order does not exist.
    Regards,
    Marianne

    Hi Marianne,
    You could try to reverse post the stock from sales order to own using movement type 412 - "E"and then re transfer it to some other sales order that you desire with 411
    if the above gives error
    you may consume the stock , or scrap and then recreate the stock with 561 or or 531 goods movement type. cause when you try to reverse the system would give a error as no valid sales order is to be found
    Thanks
    Akasha

  • 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

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

  • 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

  • Retrieve a deleted sales order

    Hi,
    Is it possible to retrieve a deleted sales order?
    Rgds
    TV

    Dear TV,
    Deleted Sales Orders can not be retrieved. However, you can retrieve the data if you had stored them in custom tables during sales order creation with the help of BAdi/Enhancement.
    However, you can not retrieve the data from standard tables (VBAK, VBAP etc) as the data will be deleted as soon as you delete the sales order.
    Hope this will help.
    Regards,
    Naveen.

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

  • 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

  • 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

  • Opening and closing stock with sales order and with out sales order

    hello,
    any body please help me my client want to check opening stock and and closing stock in areport.
    material contains batch and some material with sales order and some are with out sales order. my client is asking this in a single layout. please tell me isthere any teport or bapi or function module to get this report.
    this is very uregent. and layout is requesting like opening stock, production stock, sales stock and closing stock.
    please guide me to get this report.
    Thanks & Regads
    Bhakta

    Transaction MB5B
    For sales order related use specila stock as E and use radio button indicator in stock type
    For stock w/o sales order, use special stock indiactor as "space' and stock type valuated stock.
    to get a perticular month,opening stock/closing stock enter the start date/end date as month start and end date.
    See the o/p which will give the stock as required by you

  • 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

  • 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

  • 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

  • Interaction Center Sales with ERP Sales Order

    We are in the process of upgrading from CRM 4.0 sp 6 to CRM 2007.  We have been using the Web IC and Mobile sales for the last 4 years.  In our original CRM 4.0 implementation (which was developed by SAP) we were using the CRM Web IC to create orders with R/3 using a couple of BADI's.  We are currently using R/3 4.7 and have plans to upgrade to ECC 6.0 next year.  I was just rereading some of the documentation in the upgrade guide and came across the following line:
    "The following software units are required for the Interaction Center Sales with ERP Sales Order scenario:
    Mandatory:  IC WebClient with specific ERP Sales order viewset requires SAP ECC 6.0"
    This implies that the standard Interaction Center Sales with ERP Sales Order functionality will not work in our current landscape and that it would only do so when we upgrade to ECC.  What options are open to us to get around this?  What is the technical reason why this functionality doesn't work with SAP R/3 4.7?
    I can't imagine we are the first company to face this problem and I can't imagine everyone upgraded to ECC 6 - so what approaches have people taken to address this issue
    Thanks in advance
    Eddie

    In the last 12 months we upgraded from 4.0 to 5.0 in CRM and went form 46C to ECC 6.0.
    In your current landscape you can create orders in the ICWC where the order is created in CRM and replicates to R/3 4.7.     You have the replication scenarios X, Y, Z available to you.
    Your other option is using the ICWC R/3 order screen where you basically are calling R/3 transaction VA01 and entering the order in the ICWC but the order entry in being done directly into R/3 via your ITS server.  Looks almost exactly like VA01 in the gui.  The menu bars are a little different. 
    The ERP order looks like other ICWC screens,  is very sharp and users wouldn't know that they are entering the order directly in ECC.  We have been using it about 3 months.  More Pro's than Con's, if you have user exits in MV45AFZ* the ERP order still uses them  (but t-code isn't VA01 if you have condition If statements around t-codes).
    Hope this helps,

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

Maybe you are looking for