Skip to Content
avatar image
Former Member

Error for St. Location while using BAPI BAPI_GOODSMVT_CREATE for non stock PO

Hi,

Can anyone please confirm if BAPI_GOODSMVT_CREATE can be used for posting goods receipt for non stock purchase orders, if not will FM "MB_CREATE_GOODS_MOVEMENT" can be used. Please need urgent help.

This BAPI is working fine with GR for Stock Materials but when used for non stock it asks to enter storage location.

"Error during posting Material document: M7 018 Enter Stor. location"

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 06 at 08:26 AM

    a K in account assignment of a PO is not a guarantee that SAP must not ask for a storage location. The account assignment just controls whether the value is posted to a stock account or to a consumption account.

    The storage location is depending on the customizing of the material type at the time of PO creation.If for example the material type is customized like a UNBW (quantity update yes, value update no) then it will create inventory with the receipt and hence needs a storage location.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 06 at 07:04 AM

    Do you get the same message with MIGO

    • No - correct your call of the BAPI
    • Yes - Check material type with MM03, then qty/value update with OMS2 (is your PO actualy a non-stock PO...)
    Add comment
    10|10000 characters needed characters exceeded

    • So, as written, correct your call of the BAPI, you are not trying to post a movement code 101 but for a K a movement code 161 would be more 'compliant', so check your parameters carefully and the T158* tables that handle the BAPI.