Skip to Content
0
Former Member
Jun 08, 2006 at 04:45 PM

BAPI_GOODSMVT_CREATE

118 Views

Hi !

I used the BAPI_GOODSMVT_CREATE and i got the following

error :

"Enter a sales order for special stock E"

The parameters i export for the bapi are :

LS_GOODSMVT_ITEM-MATERIAL = LS_LIPS-MATNR.

LS_GOODSMVT_ITEM-PLANT = LS_LIPS-WERKS.

LS_GOODSMVT_ITEM-STGE_LOC = LS_LIPS-LGORT.

LS_GOODSMVT_ITEM-BATCH = LS_LIPS-CHARG.

LS_GOODSMVT_ITEM-MOVE_TYPE = '411'.

LS_GOODSMVT_ITEM-SPEC_STOCK = LS_MSKA-SOBKZ.

LS_GOODSMVT_ITEM-SALES_ORD = LS_LIPS-VGBEL.

LS_GOODSMVT_ITEM-S_ORD_ITEM = LS_LIPS-VGPOS.

LS_GOODSMVT_ITEM-QUANTITY = LS_MSKA-KALAB.

LS_GOODSMVT_ITEM-ENTRY_QNT = LS_MSKA-KALAB.

LS_GOODSMVT_ITEM-BASE_UOM = LS_LIPS-MEINS.

S_GOODSMVT_HEADER-PSTNG_DATE = SY-DATUM.

S_GOODSMVT_HEADER-DOC_DATE = SY-DATUM.

S_GOODSMVT_HEADER-PR_UNAME = SY-UNAME.

CONCATENATE 'AUTO.CREATED W/TRAN '

SY-TCODE

INTO LS_GOODSMVT_HEADER-HEADER_TXT

LS_GOODSMVT_CODE-GM_Code = '04'.

As we can see i transferred the sales order to the bapi.

So what is the problem ? How can i fix the problem ?

where can i find more detail explanation about the problem ?

thnks

moshe