2010 Jul 30 12:23 PM
Is there any BAPI/FM to delete the physical inventory documents. Or MI02 is the only way to delete the document.
I want to prevent recording the BDC and do it by BAPI.
Is there any BAPI/FM to delete the physical inventory documents. Or MI02 is the only way to delete the document.
I want to prevent recording the BDC and do it by BAPI.
2010 Jul 30 12:27 PM
Hi MUkesh,
If you would like to delete multiple documents then it is not possible. Check OSS note 849742.
Please find the Note details below.
Summary
Symptom
You want to delete several physical inventory documents, but this involves too much manual work, as the documents must be deleted individually in MI02.
Other terms
MI02, delete physical inventory documents, SHDB, recording
Reason and Prerequisites
In the standard version, you can only delete inventory documents individually using Transaction MI02. A mass transaction or BAPI currently does not exist, and none is currently planned.
Solution
You can use standard functions to create a program that can delete several physical inventory documents at once. To do this:
1. In Transaction SHDB, create a new recording using MI02.
2. Also in SHDB, create a function module from the recording.
3. Create a program based on this function module. Define the selection screen based on your needs. You can also create your own transaction for the program, if necessary.And I see the only way to delete the documents as per my knowledge is just MI02Edited by: Raj on Jul 30, 2010 5:01 PM