04-12-2010 5:08 PM
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!
04-12-2010 8:23 PM
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'.
04-12-2010 8:23 PM
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'.
04-13-2010 7:29 AM
hello,
exactly it is.
I have already managed to achieve this problem yesterday.
Thank you very much.