Skip to Content

Mass Deletion of Maintenance Plan and maintenance Items

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 06, 2017 at 06:07 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 04, 2017 at 02:11 PM

    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/96a0ce5314894208e10000000a174cb4.html

    Add comment
    10|10000 characters needed characters exceeded