Skip to Content
0

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

Mar 06 at 06:38 AM

18

avatar image
Former Member

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"

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jürgen L
Mar 06 at 08:26 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Raymond Giuseppi
Mar 06 at 07:04 AM
0

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...)
Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

MIGO is working fine.

Material is with qty/value update but PO is made using account assignment K, so material will be be directly consumed at the time of Goods Receipt however the BAPI is asking to enter Storage Location.

0

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.

0