Removal of Cancelled Sales Order

Hi,
Is it possible to clear all Sales Order whose status is Cancelled from the System.
Ronald

Hi Ronald,
unfortunately no. They must stay there in the database (I suppose for statistical purposes only). DI doesn't allow document deletion.
It seems that B1 lack some form of simple data cleanup. For example in some cases we needed to switch the customer from demo to production mode, cleaning all test documents he/she has issued. In my opinion this would be a great improvement.
Regards

Similar Messages

  • Cancelled sales order

    Hi,
    Through which table and field , we can know that a sales order is cancelled?
    I need to give this information to technical consultant for making the report.So that cancelled sales order wont be displayed in the report.
    regards,
    sathya

    Hi,
    We are creating a sales report. I dont want to show the cancelled or deleted sales order in that report.
    If thats the case which table and field to be given to technical consultant......
    regards,
    sathya

  • Data Extraction - Cancelled Sales Order

    Dear BW Experts,
    In the business scenario, we are extracting 2LIS_11_VASCL (Scheduling line)  and 2LIS_12_VCSCL(Shipping Scheduling line delivery). I found that canceled sales order in the BW system but those sales order are not exist in R/3. We extracted data from R/3 to BW. Can u pl. suggest a why canceled sales order exist in BW ? What are the remedies to resolve this issue ?
    Thks for support.

    Hi,
    As it is a standard data source,so whatever be the canceled
    order these are handled by data source itself.Please see
    the mapping between 0RECORDMODE to ROCANCEL If it
    is properly done also as mentioned in the above thread do
    the required mapping.
    But in case of generic extractor we need to do some thing
    ie we need to take the deletion flag to Bw and at the
    reporting level we need to use filter to avoid this situation.
    Hope this is helpful.
    Thanks,
    Saveen Kumar

  • How to prevent Copy from Cancelled Sales Orders.

    Hi,
    I have a requirement as below.
    I want to stop users from Copying a Cancelled Sales Order Lines.
    Can anybody please let me know how I can achieve this.
    I tried using the processing constraints but couldn't succeed.
    Thanks in advance.
    Thanks
    Shekhar

    Hi,
    Also you can refer the following security rule feature which oracle provides to set your rule from users performing actions like copying, deleting and cancelling.
    http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/oe/esecruls.htm#r_secrul
    Thanks
    Nancy

  • Cancel Sales Order lines that are picked

    Hi
    1. I'm trying to cancel sales order lines through process order api that are picked and delivery status is Staged/Pick Confirmed. The error is
    You are not allowed to cancel Order Line because:
    Line has been pick confirmed/staged.
    I'm unable to perform by below means
    1.There is a processing constraint on the field SCHEDULE_ARRIVAL_DATE.
    Delete the processing constraint and retry the cancel line process - Processing constraint form the fields are protected against update
    2.Navigate to the shipping transaction form and query the order. Select the line and enter 0 at shipped quantity.Save the record.Ship confirm the line, this will cause the line to be backordered.Query the order line in the order entry form and cancel this. - Shipping transactions form the fields are protected against update
    2. Is there a way to cancel Internal Sales Order(ISO) lines of one OU and the corresponding internal requisition is another OU
    Thanks
    kumar

    If you are in R12, there are some enhancements from Oracle that allows updating/cancelling certain Internal requistion fields and Internal orders automatically. You may need to disable few processing constraints too.
    As of Now Oracle support change to following attribute at OM side
    1 Order Quantity
    2 Request Date
    3 Schedule date
    4 Arrival date
    Similarly if we make changes in following fields in Approved IR
    1 Quantity
    2 Need by Date
    These changes will got reflected in ISO
    Plus cancel the IR line or ISO line, the other one gets cancelled automaically.
    To cancel the picked line, first undo the pick confirmation process by back ordering. or unassign the delivery details from the delivery (if created already) and cancel the delivery.In either case, you need to manually trasnfer the qty from staging area to original locations. Oracle doesn't automatically move the qty back, (undo move order transaction).
    Ganesan.

  • How to cancel sales order which I placed?

    How to cancel sales order which I placed? And this order had not been delivered.

    Rejection SO & Cancellation SO both are same. So please follow the below steps-
    1. Use Tcode VA02
    2. Enter Sales order number which you want to cancel.
    3. Click "enter"
    4. Click the icon "Reject Document"
    5. Select suitable u2018Reason for rejectionu2019.
    6. Save
    Many Thanks & Regards,
    Susanta K Senapati

  • How to use of API for Cancel Sales Orders

    Hi....
    I want to use API for Cancel Sales Orders. Plz give me advice how we can cancel orders. I know that there is procedure provide in ORACLE APPs (i.e. OE_ORDER_PUB.process_order). But in this procedure i know the how to create and update sales order, but how to Cancel order with the use of this API.
    Plz send me soultion as soon as possible. ITS VERY VERY URGENT BASE.
    Thanks in Advance.

    Hi all,
    We are importing Sales Orders on 11.5.9 using OE_Order_PUB.Process_Order API .We have supplied most of the mandatory fields and the same data works from the front end. When we use the API it throws a Ora 20001.
    A snapshot of the error message.
    SQL> exec pk_process_object.process_order('1o');
    Message Count is :2
    Message is RA-20001: User in Package OE_Header_Util Procedure Get_Order_Number
    Message is :User-Defined Exception in Package OE_Header_Util Procedure
    Pre_Write_Process
    Return Status is ErrorU
    PL/SQL procedure successfully completed.
    --------------------------------------------------------------------------------------------

  • How to Cancell Sales Order Items......

    Hi Experts,
    How to Cancell Sales Order Items ?
    Presently I am deleteing Indidually Items in Sales Order but I am getting records through Report.
    Is there any proper way to Cancel Sales Order Items / Full Sales Order and also I can get report of which items has been cancelled and so on.
    Pl. reply.
    Yusuf

    you can not cancel sales order.. SAP has not given that option.. only opition you have is delete the line items by going to VA02, if its open sales order or blocking the sale order..
    reward if it helps..
    ramki

  • Prevent User close or Cancel Sales Order manualy

    Hi all!
    I am using SP Notification  to prevent user close or cancel Sales Order manually from pop up Menu.
    Here is my SP>
    If @object_type = '17' and (@transaction_type ='U')
    BEGIN
    if exists
      (SELECT T0.[DocNum] FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    WHERE T0.[CANCELED] ='Y' or  T0.[DocStatus] ='C' and T1.[TargetType] ='-1')
    begin
    set @error =100
    set @error_message = N' Cannot Close directly !!! !'
    end
    End
    But i not success because i think "U" and "A" event is not effect for this case.

    Dear Tien,
    Same thing you can do by user authorization.
    Path:
    Admin > system initialization >authorization >general authorization >cleck on Select user > General > Drag and Relate >Set flag for the cancel document and close document.
    May this help you.
    Regards
    MANGESH PAGDAHRE.

  • Cancel Sales order return

    Dear SAPfriend,
    A return has been done 2 times for the same order and that 2 already completed (Trasnfer posting Done)
    i have reverse the one of sales return using :-
    1) VF01 - to cancel the return invoice.
    2) VL09 - to cancel PGI.
    3) VL02N - to change picking.
    4) VA02 - to put rejection reason.
    when i go to FBL5N, that one of sales order return that i reverse still in the customer line item, how should i remove it from customer open line item ????

    Hi Nizam,
                  even after return the cycle , the customer line items not reflecting means, check whether the accounting doc. generated for cancelled invoice or not. if u reverse the accounting document.u can see the reflections in the line items,
                   so, go to vf02 enter cancelled invoice and cllick on flag, release to accounting.
       hope u will get the solution.
    regards,
    ram

  • How to cancel sales order

    There is a need to cancel the whole sales order due to error in entering wrong sold-to party.
    I can resolve this by two way
    1) change sold to party  -- no subsequent document created
    2) cancel the sales order
    how to do the following things.

    Hi,
    Go to VA02 and give your sales order number and press execute.
    If you have not created any reference document with sales order.
    Then to go sales document u2013 delete.
    By this way you can delete your sales order.
    Go to VA02 and give your sales order number and press execute.
    Over there give delivery block and billing block to the sales order in the overview screen.
    If you put this then your order will be active and is some remove the blocks then delivery and billing can be possible for this.
    So delete the sales order if you donu2019t have any problem and create the new one.
    Regards
    Raj.

  • Delete (cancel) sales order with subsequent document - delivery

    Hello,
    The question I have is probably very simple, but still need an advice (or confirmation for described approach)
    To make it easier I will use names for SO (like S01,SO2...etc) and deliveries.
    Customer created 1 sales order (SO1) and from it Outbound delivery (OD1). This Outbound delivery (OD1) has 2 items:
    first item from another sales order(lets call it SO2)
    and second from SO1
    The delelivery quantities are as follows:
    Item one (for SO2) : 100 (its all pieces)
    item two (for S01): 0 (zero!)
    Delivery is done by external software and SAP system only receives confirmation that it was successfull (completed). The delivery OD1 is completed.
    Unfortunatelly customer created another Sales Order (SO3) for the same goods and created another outbound delivery (OD2) with delivered quantity equal to all ordered goods (not like for OD1, where we had zero).
    We have following situation:
    SO1 and SO3 are for the same goods, so SO1 has to be cancelled.
    SO2 is ok and has nothing to do with the problem.
    Cancellation of SO1 is not possible, because there is outbound delivery (but with delivered quantity 0). The only possibility I have in mind is to reject SO1 (and it gets status completed). This looks fine, but the problem is with the outbound delivery (OD1). I cannot remove second item (for S01) because the delivery status (overall) is "completed". The system says:
    "The goods movement status (partially or completely processed) does not allow the item to be deleted."
    For me its fine to leave the delivery as it is, becuase the delivered quantity is equal to zero.
    The are no other documents in the system (like invoice)
    What do you think?
    regards
    Rafal

    Hi,
    Thanks for quick reply.
    See: there  was goods issue, but in document flow it shows goods issue only for item 1. Remember that item 2 that I don't need (want to delete) has Actual quantity delivered (in sales units): 0. Only delivered quantity for item 1 is correct.
    For items:
    Goods movement status (GS) is "completed" for both items
    Billing status of delivery-related billing documents (BS) is A (not yet proccessed) for both items
    Overall status:
    Overall picking / putaway status - Completed
    Total goods movement status - Completed (and this is why I cannot remove item 2)
    Billing status : A (not yet proccessed)
    On the "document flow" screen I see the status for delivery " being proccessed. This is becuase of the missing billing, right?
    My question is like this: do I have to care about item 2 from the outbound delivery (after I rejected sales order connected to it), or do I have to delete it somehow. Although there is item on the list it has "delivery quantity" zero, so I don't think it will influence billing. Right?
    I don't want to delete whole delivery. Only solve issue with item 2, where delivered quantity is zero. I need just confirmation, that if I leave it with zero and cancell connected sales order, then this will be ok.
    Regards
    Rafal

  • Which field stores the Cancelled Sales Order Status

    Hi,
          I am checking for duplicate PO No in sales Order header VBAK. The criteria is Slaes Order must not be a cancelled one. I am searching VBAK to find the status field to determine the whether its cancelled or not.
    Thank U for Ur time.
    Cheers,
    Sam

    Hello Sam,
    to find out whether a sales order item is cancelled - better rejected - (if it is cancelled there is no VBAK or document any more) you could use the field reason for rejection on item level which is the field VBAP-ABGRU.
    Best regards, Baerbel

  • Cancel Sale Order

    Hi all,
    I have an issue with SD/FI.   The details are given below:
    I would like to cancel a Sales Order due to wrong sold-to-party selected. There is an existing accounting document created.
    How do I proceed with the cancellation of the Sales Order? I want to prevent this SO from being used.
    This is the first transaction.   Actually, the Accounting document generated through Billing Document and the same was cleared against down payment. 
    Is it possible to cancel the Sale Order to change the sold-to-party without affecting the Sale Order.
    As per my observation, it is not possible once the accounting document generated.
    If we want to cancel the Sale Order, is it possible?
    Reverse the clearing document, down payment document & billing document.
    Then cancel the billing document. 
    Hence, we can cancel the Sale Order.  
    It will affect the previous period balances.   Is it correct??
    Can any one give some guidelines.  Whether I am correct or not??
    Thanks & Regards,
    SAP

    You cannot delete a sale order if there is a subsequent document to that. In your case, since already you have generated billing, unless you cancell the billing via VF11, reverse the PGI via VL09 and delete the delivery via VL02N, you cannot cancel the order.
    As you said the accounting document is also cleared then you have to get it reset with the help of FICO through transaction FBRA. Then only you will be able to cancel the billing document.
    If you dont want to process the sales order further then what you can do is that you assign Reason for Rejection for the line item and close the sale order.
    For your period balance query if you are cancelling in the current period then there wont be any issue. both the entries will knock off each other. But if the billing document is generated in the past period and you are cancelling it in the current then there will be two entries. But if you take the balace as on todays date then there will not be any open item related to this billing document.
    Hope it clarifies
    Thanks,
    Vishal

  • Cancel Sale Order after Issued Billing

    Hi all
    I have a Sale Order, Billing already create. But now I want to cancel this Sale Order.
    Could you please tell me step by step cancel this Sale Order ?
    Thank and Best Regards,
    Thang

    HI Thang...
            You can no doubt delete the sales order using transaction VA02, but there should not be any subsequent document created against it. Deletion /cancellation can only happen even if the subsequent documents are NOT created.
    Sales Order with subsequent documents cannot be deleted. After cancelling the invoice and deleting the delivery document, we can set the reason for rejection at the Sales Order Header Level.
    Steps:
    1. Cancel the invoice through T code VF11
    2. Reverse the Goods Issue using VL09, turn the pick quantity u2018zerou2019 in the delivery document
    3. Delete the delivery document using VL02n.
    4. Finally set the reason for rejection at the Sales Order Header Level. (So Bala, just check the SO you want to delete ever had any subsequent document? ) Note: An Invoice cannot be deleted but canceled. It can only be canceled with (VF11) only if the relevant accounting document is not generated.
    Generation of accounting document means the value is posted into accounts and G/L accounts are hit. SAP FI department needs to reverse the accounting doc on a real-time scenario. Only after the accounting doc is reversed invoice can be canceled. Tax documents generated through the Invoice (Tax is maintained on a separate account) also need to be reversed but this is a part of FI so an SD consultant just needs to request the FICO guy to do the reversal.
    Kindly reward if this helps...
    Thanks..
    Safeer Rahman

Maybe you are looking for