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: 

Error Handling for BAPI MB_COUNT_POST_WITHOUT_INV_DOC for MI10 Transaction

damu_a
Explorer
0 Kudos
416

Hi,

Can any one suggest me, how to handle the errors for the BAPI MB_COUNT_POST_WITHOUT_INV_DOC, because this bapi does not have any return table for errors handling? And also suggest any other BAPI which fits for MI10 transaction.

<removed by moderator>

Thanks&Regards,

Damuan.

Edited by: Thomas Zloch on Feb 2, 2012

4 REPLIES 4

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos
197

Any error message should be returned as part of export structure S_EIKPF... take a look at the last 7 fields.

damu_a
Explorer
0 Kudos
197

Hi Dear,

Your answer is very helpful, thanks..!!

But when i am testing with the EIKPF structure, neither error is populating in EIKPF nor the records are posting in MI10. Could you please guess what would be the problem?

Below are the fields that i am passing through this BAPI

1)Document date 2)count date 3)plant 4)storage location 5)item number 6)material code 7) entry quantity

Thanks&Regards,

Damuan.

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos
197

It's not easy to figure out the exact issue without debugging your exact scenario... but first thing first: did you call BAPI_TRANSACTION_COMMIT (or did you use COMMIT WORK) following MB_COUNT_POST_WITHOUT_INV_DOC?

0 Kudos
197

Yes, i used BAPI_TRANSACTION_COMMIT and also did the debugging. I found everything is filled properly in debugging. But i am not getting any error message in export structure S_EIKPF.

Regards,

Damuan.