Tracking Deletion in Sales Order -

Dear All,
I want to keep track for all the Sales Order Material No. Deleted. I get the details from CDHDR and CDPOS tables for Insert, Update and Delete. I could not get the Material No. Which is deleted. Can you please help me out in this topic.
Kindly Help me out as it is very urgent.
Your kind co-operation will be appreciated.
Regards
Omer Farook.

Hi omer
CDHDR table will have the header record as to when the table was changed and actual changes like the old value and new value can be found in the CDPOS table. These two tables are linked by a Key.
By default the changed documents are not activated for all the fields. This is usually done at the Data element level and can be done using SCDO transaction and checking the relevant flag at the data element level in SE11.
thanks,
kiran.M

Similar Messages

  • Deletion of sales order

    Hai Gurus,
    I want to mass delete the pending sales order for which no delivery hasnt yet done.
    Please guide me with any t.code for mass deletion as there are 2500 nos so deleting one by one is a hectic task.
    As i have pull out all the sales order from Va05. with organisation data.
    With regards

    Dear Saju
    Create a recording for VA02 for LSMW and delete.  But it is not advicable to delete the sale orders instead you assign a reason for rejection and close the sale orders.  At a later date, if you want to track these sale orders, you can do so if you assign reason for rejection.
    thanks
    G. Lakshmipathi

  • WHILE DELETING A SALE ORDER GETTING A RUNTIME ERROR " Screen: Illegal message"

    Hi Experts,
    While deleting a sales order giving run time error.  PFB runtime error details.
    If you know any OSS message, please let m know. I tried, but there is no luck.
    Short text
        Screen: Illegal message
    What happened?
        The current screen processing action was terminated since a situation
        occurred where the application could not continue.
        This is probably due to an error in the ABAP program or in the current
        screen.
    What can you do?
        Note which actions and input led to the error.
        For further help in handling the problem, contact your SAP administrator.
        You can use the ABAP dump analysis transaction ST22 to view and manage
        termination messages, in particular for long term reference.
    Error analysis
        The program attempted to issue a " " message during "Exit Command" processing.
        This is an illegal operation.
        The program was terminated.
        Screen name.............. "SAPMV45A"
        Screen number............ 4001
    How to correct the error
        The program must be modified to correct the error.
        The modification must be made in "Exit Command" processing.
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
    Source Code Extract
    Line  SourceCde
        1 *---------------------------------------------------------------------*
        2 *       FORM YVBEP_LESEN                                              *
        3 *---------------------------------------------------------------------*
        4 *       Lesen der Tabelle YVBEP (nicht sortiert)                      *
        5 *---------------------------------------------------------------------*
        6 FORM YVBEP_LESEN USING US_POSNR
        7                        US_ETENR
        8               CHANGING CH_TABIX.
        9
       10   YVBEP = SPACE.
       11   YVBEP-MANDT = VBAK-MANDT.
       12   YVBEP-VBELN = VBAK-VBELN.
       13   YVBEP-POSNR = US_POSNR.
       14   YVBEP-ETENR = US_ETENR.
       15   READ TABLE YVBEP.
       16   IF SY-SUBRC > 0.
       17     MESSAGE E506 WITH US_POSNR US_ETENR.
       18   ENDIF.
    >>>>>   CH_TABIX = SY-TABIX.
       20
       21 ENDFORM.
    Could you please help on this issue.
    Thanks
    Srinu

    Hi Srinu,
    it looks like you got the error message Schedule line &1 &2 is missing in table YVBEP while deleting the sales order.
    It seems, that there are no SAP notes regarding this issue. Do you have this issue with all orders or with a single order?
    If only a single order causes this issue, maybe something was wrong during an update.
    If you get this error for many orders, then custom code (modification, enhancement, user exit in MV45AFZZ, ...) may be the reason for it.
    If you have no custom code in module pool SAPMV45A, then contact SAP for this issue.
    Regards,
    Klaus

  • Interesting scenario- user facing error while deleting a sales order

    Hello All,
    I have one interesting scenario and want feedback from your side as soon as possible
    Scenario-
    One of my clients is facing a problem while deleting a sales order.
    the sales order he is trying to delete is the old order created in 2007.
    when i see the document flow the user has created the export order, then delivered it, invoiced and sent it to accounting, accounting document is also cleared. then he cancelled the invoice, reverse PGI and deleted the delivery. the status of the sales order system is showing is being processed. but please note in this case after reversing PGI and deleting a delivery the delivery document disappears from the document flow.
    document flow looks like this
    Order - 200004715                     Being processed
    invoice- 700005310                    completed
    accounting 700005311                 cleared
    Cancel Invoice 700005315            completed
    Accounting 700005316                 cleared
    Now, in 2008 user is trying to delete the sales order but he is unable to do the same. system is giving him message "unable to delete sales order because of subsequent document 70005310 (which is invoice number)"
    Can somebody please throw some light on this problem.
    Thanks in advance.

    Hi,
    As fas as I know, this is standard system behaviour. The reason - you have done PGI (which has created a material document as well as accounting doc) and invoiced & reversed (which again has created accounting documents & rversal documents). All these documents are referencing the sales order.
    If you delete sales order, sales order number gets deleted from VBAK /VBAP tables.
    Hence, in relational data base scenario (meanin SAP in this context), deletion of sales order after creation of subsequent documents is not feasible.
    Hope it clarifies the issue.
    Regards
    Murali

  • Tracking the actual sale order quantity

    Hi Friends,
    How to track the actual sales order quantity given by the customer.
    Ex: we assume the customer has placed an order of 100 units and stock is only 90 so we create the sales order for 90 units only.
    How to find out the difference of 10 units as a report in standard sap system.
    Thanks
    AJ

    Dear AJ,
    This is how normal sales process works.
    You create Sales Order line item for the quantity that customer has requested. (eg: 100)
    Then you do a ATP for that Line item. Let's say you have only 90 in the stock. In that case system will confirm 90 for the sales order line item. (You can see the confirmed quantity in the Schedule line tab)
    Normally we don't change the LI quantity as per the ATP confirmed quantity (i.e 90). Because then we loose the visibility to the customers original requested quantity (i.e 100).
    Say you don't change your Line Item Order quantity to 90. Then your delivery & billing will be for 90.
    So you can see in VA05, Order quantity as 100 and confirmed quantity as 90.
    Your sales reports will show delivery & billing as 90. So that you have a clear visibility to the original order quantity, delivered quantity & billed quantity.
    Further if remaining (open) quantity 10 is appearing your MRP & creating troubles, please use Line Item Rejection Reason as Completed. So that everything is perfect.
    Coming back to your issue.
    Since your changing LI quantity to 90, you cant see 100 in the VA05 report. It always show the existing sales order line item quantity, which is 90 in this example.
    Only way you can find your original sales order quantity is in the Line Item / Change Log.
    This can be view by selecting below Menu option.
    Environment -> Changes
    If you execute it for the relevant Line Item, you can see the Change log. In that by double clicking relevant quantity change line, you  can see the old value & new value. (In this example 100 & 90)
    But that is not a good practice to do as changes will show all quantity changes that you might do based on  customer request. (Imagine if you customer ask to change it later to 95 not 100).
    In that case change log will display 100 to 95, then 95 to 90. So your loosing the required visibility.
    Hope this is helpful to you !

  • Restrict deletion of sales order line items

    Hi,
    I need to restrict deleting of sales order line item, I think we can use the user exit, MV45AFZB, USEREXIT_CHECK_XVBAP_FOR_DELE.
    But when i set the flag to 'X', even though it does not delete at tht instance when the sales order save is clicked again the line item gets deleted.
    ANy idea , to prevent that?
    Thanks
    Keshi

    Hi Keshi,
    That is the correct exit, we are using the same without any problem. Just set US_EXIT  = CHARX.
    Regards,
    John.

  • How to delete a sales order which has already approved

    Hi,
    Could anyone please tell me how can we delete an already approved Sales order if no delivery doc is created and billing document has already been cancelled.
    When i try to delete the order it is not allowing to delete the sales order.
    It allows to put the reason for rejection in the sales order.
    It does not allow me to put the reason for rejection in the sales quotation.
    Please help and guide me.
    Thanks and Regards

    Hi,
    My query is regarding if the delivery is not there and the sales order is already approved and if the billing docu has been cancelled then why can not we delete the sales order?
    After that i need to put the reason for rejection in the sales quotation.
    So please guide me.
    Thanks and Regards
    Edited by: MPVash Vash on Jul 22, 2008 7:29 AM
    Edited by: MPVash Vash on Jul 22, 2008 7:29 AM

  • I have deleted a sales order,how to retreve the same document number

    Hai,
        I have deleted the sales order,so that document number is out.When i craete the next order will i get the same number which i have already deleted.
    I want the same number again,for that what should i do...
    I dont want that number be missed,the reason is there should be a flow in number,with out missing some numbers in between.
    Thx
    Venu
    Edited by: venugopal on Aug 6, 2008 9:12 AM

    Dear Venu
    Yes this is possible but should not hand over the responsibility to end users.
    B4 implementing this in production, please test a document and proceed.
    Go to VOV8, select your order type and execute.  There see what numeric value is maintained against the field "No.range int.assgt".  Now go to VN01, [click on Status]  tab and go to that number.  On your right, you can see the last generated sale order number with editable option.  You can change it.
    For example, if your last created sale order reference is 805, you will see this 805 in the above area.  Change it to 804 and save.  Now if you create a new order, the reference of that particular sale order will again be 805.
    But as I already mentioned, each and every time, you need to go and change this area which is not recommended. 
    thanks
    G. Lakshmipathi

  • Can we delete the sales order?

    hi,
    can we delete the sales order?

    Use transaction code SARA for deletion of sales order but as every body said it is not recommended as it might affect the documents made against it and also the master data.
    So its better to reject the sales order.
    Regards
    Prashant

  • Where Can I settle an enhancement to delete a sales order item according to the data in BDOC from CRM?

    Hi expert,
    I have an urgent requirement from the client.
    Delete the sales order item totally in ECC.
    I planned to implement this enhancement in ECC. Check the data in BDOC from CRM middleware, according to the user status in the order item,decide whether the item can be deleted.
    My question is,where can I settle this enhancement? The BADI name,user exit?
    Thanks in advance.
    Jerry.

    Hi Jerry,
    It may be delayed. you may found the solution.
    Use BADI CRM_DATAEXCHG_BADI and try the code in MBDOC_FILL or BAPI_FILL method.
    Regards,
    Bala

  • Mass Deletion of Sales order line items

    Dear Gurus..
    There is a transaction VA02 for change and deletion of sales order line items. it takes time to delete line item of sales order one by one.. is there any abap program to do this process..
    if so please let me know
    regards
    Saad Nisar

    Hi,
    You can use trx MASS with object type BUS2032 to change sales order items. Please check this link:
    Re: Mass deletion of  sales orders
    Or try LSMW.
    Regards,
    Csaba
    Edited by: Csaba Szommer on Apr 10, 2009 8:18 AM
    Edited by: Csaba Szommer on Apr 10, 2009 8:21 AM

  • Where can i see who deleted the sales order

    Where can i see who deleted the sales order?

    Hi Raja,
    Thnks for the reply.But I wanted to see Delivery Document which is not in the database as it has been deleted.
    As in this program , When I enter This Delivery Number , it says - No Changes carried out.
    Kindly provide me the program fo Delivery Document.
    Best Regards,
    Ankur

  • Is there any FM or BAPI to delete the sales orders

    Hi,
    Is there any FM or BAPI to delete the sales orders
    Thanks,
    srinivas.

    BAPI_SALESORDER_CHANGE
    [Link|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi_salesorder_change-delete-sales-order-ver-470-1081398]

  • Deletion of sales orders

    hi all
    how can i delete the list of sales order from a particular date to particular date.
    regards
    venkat.

    Hi Tarun
    you can delete sales orders only if there are no subsequent documents.
    if accounting documents are generated for a sales order then
    after reversing the accounting documents with the help of FI guys then
    cancel the invoice by VF11
    reverse PGI thru VL09 and making the picking qty '0' in the delivery doc
    delete the delivery using VL02N
    then delete the sales order by VA02.
    Hope this will help you.
    Rewards point if helpful
    Regards
    Hansraj meena

  • CRM - automated error monitoring tools to track errors in sales orders

    could you please let me know whether we have any
    automated error monitoring tools to track errors in sales orders
    Thanks in advance

    I wont recommend turning off cookies in production.
    Turning off cookies was only from a Performance
    Testing perspective, Not using cookies for a performance test but using them in production, sort of invalidates the test, since much of the issue I had was the testing tool waiting for data to be returned to the cookies so it could be used to move to the next page.
    Partner Management uses all of them. I uses iStore for its external launch page, OA framework for its functionality, but then links to Sales online for Opportunities, and Quotes which I believe is AK framework. so you have a mixture of several
    frameworks involved...... plus Discoverer Viewer...

