cancel
Showing results for 
Search instead for 
Did you mean: 

Mass Deletion of Maintenance Plan and maintenance Items

sp0123
Participant
0 Kudos

Dear Experts

Is there any way to delete(Flush out) all the Maintenance Plan and maintenance items from the system?

There are around 450 Plans and 1200+ Items. While running the LSMW, due to some error, extra 521 items got created. So I want to know, if there is any way to flush out all the data (Plan and items) from the system, so that I can create them again.

Or else suggest me an alternate way of correcting this

Accepted Solutions (1)

Accepted Solutions (1)

MTerence
Active Contributor
0 Kudos

Hi,

Use below steps

Archive PM data

Maintenance Plan

1. Run program RIARCMPL via SE38 transaction and enter in the Maintenance Plan. Set delete flag in maintenance plan
2. Run program RIARCMPV via SE38 transaction and enter in the Maintenance Plan.
3. Then execute program RIARCMPA via SE38 transaction, which will create a file.
4. Execute program RIARCMPD, and select the session from above step 2, after executing which will delete the Maintenance Plan

Regards

Terence

sp0123
Participant
0 Kudos

Hi Sir

I have followed the steps which you have mentioned above. I got stuck in the 3rd step, RIARCMPA. I am getting an error. Please find the file attached. Kindly suggestcapture.jpg

MTerence
Active Contributor
0 Kudos

Hi,

It looks like the path location, it was long.

What are the selection parameters you have used, below are the parameters i have used.

Regards

Terence

JL23
Active Contributor
0 Kudos

It is not possible to store archive files in a local directly, it has to be a directory in your SAP system

sp0123
Participant
0 Kudos

Hi

I have followed the same step. I have given the Maintenance Plan and Archive+delete maint plans only as shown in the screenshot above. But still getting this error. Please suggest

sp0123
Participant
0 Kudos

Hi Jurgen

Could you please elaborate. I need to delete all the Maintenance Plan from the system.

JL23
Active Contributor

before you can archive you have to do your archive customizing, and yours is just wrong as it points to C:/temp

which is a local directory on your PC, which cannot be reached in a background job. so you have to use the transaction FILE (usually a task of the basis folks) and change the storage to store the archive in your application server.

sp0123
Participant
0 Kudos

Hi Jurgen

Is it possible for you to send a screenshot of where these storage is defined? What is the t-code for that?

MTerence
Active Contributor
0 Kudos

Hi Shiv,

These file links will be updated by Basis Team. Contacted them they will be able to resolve it. Else you need to follow the link which Jurgen has sent

Regards

Terence

sp0123
Participant
0 Kudos

Hi Jurgen

Thanks a lot. I'll try this and let you know

sp0123
Participant
0 Kudos

Hi Sir,

I'll try all these steps.

Just a small Clarification. After doing Archive+ Delete, all the Maintenance Plans would get deleted? Can we again load the same plans (correct data) through LSMW?

MTerence
Active Contributor
0 Kudos

Yes, you can.

sp0123
Participant

Hi Jurgen and Maria

Thanks a lot for your help. My problem got resolved.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Shiv,

Make sure none of the plans was scheduled no call object is generated from them.

Currently there is no transaction which allows for mass setting of status in the items and plans.But you can try checking LOG_EAM_CI_7 business function. This function brings in mass change options in maintenance plans and items but validate if you can mass change the status as well

You might have to write an SHDB program to mass set these to deletion and run the archiving program. Below link has some details. More similar links can also be found online.

https://help.sap.com/viewer/8bb9b01a5c0547139d0bfc100aad6d9c/6.02.19/en-US/96a0ce5314894208e10000000...