‎2008 Jul 16 4:32 PM
Hi,
I have some records in internal table which I need to send to application server in CSV format.
Many solutions are given in the forum to send data to presentation in CSV format using diff function modules e.g. SAPCONVERT.
Could any one of you pls tell me, is there any FM to convert internal table to csv format table (not structure). The above function modules convert internal table into comma separated structure.
I would appreciate your help in this regard.
Thanks,
Viswa..
‎2008 Jul 16 4:39 PM
Hi,
I dont think it is available.
data: begin of w_tab ,
record type string,
end of w_tab,
itab like standard table of w_tab.
concatenate f1 f2 f3 f4 into w_tab separated by ','.
append w_tab to itab.
Now this itab you can transfer to the app.server using open dataset.
Regards,
Subramanian
‎2008 Jul 16 4:39 PM
hi,
You can use the function module SAP_CONVERT_TO_CSV_FORMAT for converting the internal table data into csv format.
Regards,
Veeresh
‎2008 Jul 16 4:39 PM
Hi,
use the function module SAP_CONVERT_TO_TEX_FORMAT...to split the internal table to comma separated internal table...in the field separator pass the value ','.
Thanks
Naren
‎2008 Jul 16 4:40 PM
Hi,
check this link for a sample code..
http://searchsap.techtarget.com/tip/1,289483,sid21_gci1166824,00.html
Thanks
Naren