2008 Mar 06 11:44 AM
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.
2008 Mar 06 11:52 AM
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
2008 Mar 06 11:52 AM
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
2008 Mar 06 11:55 AM
2008 Mar 06 11:59 AM
2008 Mar 06 12:03 PM
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
2008 Mar 06 12:03 PM
hi,
RZL_WRITE_FILE_LOCAL Saves internal table to the presentation server
Use this FM,
Hope this helps, Do reward.
2008 Mar 06 12:11 PM
While downloading save it as comma delimited file.
i.e instead as *.txt use *.csv in filename.
2008 Mar 06 12:27 PM
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
2008 Mar 06 12:40 PM
Hi,
i solved through calling other fm.
SAP_CONVERT_TO_TEX_FORMAT
Regards,
Priya.