cancel
Showing results for 
Search instead for 
Did you mean: 

how to mass set deletion flag for the production order

Former Member
0 Kudos

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!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Use transaction CO78.

Here use object name as PP_ORDER. Create a variant. Enter the order numbers in the variant. Save it. Enter the variant name and user name. Maintain the start date parameters. Execute.

Hope useful, if so reward points and close this.

Rgds

ram

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ALL,

thank you for your help!

I have tested, if the deletion indicator is not sleected, you can maunally revoke the deletion flag.

thanks!

former_member196398
Active Contributor
0 Kudos

Xioliu,

Your thanks is accepted in the form of points. Please reward your points for answers which helped you.

Regards,

Prasobh

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Naveen,

thank you for your information. but I have another consider

if I use the CO78 to set the deletion flag for the production order, can I remove this indiciator for the production order?

because of some reason , for the deleted production order , it can be recover sometimes.

thanks!

former_member196398
Active Contributor
0 Kudos

Xioliu,

You can deactivate the deletion flag manually order by order, no mass revoking is possible.

If you set deletion indicator revoking is not at all possible even manually.

Regards,

Prasobh