Skip to Content
0
Former Member
Sep 11, 2007 at 11:06 PM

0MATERIAL Load issue

22 Views

Hi:

I added 2 new fields as an attribute on 0MATERIAL. One field has a length of 60 char and second field has length of 20 characters.

I have following code in start routine and then transfer routine for each attribute.

Start Routine of transfer rule for 0MATERIAL.

IF G_TBL_FILLED <> 'Y'.

G_TBL_FILLED = 'Y'.

SELECT * FROM /BIC/AZGOPEO5700

INTO TABLE I_NUM.

SORT I_NUM BY MATERIAL.

ENDIF.

Transfer routine for attributes of 0MATERIAL

IF TRAN_STRUCTURE-MTART = 'FERT'.

READ TABLE I_NUM WITH KEY MATERIAL = TRAN_STRUCTURE-MATNR BINARY

SEARCH.

IF SY-SUBRC = 0.

RESULT = I_NUM-/BIC/ZPLMIDNTR.

ENDIF.

ENDIF.

Second field with 60 char length has following code.

IF TRAN_STRUCTURE-MTART = 'FERT'.

READ TABLE I_NUM WITH KEY MATERIAL = TRAN_STRUCTURE-MATNR BINARY

SEARCH.

IF SY-SUBRC = 0.

RESULT = I_NUM-/BIC/ZIDNTRNAM.

ENDIF.

ENDIF.

The extraction gets stuck on the update for the second attribute.

Any idea why system is behaving in such manner?