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

concatinate

Former Member
0 Likes
473

hi folks ,

how to concatenate fields in internaltable into string if u have different field types like char,num etc can please clear me with example.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
446

Hi,

You can do as below:


Loop at itab.

concatenate itab-field1 itab-field2 into itab2-text separated by space.
append itab2.
clear itab2.

endloop.

Now you have concatenated fields into one string that is stored in itab2.

Thanks,

Sriram Ponna.

2 REPLIES 2
Read only

Former Member
0 Likes
447

Hi,

You can do as below:


Loop at itab.

concatenate itab-field1 itab-field2 into itab2-text separated by space.
append itab2.
clear itab2.

endloop.

Now you have concatenated fields into one string that is stored in itab2.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
446

If U have Character , Numc .. there is no problem ..

variables of type I cannot be concatenated ... It has to be

moved to a character variable and concatenated.

If your internal table has ...

Itab-f1 , itab-f2 , itab-f3 ...

If itab-f3 is of type i ..

move itab-f3 to v_f3.

concatenate Itab-f1 itab-f2 v_f3... into v_string

separated by <your wish>