Application Development 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: 

Download TAB-Delimited file

Former Member
0 Kudos

Hi,

I want to produce a TAB-Delimited File using the FM, Gui_Download. Could anyone help how to do this?

1 ACCEPTED SOLUTION

nishanthbhandar
Contributor
0 Kudos

Hi Jim,

In the importing parameters give 'X' to WRITE_FIELD_SEPERATOR.This will produce a output whcih is tab delimited in case of ASCII outputs.

Cheers

Nishanth

7 REPLIES 7

Peter_Inotai
Active Contributor
0 Kudos

I'd suggest to use CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD instead. It won't be obsolete in higher releases and it has a parameter WRITE_FIELD_SEPARATOR.

Peter

nishanthbhandar
Contributor
0 Kudos

Hi Jim,

In the importing parameters give 'X' to WRITE_FIELD_SEPERATOR.This will produce a output whcih is tab delimited in case of ASCII outputs.

Cheers

Nishanth

nishanthbhandar
Contributor
0 Kudos

Hi Jim,

Please close the thread and award points if your problem is solved.If you still have any problems then let us know.

Cheers

Nishanth

0 Kudos

Hi Judith,

Thanks a ton for these links.

Regards,

Hari Prasad

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

If you use 'X' for importing parameter WRITE_FIELD_SEPARATOR and Filetype as 'ASC', in that function module , then you will get desired output.

This information is available in importing parameter WRITE_FIELD_SEPARATOR.Check it.Nishant also told the same.

If your problem is solved,kindly reward points for useful answers and close this thread.Otherwise , get back.

I think your previous thread is also solved.If so,kindly reward points for useful answers and close the same by clicking the following link.Otherwise,get back.

Regards,

J.Jayanthi

SAPAI
Participant
0 Kudos

Use this <b>METHOD cl_gui_frontend_services=>gui_download</b>

  • Download the output file to presentation server

CALL METHOD cl_gui_frontend_services=>gui_download

EXPORTING

filename = filename "filename to be generated

filetype = 'ASC' "File type ASCII for tab delimited

write_field_separator = 'X' "X for tab delimiter

CHANGING

data_tab = itab_download "internal table with data

EXCEPTIONS

file_write_error = 1

no_batch = 2

gui_refuse_filetransfer = 3

invalid_type = 4

no_authority = 5

Please check and close your thread if its resolved.

Reward points if useful.