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

GUI_DOWNLOAD

Former Member
0 Likes
842

Hi,

i used the guidownload function, to transfer data from internal table to flat file.

in the notepad the data is separated by tabspace.

but i need it to be separated by ',' (comma).

how to do that..

Thanks in advance.

regards,

Priya.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
805

Hi,

In GUI_DOWNLOAD FM

Exporting.

has_field_separator = 'X'

If we mention it as 'X' means it is separated by tab space.

if we mention it as ',' means it is separated by , .

So use has_field_separator = ','

Regards

Hi,

i used the guidownload function, to transfer data from internal table to flat file.

in the notepad the data is separated by tabspace.

but i need it to be separated by ',' (comma).

how to do that..

Thanks in advance.

regards,

Priya.

8 REPLIES 8
Read only

Former Member
0 Likes
806

Hi,

In GUI_DOWNLOAD FM

Exporting.

has_field_separator = 'X'

If we mention it as 'X' means it is separated by tab space.

if we mention it as ',' means it is separated by , .

So use has_field_separator = ','

Regards

Read only

Former Member
0 Likes
805

Hi,

Use has_field_separator = ','

Regards,

Ramya

Read only

Former Member
0 Likes
805

HI,

I used it but its not working..

Regards,

Priya.

Read only

0 Likes
805

HI

You have to take another internal table with a field of type string and you loop the internal table which you have data and then concatenate each field into the new internal table with ',' after each field.

Regards,

Venkat

Read only

Former Member
0 Likes
805

hi,

RZL_WRITE_FILE_LOCAL – Saves internal table to the presentation server

Use this FM,

Hope this helps, Do reward.

Read only

Former Member
0 Likes
805

While downloading save it as comma delimited file.

i.e instead as *.txt use *.csv in filename.

Read only

Former Member
0 Likes
805

Hi,

You can use a string type internal table in GUI_DOWNLOAD.

Use concatenate statement to get field string for the final internal table

loop at itab to wa_itab.

concatenate wa_itab-field1 ',' wa_itab-field2 into wa_final.

append wa_final to i_final.

endloop.

You can use i_final internal in the download function module.

I have done like this in my requirement.

Hope this will help

Regards

Shibin

Edited by: Shibin on Mar 6, 2008 1:32 PM

Read only

Former Member
0 Likes
805

Hi,

i solved through calling other fm.

SAP_CONVERT_TO_TEX_FORMAT

Regards,

Priya.