Mass Deletion of Sales Orders

Hi Gurus,
   I have some unused old sales orders which  affects the MRP run , to rectify this we want to delete or archieve the old SOs. How to do Mass deletion or Archieve the unused SOs?
Kindly help to resolve .
Thanks in Advance,
Regards,
Joseph

hello again, Joseph.
until someone comes up with a standard solution, i believe what ABAP will do is to come up with a customized table that will show all sales orders with status 'not yet processed' (from table VBUK) within a date range.  when the list is called, you will be enable to enter a value in the field 'reason for rejection' (field name ABGRU).
when you have entered a reason for rejection, the sales orders are effectively closed (completed) and a subsequent transaction based on these orders cannot be done.  you can ask ABAP to use an available user exit to further prevent the re-opening of these orders.
regards.

Similar Messages

  • 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

  • Deleting Open sales order - in mass

    When i checked VA05 , I found many open sales order over a period of time.I want to know whether any method is there to select some sales orders from that list and delete them in mass ie at one stretch.

    Hello,
    Please use the search option at SDN forum and do not post the repeated question !! Please refer the following link for detail information !!
    [DELETING OPEN SALES ORDER|Re: Mass sales order reject/delete]
    [LINK|http://sap.ittoolbox.com/groups/technical-functional/sap-log-sd/mass-deletion-of-sales-order-1201141]
    Regards,
    Sarthak

  • Mass deletion of open orders

    Dear Experts,
    I have more than 1000 open orders in system, and i found VKM3 ll be good option to close the orders even at item level & orders partially delilvered , is it right way to do it?
    or do i have any other easier option?
    thanks & regards

    Dear Jitesh,
    VKM3 is for releasing the orders which are blocked for delivery due to credit check.
    You can try MASS and give reason for rejection as advised above.
    But if i were in your place, i will go for a Zprogam which will call a BDC.
    In the program i will call all the orders which do not have a delivery.
    If you need to close the orders which are partially delivered, then you can write another condition to check the orders with delivery but delivery qty less than order qty and if so, edit the order delivery qty with the actual delivered qty.
    The program will call the BDC (in which delete the sales order in case 1 and edit the qty field in case 2)
    By writing a Z program, the advantage is i will be able to use this Zprogram in future, (i can even include the order type / order date etc as selection criteria in the Zprogram.)
    Thanks & Regards,
    Hegal K Charles
    Edited by: Hegal . K . Charles on Nov 21, 2011 9:34 AM

  • 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

  • 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

  • Mass upload of sales orders in crm

    Hi gurus,
    Could any one help me out in mass upload of sales orders in CRM
    thanks in advance
    Regards
    [email protected]

    Hi Nitin,
    From which system do you want to mass upload Orders to CRM? If its from a connected R3 sysem, you can use Middleware adaptors to do it.
    If your data is in form of files, then you can use an abap program to do the same. If you want to write an ABAP program , do let me know & I could tell you the useful FMs.
    - Alin

  • Mass Generation of Sales Orders via Marketing Projects

    Hi all,
    Is it possible to generete ERP order when using the functionality for mass generation of sales orders via marketing projects?
    cheers Camilla

    Hi Camilla,
    We need to see your requirement by breaking it into two steps. Both are possible.
    1) Generating Mass orders in CRM using the marketing Projects.
    2) Creating ERP order.
    Technically what you want is achievable. Personally i have not done it, but am confident it is possible.
    You may refer to these links to get more info.
    http://help.sap.com/scenarios_bus2007/helpdata/en/47/31a375878f203de10000000a114a6b/content.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-crm/generate-sales-orders-in-mass-based-on-marketing-campaign-crm-60-2943656
    rgrds,
    Randhir

  • Mass Change to sales orders

    Dear All,
    If i have alot of sales orders and i want to carry out new pricing to all of them is there away to carry out mass change to them or i have to change them Individually,
    thanks in advance.

    Dear,
        You can use T. Code ME17 or MASS for mass change in sales order,
        Please go via below step :
        1) Enter T.Code MASS. Select Object BUS2032.--> F8. Select Sales Order Item Data (MASSVBAP). -->F8
        2) Enter Sales Order No. and plant code --> F8
        3) Click on Display All Records
        4) Click on Select field button
        5) Select field which you want to change in selection criteria
        6) Enter new value which you want to replace in place of old field.
        7) And click on carry out a mass change button.
        8) Select column which you want to change.
        9) Save it.
       You can also change your sales order price using this path like --> VA05 ---> Orders -> Edit -> Mass change -> New pricing.
    Regards,
    Sandip

  • 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

Maybe you are looking for

  • US Itouch in the UK?

    hi folks, im off to america in a few days for my holiday, and i am thinking about buying a itouch out there, but i am wondering if i do will it work in the uk? many thanks alex (reko)

  • 720 PN codec comes in "SPED UP"

    Hi, hopefully someone knows this. Please... Shot a project on the HVX 200 in 720 PN (60)? Working on it in post and the sequence auto sets to the codec, however all of the footage plays back in +high speed+. Was hoping it was possible to adjust the s

  • MAPI_E_FAILONEPROVIDER == 0x8004011D when accessing public folders using mfcmapi

    I seem to be getting this error when selecting the public folder in mfcmapi. I'm using the Feb 2014 release of mfcmapi. Code: MAPI_E_FAILONEPROVIDER == 0x8004011D Function CallOpenMsgStore( lpMAPISession, (ULONG_PTR)m_hWnd, lpEntryID, ulFlags, (LPMDB

  • Drawing with an effect other than Alpha Transparency and XOR

    Hello, I'm looking for a way to draw images (Or anything else for that matter) with simple effects other than the Alpha and XOR effects, such as Multiply, Subtract and Bitwise AND. I've realized it has something to do with the setComposite function,

  • ERP Upgrade: Changes in Reporting in new version ECC6.0

    Hi Gurus, We are just in upgrade process from 4.7c to ECC 6.0. During the test we ascertained that there are certain changes happened in the reporting functions und the reports are not showing some necessary fields in new version. For instance the re