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

Problem in MI04 BAPI

Former Member
0 Likes
1,397

Dear all,

I am trying to do physical inventory correction.

My program has BAPI's for MI01, MI04 AND MI07.

Bapi for mi01 is executing successfully and creating the document number say 100000399.

then even after bapi_transaction_commit and commit work and wait and wait for 5 seconds.

when it comes to MI04 Bapi it is throwing error

'Document 100000399 does not exist in calendar year 2010'

I know this error will come when document number 100000399 does not exist.

any one has idea about it?

Bapis i am using

BAPI_MATPHYSINV_CREATE for MI01

BAPI_MATPHYSINV_COUNT for MI04.

Regards,

Kiran

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
877

Hi,

Do you have number range object correctly set.

Check trx OMBT

Simo

4 REPLIES 4
Read only

Former Member
0 Likes
878

Hi,

Do you have number range object correctly set.

Check trx OMBT

Simo

Read only

Former Member
0 Likes
877

Before calling Second BAPI check whether document has been created in IKPF table with the Fiscal Year which is passed in the BAPI.

Read only

0 Likes
877

Thanks for your replies,

I solved it, i have placed a conversion routine function module when the document number

generated in the first BAPI.

Regards and Best Wishes.

Read only

0 Likes
877

Hi kiran,

Can you provide the code of this program as I am looking for the same. There is a requirement in our company where the physical inventory has to be done through flat file. Similarly with the MI04 transaction also. I am new to BAPi and hence finding difficult to buld the program. Kindly provide the code for the same.

Thanks in advance.

Regrads,

Praveen