How to mass set deletion flag for the production order

Hi Expert,
  do you know which transcation code or program is used to mass set the deletion flag for production order?
thank you in advance!

Hi,
http://www.sap-img.com/production/how-to-delete-old-production-orders.htm
Note that CO78 is the start of the Archive process.  We are not using Archiving yet but the initial process fits the bill for what we need to do as mentioned in the original note.
Decide the range of orders you want to delete.  This range will be used in the program variant. Note that we will be running CO78 many times because of the number of orders involved. 
Running CO78 calls program PPARCHP1 and this involves the use of a Variant where the parameters for selection etc. are set. 
First of all, create the variant via SE38 for PPARCHP1. 
Enter details for number range, order type, plant and set deletion flag. Flag Detailed log and set this to go to Spool when running. Save the variant. You can also force the job to run in background at this point (which I would recommend) via menu line Variant --> Attributes.  Also here you can flag order number, order type and plant to be required fields. 
Run CO78
Press the first button - deletion flag/deletion indicator.
Choose the variant you have just created.  Press "Maintain" to update the selection range on subsequent runs. Save changes and return to initial screen.
Press Start date to set date and time for job to run as per any background job. Icon will turn Green.
Press Spool Params to set save output in Spool Q rather than print immediately. Icon will also turn Green.
Press Execute and job can be tracked via SM37.
Details of deleted orders and errors will appear in the Spool.
Rerun as many times as you need with relevant order ranges till all required orders are deleted.
Hope this will resolve your issue.
Regards,
Naveen.

