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

Down Load data delimitted by comma

Former Member
0 Likes
407

Dear experts,

how can I download data as text file data delimitted by Comma.

I have used WS_DOWNLOAD like below, but it creates text file as tab delimitted.

CALL FUNCTION 'WS_DOWNLOAD'

EXPORTING

FILENAME = G_FILENAME

FILETYPE = 'DAT'

TABLES

DATA_TAB = IT_ZLOT_DETAIL

FIELDNAMES = IT_COUNT.

With warm Regards

Rajiv singh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
388

Hi,

You may use FM

CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'

EXPORTING

i_field_seperator = ','

TABLES

i_tab_sap_data = t_itab

CHANGING

i_tab_converted_data = w_text

EXCEPTIONS

conversion_failed = 1

& then use FM GUI_DOWNLOAD or WS_DOWNLOAD.

Regards

Raju Chitale

OTHERS = 2.

Dear experts,

how can I download data as text file data delimitted by Comma.

I have used WS_DOWNLOAD like below, but it creates text file as tab delimitted.

CALL FUNCTION 'WS_DOWNLOAD'

EXPORTING

FILENAME = G_FILENAME

FILETYPE = 'DAT'

TABLES

DATA_TAB = IT_ZLOT_DETAIL

FIELDNAMES = IT_COUNT.

With warm Regards

Rajiv singh.

2 REPLIES 2
Read only

Former Member
0 Likes
388

Hi,

Check this thread..

reward points if it helps..

Regards,

Omkar.

Read only

Former Member
0 Likes
389

Hi,

You may use FM

CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'

EXPORTING

i_field_seperator = ','

TABLES

i_tab_sap_data = t_itab

CHANGING

i_tab_converted_data = w_text

EXCEPTIONS

conversion_failed = 1

& then use FM GUI_DOWNLOAD or WS_DOWNLOAD.

Regards

Raju Chitale

OTHERS = 2.