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: 

Problem while downloading data to text file using GUI_DOWNLOAD FM

Former Member
0 Kudos

Hi,

When we download the data using the GUI_DOWNLOAD FM into the text file tab delimeted(table is built dynamically),

Its coming in this format as shown below

Field1 Fileld2 Field3

1 2 3

However I want it in this way

Field1 Fileld2 Field3

1 2 3

Could someone please let me know how to achieve this?

5 REPLIES 5

former_member216702
Active Participant
0 Kudos

Hello,

You wrote the same thing.

Thierry

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

Check the length of filed1 , 2 , 3.

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

Check the length of filed1 , 2 , 3.

anup_deshmukh4
Active Contributor
0 Kudos

Concatinate tab after each field

Data : tab type c.

tab = CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

hope it helps...!

anup

Former Member
0 Kudos

Do something like this:

concatenate field1 field2 field3 into lv_outx "(data of sufficient length, type c)
separated by gc_tab.  "Horizontal tab constant created as note above
condense lv_outx no-gaps.  "squeeze out extraneous spaces but beware if you have text with spaces...drop the no-gaps.
append lv_outx to my_internal_table.  "table with a single field type char, sufficient length


open dataset  datasetname... 
loop at my_internal_table into ls_internaltabstructure.
  transfer internaltabstructure-outx to datasetName [length if needed].
endloop.