Register Login

Post Goods Receipt for a Stock transport order using an IDoc

Updated May 18, 2018

1. Goods receipt for delivery

a) WMMBXY (WMMBID01, WMMBID02)

The following fields in the segment E1MBXYI must be filled:

EBELN Purchase order number
EBELP Purchase order item
KZBEW Movement indicator = 'B'
POSNR Delivery item (with leading zeros)
VBELN Delivery (with leading zeros)

b) MBGMCR (MBGMCR01, MBGMCR02)

The segment E1BP2017_GM_CODE receives the value GM_CODE = '01'.

In the segment E1BP2017_GM_ITEM_CREATE, the following must be filled

PO_NUMBER Purchase order number
PO_ITEM Purchase order item
MVT_IND Movement indicator = 'B'

In the subordinate segment E1BP2017_GM_ITEM_CREATE1, the following must be filled:

DELIV_NUMB Delivery (with leading zeros)
DELIV_ITEM Delivery item (with leading zeros)

2. Goods receipt for the inbound delivery

a) WMMBXY (WMMBID01, WMMBID02)

In the segment E1MBXYI, no purchase order must be assigned. The fields EBELN and EBELP remain blank. The movement indicator (KZBEW) receives the value 'B'.

In the subordinate segment E1MBXYJ, the following are to be filled:

VLIEF_AVIS Inbound delivery
VBELP_AVIS Inbound delivery item

b) MBGMCR

The segment E1BP2017_GM_CODE receives the value GM_CODE = '01'.

In the segment E1BP2017_GM_ITEM_CREATE, no purchase order must be assigned. The fields PO_NUMBER and PO_ITEM remain blank. The following must be filled:

MVT_IND Movement indicator = 'B'
DELIV_NUMB_TO_SEARCH Inbound delivery (with leading zeros)
DELIV_ITEM_TO_SEARCH Inbound delivery item (with leading zeros)

IDOCs of the message type WMMBXY are updated using the function module L_IDOC_INPUT_WMMBXY. In this module, you can change data using the user exit 'EXIT_SAPLLMDE_002'. Here, use Transaction CMOD to activate the SAP enhancement MWMIDO08 and implement the required changes in the exit function module EXIT_SAPLLMDE_002.


×