Skip to Content

PPM Mass deletion

Hi Guys,

When i run /SAPAPO/PPM_DEL - Mass Deletion of Plans and PPMs i am getting the result PPM number and name usage ,order and locked status ,system it is not deleting the PPM .

Pl help me to delete the PPM in mass through background job.


Thamizhchelvan G

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 12, 2009 at 08:01 AM


    Pl try the program /SAPAPO/MASS_DELETE_PPM. A custom program can also to bukit to suit your needs by taking some code from this program. Please take a look at the 'Form delete_orders' for more details.


    *& Form delete_orders


    • the maintenance plans with orders was divided into two steps

    • because of it is good to access Livecache only one times,

    • but for BAPI fm we don't have enough information in return table

    • so we have to delete each plan one by one.


    • 1 step - delete orders for selected plan

    • 2 step - delete selected plans (at this time without orders)

    • update screen 1 and screen 2




    Add comment
    10|10000 characters needed characters exceeded

  • Oct 12, 2009 at 08:30 AM

    Dear Thamizhchelvan G,

    In APO, /n/SAPAPO/PPM_DEL checks the product and location for every order that is assigned to the PPM you want to delete. It seems that the material is still used so you get a lock: e.g. you still have open LC orders. In this case please delete the orders,In R/3 set these orders as 'technical completion' (or delete).

    If there is active integration model orders should be removed from APO and you should be able to delete PPMs.

    Make sure that you removed all the dependencies for PPM.

    First you please find order number in the whereused list for the product and location combination.

    /n/sapapo/mat1 >

    Mainmenu > extras > whereused list.

    Also please make sure that nobody works with PPMs in the same.

    I hope this helps.



    Add comment
    10|10000 characters needed characters exceeded