cancel
Showing results for 
Search instead for 
Did you mean: 

PPM Mass deletion

thamizhchelvan_gunasekara
Active Participant
0 Kudos

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.

Regards'

Thamizhchelvan G

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

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

----


Regards,

Senthilrajan

Answers (1)

Answers (1)

tibor_nagy
Contributor
0 Kudos

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.

Regards,

Tibor