2009 Apr 02 5:03 PM
Hi all,
how to join 2 internal tables .
I have 2 itabs with equal bukrs field , how to insesert country from second itab to first.
2009 Apr 02 5:08 PM
HI,
LOOP AT ITAB1.
L_INDEX = SY-INDEX.
READ TABLE ITAB2 WITH KSRY BUKRS = ITAB1-BUKRS.
IF SY-SUBRC EQ 0.
ITAB1-COUNTRY = ITAB2-COUNTRY.
MODIFY ITAB1 INDEX L_INDEX.
ENDIF.
ENDLOOP.
ENDLOOP.
Hi all,
how to join 2 internal tables .
I have 2 itabs with equal bukrs field , how to insesert country from second itab to first.
2009 Apr 02 5:08 PM
HI,
LOOP AT ITAB1.
L_INDEX = SY-INDEX.
READ TABLE ITAB2 WITH KSRY BUKRS = ITAB1-BUKRS.
IF SY-SUBRC EQ 0.
ITAB1-COUNTRY = ITAB2-COUNTRY.
MODIFY ITAB1 INDEX L_INDEX.
ENDIF.
ENDLOOP.
ENDLOOP.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |