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

Send comma separated file to Application server

Former Member
0 Likes
1,048

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..

4 REPLIES 4
Read only

Former Member
0 Likes
796

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

Read only

former_member673464
Active Contributor
0 Likes
796

hi,

You can use the function module SAP_CONVERT_TO_CSV_FORMAT for converting the internal table data into csv format.

Regards,

Veeresh

Read only

Former Member
0 Likes
796

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

Read only

Former Member
0 Likes
796

Hi,

check this link for a sample code..

http://searchsap.techtarget.com/tip/1,289483,sid21_gci1166824,00.html

Thanks

Naren