|
原帖由 lulu1212 于 2008-7-8 08:57 发表 ![]()
data:begin of itab1 occurs 0,
a1 type c value '1',
a2 type c value '2',
end of itab1.
data:begin of itab2 occurs 0,
b1 type c value '3',
b2 type c value '4',
end of itab2.
data:begin of itab3 occurs 0,
a1 type c,
a2 type c,
b1 type c,
b2 type c,
end of itab3.
itab3-a1 = itab1-a1.
itab3-a2 = itab1-a2.
itab3-b1 = itab2-b1.
itab3-b2 = itab2-b2.
append itab3.
write:/ itab1-a1,
itab1-a2.
write:/ itab2-b1,
itab2-b2.
write:/ itab3-a1,
itab3-a2,
itab3-b1,
itab3-b2.
不知你是否想要这样?
itab1和itab2只是一行,且按行对应话,感觉这个没问题。3个write分别用一行显示了itab1、itab2、itab3的内容。
如果itab1和itab2是多行的话,就要loop+read了。loop哪个也需要判断下。 |
|