Skip to Content
avatar image
Former Member

Idoc error 51:CODE is not supported by BAPI2017_GOODSMVT_CREATE

Hi,

I'm doing the file to idoc scenario for inbound Goods Receipt with respect to a Purchase Order.

In ECC 6.0, Partner profile, inbound parameters:

Message Type: MBGMCR

Basic type MBGMCR03-Post Goods Movements with MB_CREATE_GOODS_MOVEMENT

Released since Release 700

Process Code: BAPI

I've created a o/b structure & mapped only below fields.

E1BP2017_GM_HEAD_01 : BAPI Communication Structure: Article Document Header Data

PSTNG_DATE : Posting Date in the Document

DOC_DATE : Document Date in Document

REF_DOC_NO : Reference Document Number

E1BP2017_GM_ITEM_CREATE : BAPI Communication Structure: Create Article Document Item

STGE_LOC : Storage Location

MOVE_TYPE : Movement Type (Inventory Management)

ENTRY_QNT : Quantity in Unit of Entry

ENTRY_UOM : Unit of Entry

PO_NUMBER : Purchase Order Number

PO_ITEM : Item Number of Purchasing Document

NO_MORE_GR : "Delivery Completed" Indicator

After idoc generation it is giving status error,

51:Application document not posted

CODE is not supported by BAPI2017_GOODSMVT_CREATE

How to fix this... pls guide on this.

Regards,

Balaji

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 30, 2008 at 02:09 PM

    Hello Balaji,

    I think what you are missing in MBGMCR03 is the following:

    Segment E1BP2017_GM_CODE

    Field GM_CODE

    The value in this field should be '01' for Goods receipt for purchase order.

    Please try this and let me know if this does not solve your issue.

    Kind regards,

    Johan Wigert

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 30, 2008 at 02:22 PM

    Hi,

    In ECC - Tcode We30 & We60

    Basic type -MBGMCR03 and look fo all the mandatory fields and check whether you are passing values to it from XI

    Regards

    Agasthuri Doss

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 30, 2008 at 08:34 AM

    Hi Balaji,

    When you are using a BAPI to post the GR then why do you want have an IDOC in between. You have a standard BAPI to post the GR document and the bapi is BAPI_GOODSMVT_CREATE.

    You can design your custom code in such a way that read the data from the file and pass the necessary parameters to that bapi and moreover whatever parameters you have passed to the earlier bapi hold good for this as well.

    But if you are very keen on using the idoc concept then you the following details:-

    Basic Type :- WMMBID01 or WMMBID02

    Message Type :- WMMBXY

    Process Code :- WMMB

    The above combination holds good for posting a GR using IDOC concept.

    Thanks,

    Mahesh.

    Add comment
    10|10000 characters needed characters exceeded