Skip to Content
0
Former Member
Aug 10, 2010 at 10:30 AM

Internal table of type KNA1 to String type Internal table.

569 Views

Hi Experts,

I have a requirement to convert an internal table of type KNA1 to String type internal table with a seperator.

One option I have is to use Concatenate statement as per code below:

loop at i_kna1 into wa_kna1.

concatenate wa_kna1-field1 wa_kna1-field2 ...

into wa_string seperated by '|'.

append wa_string to I_string.

endloop.

This methos will be very cumbersome as there are many fields involved that will have to be concatenated.

Is tghera ny other shorter method to do it?

Thanks in advance!!