cancel
Showing results for 
Search instead for 
Did you mean: 

internal table concatenation

Former Member
0 Kudos

hai friends,

how to concatenate the values in the internal table into single line.

Regards,

selvamuthukumar.N

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

n

Former Member
0 Kudos

Hi Kumar,

Try this:

data :
  w_string type string.

Loop at t_itab into fs_itab.

   concatenate fs_itab-field1
                      fs_itab-field2
                      fs_itab-field3
                      ..........
               into w_string 
   separated by space.

   [ Append this w_string to any internal table if Required ]

endloop.

Regards,

Swapna.

Former Member
0 Kudos

Hi,

Try like this....



data: lv_string type string.
 
loop at itab into wa.
  concatenate lv_string wa-fieldname into lv_string separated by space.
endloop.

Hope it will helps

Former Member
0 Kudos

Hi,

data: lv_string type string.

loop at itab.
  concatenate lv_string itab into lv_sting separated by space.

endloop.

Darren