Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_GOODS_MVT Problem MB1B

Hello,

I need some help please

I use BAPI_GOODSMVT_CREATE

gmhead-pstng_date = sy-datum.
gmhead-doc_date   = sy-datum.
gmhead-pr_uname   = sy-uname.
gmcode-gm_code    = '04'.   "MB1B

BAPI_ITEM-MATERIAL   =  <out>-matnr.
BAPI_ITEM-PLANT      =  '5314'.
BAPI_ITEM-STGE_LOC   =  '0040'.
 BAPI_ITEM-BATCH      =  '0000345632.
BAPI_ITEM-MOVE_TYPE  =  '412'.
BAPI_ITEM-SALES_ORD  =  '1753400142'.
BAPI_ITEM-S_ORD_ITEM =  '000010'.
BAPI_ITEM-SPEC_STOCK =  'E'.
BAPI_ITEM-ENTRY_QNT  =  <out>-menge.

it is showing an error message:

M7 073 " Enter a sales order for special stock 'E'

but I have passed parameter: SALES_ORD and S_ORD_ITEM !!

Beforehand thanks!

Former Member
replied

Hi,

The fields are not correct. Fields for Sales Order and Item are VAL_SALES_ORD and VAL_S_ORD_ITEM not SALES_ORD and S_ORD_ITEM.

So you just replace

BAPI_ITEM-SALES_ORD  =  '1753400142'.
BAPI_ITEM-S_ORD_ITEM =  '000010'.

with

BAPI_ITEM-VAL_SALES_ORD  =  '1753400142'.
BAPI_ITEM-VAL_S_ORD_ITEM =  '000010'.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question