Skip to Content
0
Former Member
Dec 18, 2006 at 04:02 PM

ABAP Code

17 Views

Hello,

I tried to use the following code to update an internal table. It did not work as I expected.

In debug mode, I saw the change of ITEM_ITAB-TX which is what I wanted. But when I really ran the program, the ITEM_ITAB-TX did not change. Should I add some more code? Please advise. Thanks.

LOOP AT I_ITAB.

READ TABLE I_DITAB WITH KEY NR = I_ITAB-NR.

*IF A RECORD IS FOUND

IF SY-SUBRC = 0.

I_ITAB-TX = I_DITAB-TX.

ENDIF.

ENDLOOP.