Skip to Content
author's profile photo Former Member
Former Member

BAPI_GOODSMVT_CREATE

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2006 at 04:48 PM

    <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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 08, 2006 at 04:58 PM

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

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2006 at 04:36 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.