‎2008 Oct 31 11:07 AM
Hi All,
I am using BAPI_MATPHYSINV_CREATE_MULT to create physical inventory documents, i have an issue like.
If iam trying to create a document for 4 materials, in which two of the materials are not satisfying the conditions(are in error), even though BAPI returns the error in the return table, the Physical Inventory Doc.number gets incremented even if the document is not saved.
Please let me know if there is any thing which can be done to avoid this.
Thanks in advance.
Murthy .M
‎2008 Oct 31 12:09 PM
Hello,
Try this way
CALL FUNCTION 'BAPI_MATPHYSINV_CREATE_MULT'
EXPORTING
HEAD = HEAD
MAXITEMS = MAXITEMS
TABLES
ITEMS = ITEMS
RETURN = RETURN
EXCEPTIONS
OTHERS = 1.
‎2008 Oct 31 12:22 PM