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

Issue while creating PI document BAPI_MATPHYSINV_CREATE_MULT

Former Member
0 Likes
645

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

2 REPLIES 2
Read only

Former Member
0 Likes
536

Hello,

Try this way

CALL FUNCTION 'BAPI_MATPHYSINV_CREATE_MULT'

EXPORTING

HEAD = HEAD

MAXITEMS = MAXITEMS

TABLES

ITEMS = ITEMS

RETURN = RETURN

EXCEPTIONS

OTHERS = 1.

Read only

0 Likes
536

Hi,

Not working, the same issue exist.

Regards

Murthy .M