01-02-2008 5:03 PM
I am writing a cleanout program that will delete a piece of equipment off of the system. I have several tcodes that I am doing via BDC. When it comes to IP02, I do not want to deactivate the entire maintenance plan if the item I am deleting is not the only item on the plan. I would like to delete the specific item only. However, IP02 does not allow selection of the line by item number, it is a visual selection.
Does anyone know of another t-code or a hidden way in IP02 to select a specific item number from the list. When I generate a BDC for a sample it forces me to select a line based upon a visual inspection. Has anyone automated this before? I know in SD you can select a sales order line by part or other field.
Thanks
Jeff
01-10-2008 4:02 PM
I was able to gather the entries that I would have into an internal table using function module IWP1_READ_ITEMS_FOR_PLAN_DB. I then sorted the entries by line item (wppos) and selected the entry that I needed and used the sy-tabix as the line number in the BDC.