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
------------------------------
Original Message:
Sent: 04-18-2019 07:47
From: Don Martin
Subject: MI02 Change Physical Inventory Document
All,
I'd like to use Winshuttle to do a mass delete of materials using the MI02 transaction. The issue is that every Physical Inventory Document has a different number of materials which were counted. It would be ideal to be able to pass a number to Winshuttle and have it execute the steps necessary to delete the materials.
If anyone has been successful, I'd appreciate your solution.
------------------------------
Don Martin | Supply Chain Analyst
General Motors Company (GM) | 586-335-0280
------------------------------