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

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

Former Member
0 Likes
1,385

Hi,

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

Thanks

Sid

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
785

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
Read only

andreas_mann3
Active Contributor
0 Likes
786

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

Read only

0 Likes
785

Thanks. Its is working

-Sid

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