内表之间赋值
作者:互联网
- 循环拷贝
1 LOOP AT IT_A . 2 IT_B-xxx = IT_A-xxx . 3 ... 4 APPEND IT_B . 5 CLEAR IT_B . 6 ENDLOOP .
- 根据内表IT_A修改内表IT_B
1 LOOP AT IT_B . 2 READ IT_A WITH KEY xxx = IT_B-xxx . 3 IF SY-SUBRC = 0 . 4 IT_B-... = IT_A-... . 5 ..... 6 ENDIF . 7 MODIFY IT_B COMPARING .... . 8 ENDLOOP .
- 直接拷贝
1 APPEND LINES OF IT_A TO IT_B .
- 直接给内表赋值
1 IT_B[] = IT_A[] .
标签:内表,ENDLOOP,xxx,LOOP,-...,之间,APPEND,赋值 来源: https://www.cnblogs.com/montsea/p/16562325.html