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

Append data from internam table into a string

anupam_srivastava2
Participant
0 Likes
410

Hi All

My data is in a internal table, how can i take data from internal table and append all the data into a string.

cheers

AJ

1 ACCEPTED SOLUTION
Read only

valter_oliveira
Active Contributor
0 Likes
387

CLEAR string.
LOOP AT itab INTO wa.
  CONCATENATE string wa-field1 ... wa-fieldn INTO string.
ENDLOOP.
2 REPLIES 2
Read only

JozsefSzikszai
Active Contributor
0 Likes
387

hi,

you can give a try:

LOOP AT itab INTO wa.
CONCATENATE string wa INTO string.
ENDLOOP.

from 6.0 you can also do in one go:

CONCATENATE LINES OF itab INTO string.

hope this helps

ec

Read only

valter_oliveira
Active Contributor
0 Likes
388

CLEAR string.
LOOP AT itab INTO wa.
  CONCATENATE string wa-field1 ... wa-fieldn INTO string.
ENDLOOP.