‎2005 Dec 30 11:06 AM
Hi,
My query is
data : begin of itab,
f1,
f2,
end of itab.
data : begin of itab1,
f1,
f2,
end of itab.
data : begin of itab3,
f11,
f21,
f31,
f41,
end of itab.
loop at itab .
move f1 to itab3-f11.
move f2 to itab3-f21.
append itab3.
clear itab3.
endloop.
loop at itab .
move f3 to itab3-f31.
move f4 to itab3-f41.
append itab3.
clear itab3.
endloop.
loop at itab3.
write 😕 itab3.
endloop.
output like this 123 abc ab 11
bc 22
cd 33
my requiremnt is output like this
ab bc cd
123 abc 11 22 33
any one help me for this requirement
iam waiting for your reply
Thansk
HRU
‎2005 Dec 30 11:09 AM
‎2005 Dec 30 11:15 AM
‎2005 Dec 30 11:16 AM
hi,
In itab there is no f3 and f4 fields,
can you clearly give your requirement...
vijay
‎2005 Dec 30 11:17 AM
Hi Hruday,
Welcome to SDN
Please be more clear on ur requirement
‎2005 Dec 30 11:21 AM
hi
what are the values in the field of the internal tables
regs
Arun
‎2005 Dec 30 11:23 AM
hi,
i am assuming these things.
itab has f1 & f2.
itab1 has f3 & f4.
itab3 has f11,f21,f31,f41.
<b>itab</b>
f1 f2
cd 33
bc 22
ab 11
<b>itab1</b>
f3 f4
123 abcjust code the latter part of code instead of...
write: itab3.
loop at itab3
write itab3-f11.
endloop.
loop at itab3
write: /itab3-f31,itab3-f41.
endloop.
loop at itab3
write itab3-f21.
endloop.Hope it helps
Kindly reward points it is helpful by clicking the star on the left hand side of the screen.
Regards,
Maheswaran.B
Message was edited by: Maheswaran B
‎2005 Dec 30 11:25 AM
‎2005 Dec 30 11:26 AM
‎2005 Dec 30 4:40 PM
ITAB is not declared as internal table. It is just a structure. You will get syntax error on 'LOOP' statement.