Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI to delete the physical inventory documents.

Former Member
0 Likes
2,318

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.

1 REPLY 1
Read only

Former Member
0 Likes
1,115

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 MI02

Edited by: Raj on Jul 30, 2010 5:01 PM