Michael,
Thanks so much for your ideas. Fortunately, my business customer created all of their PI documents with 333 items for counting. Their problem was the population of items to be counted was incorrect and the document numbers needed to be deleted. In our instance of SAP, the MI02 transaction requires clicking on each item and then the delete button. Once all items are flagged, then once saved the document is deleted.
That said, we were able to put together a script to deleted the PI documents. Thanks again.
Donald R. Martin
SAP / IMM Operations and Transformation

Mobile : 586-335-0280
CONFIDENTIALITY NOTICE:
This message and any attachments relate to the official business of General Motors and are proprietary to General Motors. This e-mail is intended for the above-named persons(s) only and is confidential, proprietary and/or legally privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on this information is strictly prohibited. If this message has come to you in error, please immediately notify the sender by telephone or return e-mail and delete the original transmission and its attachments without reading or saving in any manner.
------Original Message------
You can get the number of lines for each physical inventory document from table ISEG.
Once you have that, you can create a script that uses inventory document number and line number to delete each line. Inside MI02 you can go to "Edit" then "Position Cursor" to get to the line number, then "Edit" and "Deletion Indicator On/Off" to set the flag and save the document.
I have to ask though, it looks like setting the deletion flag for each line in an inventory document deletes then entire document. If that's the case, why not just do that?
------------------------------
Michael Shaw | Master Data Analyst
Southeastern Mills, Inc. | 706-291-6528
------------------------------