Application Development 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: 

How to convert Internal table (dynamically created) to CSV format

Former Member
0 Kudos

Hi,

Can anyone please suggest someway to convert Internal table (dynamically created) to CSV format ?

Thanks

Sid

1 ACCEPTED SOLUTION

andreas_mann3
Active Contributor
0 Kudos

Siddhartha ,

use sth like this:

 

data str type string.

do.
 assign component sy-index of structure <itab> to <f>.
 if sy-subrc = 0.
  concatenate str <f> ';' into str.
 else.
  transfer str to file
  exit.
 endif
enddo.

hope that helps

Her(r)mann (not Hesse) from germany

Edited by: Andreas Mann on Jul 27, 2010 1:46 PM

2 REPLIES 2

andreas_mann3
Active Contributor
0 Kudos

Siddhartha ,

use sth like this:

 

data str type string.

do.
 assign component sy-index of structure <itab> to <f>.
 if sy-subrc = 0.
  concatenate str <f> ';' into str.
 else.
  transfer str to file
  exit.
 endif
enddo.

hope that helps

Her(r)mann (not Hesse) from germany

Edited by: Andreas Mann on Jul 27, 2010 1:46 PM

0 Kudos

Thanks. Its is working

-Sid

Edited by: Siddhartha on Jul 27, 2010 6:45 PM