07-27-2010 12:29 PM
Hi,
Can anyone please suggest someway to convert Internal table (dynamically created) to CSV format ?
Thanks
Sid
07-27-2010 12:38 PM
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
07-27-2010 12:38 PM
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
07-27-2010 12:55 PM
Thanks. Its is working
-Sid
Edited by: Siddhartha on Jul 27, 2010 6:45 PM