Similar Messages

  • BAPI to Set Deletion Flag for CO Production Orders

    Hi All,
    Iu2019ve a requirement to Set the deletion flag of a Production Order [Order Category u2013 4 (CO Production Order)].
    For this I tried BAPI u2018BAPI_PRODORD_SET_DELETION_FLAGu2019 but unfortunately it works only for Order Category u2013 10 (PP Production Order). Also all other standard transactions and programs work only for Order Category u2013 10 (PP Production Order).
    Is there any other BAPI which could work for Order Category -4 ? I want to keep BDC as the last option.
    Any help in this regard would be great.
    Thanks!
    Sushil.

    It also works only for Order Category u2013 10 (PP Production Order).

  • Set Deletion Flag for the Preventive Maintenance Order

    Hi,
    I need to set the Deletion flag for the Service Order. Deletion flag available in the screen disabled. Please suggest.
    also I need know under which I shall be able to set such deletions.
    Thank you,
    Vijaya

    Hi Vijaya,
    Pls refer the help.sap.com related to deletion flag for PM/CS Orders. Some of the check criteria mentioned below for your reference.
    Before a deletion flag is set, the following requirements must be met:
    u2022 Any manually added purchase requisitions or purchase orders for the order must be deleted first.
    The balance of the actual costs for the order must be zero. This means that the deletion flag can only be activated if the order has already been settled, or if no actual costs were incurred for the order.
    u2022 Commitments relating to the order must be deleted.
    u2022 Unprocessed and incorrect goods movements must be processed.
    When the deletion flag is activated, all remaining capacity requirements are deleted. A deletion indicator is also set in any open material reservations.
    An order that has been flagged for deletion cannot be changed. However, you can cancel the deletion flag.
    Thanks
    Siva
    Edited by: sivakumar kasi on Sep 3, 2009 12:09 PM
    Pls set the Order as Techically completed (TECO) and check the deletion flag set.
    Thanks
    Siva

  • How to delete or activate the deletion flag for the sales order line item

    Hi All,
    I  have one Cust order & with referance to that cust order one production order is created . The production order user has done the Goods issue with 261 movement type  & GR wi 101 before 4 months back , & he has reverse  the GR  with 102 on todays date . but in materila master the  variable prize is maintain thats why it is showing  a differance in the cost .
    User want to delete the Production order as well as the custemer order From MDO4 , So we have make the Production order TECO & save , it is gone form the MD04 but the Custumer order still there . It is not allow us to cancell or reject . We have tried to maintain the reason for rejection but it showing the message that you can not activate the deletion flag for the order .
    Could you please Help me to find out the way how can i delete the custemer order ?
    Thanks In advance
    Regards
    Piyush

    W ehave Settele that order & then activate the deletion flag for the order & then cancel the sales order.

  • Set deletion flag in the maintenance order

    Hi all,
    Am not able to set the deletion flag from the maintenance order, the :set: button is not active. can anyone help me in this regards?
    Or is there any tcode for setting deletion flag to maintenance orders?
    Thanks
    Anish

    hi
    i think it is probably authorization issue ie you don't have the authorization to put the deletion flag
    or check whether you have technically completed the order ,if not try to TECO and then try
    regards
    thyagarajan

  • Mass revoke deletion flag for Production order

    Hi all,
    As we know, we can use program PPARCHP1 to mass set deletion flag for production order.
    now, i would like to revoke deletion flag, i had been use tcode: co02  Functions -> Deletion Flag -> Revoke to do it.
    but, i have lots of production order, is there any standard program could mass revoke deletion flag?

    Dear there is no standard functionality or transaction is available to revoke the deletion flag the only option is you have to do it manually one by one order through the option which you already mentioned.
    Cheers
    KK

  • Cannot set deletion flag for order

    Dear Experts,
    I am trying to set deletion flag for order XXXX,
    i am getting Error Massage " You cannot set deletion flag for order XXX (see log) Message no. CO432"
    my order status is REL  CNF  DLV  PRC  GMPS MACM OPGN SETC
    How can i set deletion flag for order.....
    Please give your suggestion.
    Thanks for support.......

    Dear,
    Order status is REL CNF DLV PRC GMPS MACM OPGN SETC
    And, I have checked log u201CThere are no entries in the deletion flag logu201D
    There no balance- I have not done any confirmation (Total Qty 1000 EA, Delivered Qty 0 EA)
    You have done confirmation and delivery has happened thats why the status shows "CNF & DLV" You need to complete your settlement.
    Check and revert back.
    Regards,
    Alok Tiwari

  • Prerequisites required to set Deletion Flag for an Order

    Hi Experts,
    I need to know what are all the Prerequisites required to set Deletion flag for an Order.
    i.e. can i set deletion flag for any existing order?
    Kavin

    Hi Kevin,
    System will allow you to set deletion flag if,
    - No Goods Movement is carried out.
    - No Confirmation has has been carried out.
    - Conclusion of point 1 and 2 is order should not carry any cost.
    - If In process Inspection is active then Result Recording should be not started.
    - In case of Process Order CRCR (Control Recipe Created) status is not allowed.
    Regards,
    Dhaval

  • What are the Pre-requisite to set Deletion Flag for Maintenance Order ?

    Hi Gurus,
                  Pls give me what are the pre- requisite to set the deletion flag.
                  I want to set deletion flag to some Maintenance Orders which are with notification, but deletion flag - SET,RESET Indiacaors are inactive.    
                  Following are my observations-
                  1) Order is not yet released.
                  2) No actual Cost is with the order.
                  3) No PR and POs are with the Order.
    Pls guide me.
    With best regards,
    narendra

    hi
    you can put the deletion flag only when the order has the status CLSD or the balance of the order must be Zero
    you can refer the following link
    http://help.sap.com/saphelp_47x200/helpdata/en/8d/3e65a0462a11d189000000e8323d3a/content.htm
    regards
    thyagarajan

  • Deletion flag for the PM assembly

    Hi ALL,
    How to set the deletion flag for the PM assembly ?
    If possible to set the deletion Flag then whether it will be displayed in structural list transaction such as IH01 or IH06?
    Kindly reply.
    Surya

    Hi Surya,
    In CS02 you are deleting Material BOM and not PM Assembly (which is defined as material).
    To delete PM Assembly you have to use MM06.
    To view in IH01 you have marked BOM explosion tick and Only PM assemblies tick mark is selected.
    To view in IH06 you need to select FL line item in out put and then Structure >>>> Hierarcy List.

  • Standard/Custom program to set deletion flag for Purchase Requistions

    Hi all,
    If any of you know the Standard/Custom program to set deletion flag for purchase requistions, please let me know. It would be of great help.
    Thanks in advance,
    Karthik

    Hello
    Bapi BAPI_REQUISITION_DELETE will help you.

  • How do I set a reminder for the last day of every month

    Have I missed something? But how do you set a reminder for the last day of every month to recurr indefinatley in iOS6? Sorry if this is really simple but I just can't seem to work it out. Any help gratefully received.

    Hey Mattye88 not sure if you have seen but actully you can do this, but for some reason you have to use Siri.  If you bring up Siri and say "set a reminder ever 4 weeks from next wednesday to check the gas meter" it will set one and it will work just fine, I have reminders to water a Bonsai every three days and it works fine it just shows as custom repeat on the user interface.  Alas it seems you can not use Siri to set one for the end of the month though which is why I am in this threed.  Still hope it helps you to know how to sort this problem atleast.

  • Current operation for the product order

    how do i determine a current operation for the production order? in what table shall i get this indicator? ive been searching in afru and i cant seem to find it?

    In your production order, there might be a sequence of operations. Each operations will be having the status. Based on the confirmation, the operation status will be updated. If the order status is CNF means it is completed. If the status in not CNF, then it is not completed. Based on the operation sequence, you can find out the current operation in your production order.
    This information you can get from the table AFVG. AFVG table is for order operation details.
    Hope this clarifies your doubt.
    Regards,
    V. Suresh

  • Open the reservation for the Production order

    Hi,
    I have post the GI for Production order MB1A with movement type 261 from 100 peaces components. I would like to cancel a partial quantity of components from this posting (about 30 peaces). After cancel it the reservation for the production order has to be open for 30 peaces of components.
    I've canceled it through MB1A and mtype 262 but the reservations weren't open and in the PO (component overview there is always the sign"the Final Issue for This Reservation").
    Which T.code and mtype could I use.
    Thanks
    Dede

    Hi,
    Have you cancelled the movement (of 30 pieces) by selecting the "with reference" option from the menu?
    If not, then reverse the current cancellation document. Then again cancel the 261 movemtn by selecting the with refernce button from the menu. It will sove the problem.
    Check & revert.
    Regards,
    Rohit.

  • Set deletion flag for Order before releasing the order

    Hi all,
    can we set the Deletion Flag for an order before release of that order.
    Regards,
    Bhanu.

    Hi,
    You can lock and unlock order without releasing.
    In case of Un execute we can not release order further.
    Path:
    ORDER-FUNCTION-LOCK
    order-function-unlock
    Regards,
    Sudhakar

Maybe you are looking for

  • Script that create Layerset with name from layer?

    Hello! This should be easy for someone who know whet is doing so not me:P I want script to automatically create layerset from each selected layer, name it as that layer and place that layer in it I found old script that do that but only normal layer

  • How to listen to radio when the iPod nano is docked?

    On the iPod, the antenna for the radio is the cable of the earspeakers. However the earplug is on the same side as the docking plug. Is there any accesoire for that or should I make my own design?

  • How to customize  sample programs

    Hi professionals, I am a novice to java card, i have downloaded java card kit 2_1_2 and tested all the sample application using the in-built developer guide. Now, i am customizing the sample applications; Only for wallet, i found some reference artic

  • Help - please. Can not authorize my Galaxy Tab !!!

    I have talked to 3 different cust. service reps. and they have not been able to help other than sending me to this forum. Can someone help me getting my Galaxy Tab 10.1 authorized? I have downloaded ADE to my laptop, and authorized that computer. I w

  • Credit Management not activated in Delivery Order

    Hi, I've made relevant configurations in SPRO such that during the creation of sales order, credit management is activated. A warning message popup to warn user of the credit exceeded. However, during delivery order creation, such warning message doe