Maybe you are looking for

  • REPORT BUILDER ON WINDOWS 98

    HI I HAVE ORACLE 8i AND DEVELOPER 6i. iS THERE A WAY TO GET REPORT BUILDER IN DEVELOPER. FORM BUILDER AND EVERYTHING ELSE IS WORKING PERFECTLY I JUST DONT KNOW WHERE TO GET REPORT BUILDER DOWNLOAD FROM. PLZ HELP

  • What's new in Font Folio 11.1?

    Looks like Font Folio 11.1 released today, per http://adobe.com/products/fontfolio. Can anyone tell us what is new in the past 5 years? I had hoped for some better glyph coverage in fonts like Utopia, but I don't see any evidence of that in the docum

  • Subtracting two numbers in double format gives incorrect result

    Hello, I have a table with two fields in Number (Field Size: Double; Decimal Places: Auto).  When using a query i try to subtract one field from the other I get incorrect results: Field1 Field2 Result 2.60299223923846 2.60259423701324 3.9800222521879

  • Authorizations for non cost center manager in transaction CADO

    I have project managers that need to run transaction CADO, usually against a specific sales order.  Since many employees from different cost centers may charge their time against this sales order and that time data needs to be in the CATSSHOW report.

  • Ultrabase for x201 specs (specifically the Ultrabay)

    Hello, I recently replaced my T61p with a new x201. i bought the ultrabase along with it, thinking it a good way to do a quick charging and a good base for expansion with other drives, etc. however, I'm looking to get a small boost in graphics power