on 2007 Dec 12 10:04 AM
hiii
DATA: BEGIN OF itab occurs 0,
col1(20) ,
END OF itab.
my itab consist of 3 records.
eg::
itab-col1
abc
bcde
ccc
Now i want all the 3 records (i.e itab-col1) in one variable(say var).
eg::: var = abc bcde ccc.
<b>SO how to do this.</b>
Thanking you.
Regards.
Try this.
Loop at itab.
concatenate var1 itab-col1 into var1.
endloop.
Award points if useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank all
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Hemant,
DATA : text TYPE string.
LOOP AT itab.
CONCATENATE text itab-col1 INTO text SEPARATED BY space.
ENDLOOP.
hope this helps
ec
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
data: var type string.
loop at itab.
concatenate var itab-col1 into var.
endloop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If u have only 1 col in itab use like this.
loop at itab.
concatenate var itab-col1 into var seperated by space.
endloop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.