Application Development and Automation 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: 
Read only

BAPI_GOODSMVT_CREATE

Former Member
0 Likes
1,174

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

6 REPLIES 6
Read only

former_member181966
Active Contributor
0 Likes
935

<b>"Enter a sales order for special stock E"</b>

<b>LS_GOODSMVT_ITEM-SALES_ORD = LS_LIPS-VGBEL.

LS_GOODSMVT_ITEM-S_ORD_ITEM = LS_LIPS-VGPOS.</b>

pl..make sure above filds have values.

Thanks

SK

Read only

0 Likes
935

Hi Saquib !

First thanks for the answer.

The following fields:

LS_GOODSMVT_ITEM-SALES_ORD = LS_LIPS-VGBEL.

LS_GOODSMVT_ITEM-S_ORD_ITEM = LS_LIPS-VGPOS.

have values and although i get the error mesage

"Enter a sales order for special stock E"

Please tell me how else can i solve the error ?

thanks

moshe

Read only

0 Likes
935

Hi,

I am also facing the same problem in 413 'E' in Bapi_goodsmvt_create.

Please share your knowledge on this.

How to solve this issue.

Expecting your reply.

Thanks

Shankar

Read only

0 Likes
935

Hi !

Also try the fields

VAL_SALES_ORD

and

VAL_S_ORD_ITEM

for BWA 413

Regards

Rainer

Read only

Former Member
0 Likes
935

Keep a Break point at that line and check if values of the sales order and item are really populated.

Regards,

Ravi

Read only

Former Member
0 Likes
935

Hi !

I think you should use the fields:

VAL_SALES_ORD

and

VAL_S_ORD_ITEM

for BWA 411

Regards

Rainer

Some points would be fine if that helped....