Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_GOODS_MVT Problem MB1B

Former Member
0 Kudos

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!

1 ACCEPTED SOLUTION

asik_shameem
Active Contributor

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'.

2 REPLIES 2

asik_shameem
Active Contributor

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 Kudos

hello,

exactly it is.

I have already managed to achieve this problem yesterday.

Thank you very much.