‎2010 Oct 11 6:11 AM
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
‎2010 Oct 12 10:51 AM
Hi,
Do you have number range object correctly set.
Check trx OMBT
Simo
‎2010 Oct 12 10:51 AM
Hi,
Do you have number range object correctly set.
Check trx OMBT
Simo
‎2010 Oct 12 11:11 AM
Before calling Second BAPI check whether document has been created in IKPF table with the Fiscal Year which is passed in the BAPI.
‎2010 Oct 13 7:38 AM
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.
‎2011 May 16 2:20 PM
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