Skip to Content
author's profile photo Former Member
Former Member

Issue while creating PI document BAPI_MATPHYSINV_CREATE_MULT

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 31, 2008 at 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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.