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

Gui_download :Regarding field descriptions.

I have downloaded ALV to excel sheet using Method 'cl_gui_frontend_services=>file_save_dialog' and Function module'GUI_DOWNLOAD'. But i am unable to get the field descriptions. Could you please help on this?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 06:06 AM

    hi,

    by saying field description, do u mean the header of the file downloaded???

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi, do like this

      DATA: BEGIN OF IT_HEADER OCCURS 0,
              COL_NAME1(600),
            END OF IT_HEADER.
      it_header is populated this way:
      
      IT_HEADER-COL_NAME1 = 'Company Code'.
        APPEND IT_HEADER.
        IT_HEADER-COL_NAME1 = 'Main Vendor'.
        APPEND IT_HEADER.
        IT_HEADER-COL_NAME1 = 'Vendor Number'.
        APPEND IT_HEADER.

      CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            FILENAME                = LV_FULLPATH
            FILETYPE                = 'DAT'
            WRITE_FIELD_SEPARATOR   = '#'
          TABLES
            DATA_TAB                = IT_FINAL
            FIELDNAMES              = IT_HEADER

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 06:19 AM

    I think u have done custom coding for downloading the ALV report to excel but is it required? ALV has the functionality to download data (with header) into excel. Why u r not using that functionality? ...If still u think it is required to download it using custom code then copy the content of final table(passed to ALV) to another table then add ur header info init and then download it.

    Regards,

    Joy.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 06:26 AM

    Hi,

    As per my understanding for field headnings.

    Gui download have option headfings like below

    • HEADER = '00'

    you can prepare one more internal table and populate alla field descriptions .and pass in the FM.

    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.