Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

OUTPUT

Former Member
0 Likes
883

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

9 REPLIES 9
Read only

Former Member
0 Likes
862

hi

where is f3 and f4 in itab

regs

Arun

Read only

0 Likes
862

hi ..

First of all welcome to SDN.

today only Mr Raja Sekhar has asked similar type of question.

You can go through the following thread for answer to ur problem.

Message was edited by: Asit Garg

Read only

Former Member
0 Likes
862

hi,

In itab there is no f3 and f4 fields,

can you clearly give your requirement...

vijay

Read only

Former Member
0 Likes
862

Hi Hruday,

Welcome to SDN

Please be more clear on ur requirement

Read only

Former Member
0 Likes
862

hi

what are the values in the field of the internal tables

regs

Arun

Read only

Former Member
0 Likes
862

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  abc

just 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

Read only

Former Member
0 Likes
862

Hi Hruday,

are you not Rajasekhar T.

Regards

vijay

Read only

0 Likes
862

I am also of the same opion as of vijay

Read only

Former Member
0 Likes
862

ITAB is not declared as internal table. It is just a structure. You will get syntax error on 'LOOP' statement.