Skip to Content
0
Former Member
Jun 18, 2006 at 09:21 PM

Convert column values into a row with a delimiter

25 Views

Hi Gurus,

This may be a trivial question to you. I have an internal table itab with a column called plant, internal table has 'n' records, by the end of loop, I need to convert the column into a row delimited by comma into one row (one field). This needs to be dynamic without hard-coding.

Plant

1000

2000

3000

4000

5000 ....

n....

Expected result of the field:

field1 value: 1000,2000,3000,4000,5000,...n

Let's set a limit to the field say it can hold upto 500 chars.

Thanks,

GP.