Skip to Content
author's profile photo Former Member
Former Member


Hi all,

i am downloading the data using gui_download in 4.7 version.I am able to download bu the header part is not downloadable.for ex say:

name age sex

amit 24 m

ashu 33 m

i am able to download the data but the header part(name age sex ) are not downloading.In "download" we have fieldanmes option but in "gui_download" i am unable to do that.So please can anyone help in will be great for me..


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jul 25, 2005 at 01:02 PM

    have the header alone in a itab.

    and the data in another itab - itab2.

    download itab (the header one)

    now download itab2 (data) in append mode to the same file name.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2005 at 01:04 PM


    Two ways you can do this.

    1. Have the header as the first line of the internal table.

    2. First create an internal table which only holds one record with just headings. You already have an internal table for data and download this to the same file location and name in append mode . Set the import parameter "append = 'X'".



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 26, 2005 at 03:38 AM


    While downloading file, u wont get the header part, u have to append the header part before the data. Then u pass the final output table with header to the function module.

    So that it will read the first line that will be header and then remaning data.

    U can create an internal table.

    TYPES: begin of ty_itab ,
      name(4) TYPE c,
      sex(3)  Type c,
     end of ty_itab.
    DATA: i_itab type standard table of ty_itab,
          w_itab type ty_itab.
    Then do as below.
     w_itab-name = 'NAME'.
     w_itab-sex  = 'SEX'.
     APPEND w_itab to i_output_final.
     i_output[] = i_output_final.
     APPEND i_output_final.

    Now pass this final table to the functionmodule, so it is now with header.

    Hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.