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


Dear Expert,

I've tried to use BAPI_GOODSMVT_CREATE function to handle the mass GR for production order. Pls help the following problem regarding about "BAPI_GOODSMVT_CREATE".

That's what I've used for some parameters, and pls navigate me if I had done a mistake.

gmcode-gm_code = '02'. "02 - MB31 - Goods Receipts for Prod Order

loop at pcitab.

itab-move_type = pcitab-mvt_type.

itab-mvt_ind = 'F'.

itab-plant = pcitab-plant.

itab-orderid = pcitab-prod_doc.

itab-entry_qnt = pcitab-qty.

itab-move_batch = pcitab-batch.

itab-move_stloc = pcitab-stge_loc.

append itab.


call function 'BAPI_GOODSMVT_CREATE'


goodsmvt_header = gmhead

goodsmvt_code = gmcode

  • TESTRUN = ' '


goodsmvt_headret = mthead




goodsmvt_item = itab


return = errmsg.

With the above parameters, I've got the following message:

Error in function

Order 100000841 not found or not permitted for goods movement

One the other hand, I'd used the same data to simulate MB31 transaction and it was OK and return a material doc. number. Pls tell me what wrong with my code. With many thanks!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 03, 2007 at 01:20 PM

    1. Hi first check if the manual GR for the order is possible through mb31 or co15 or co11n.

    2. Because the GR posting can be errored if the status of the order is not correct .

    Ex: if the order is not yet released then you cannot make the GR for the order.

    Let me know the feedback


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi DsK,

      The order was confirmed and went through MB31 manually and it was OK. Even I did try to put the parameters in BAPI_GOODSMVT_CREATE function by using SE37, it also returned a material doc. to me. Pls anyone can help me on this. Thanks anyway!

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.