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

GUI_DOWNLOAD

I only have four fields in itab. What params do I set in the FM so that each field is inits own colomn spreadsheet?

Thank-You.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Dec 04, 2007 at 07:46 PM

    Set the WRITE_FIELD_SEPARATOR (in ECC6, I think it is different in other versions) to 'X'.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 07:50 PM

    Hi Tom,

    To download to excel you can use like this.

    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        = 'c:tst.xls'
       FILETYPE                        = 'DAT'
      tables
        data_tab                        = i_mara.
    

    Note: Please close the other thread ws_download.

    Pavan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 08:01 PM

    Hi Tom,

    Try this code....

    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
     FILENAME = 'C:TEMPTEST.XLS'
     WRITE_FIELD_SEPARATOR = ';'
    TABLES
     DATA_TAB = itab.
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 07:47 PM

    Just call this FM as below

    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
     FILENAME = 'C:test.xls'
     FILETYPE = 'ASC'
     WRITE_FIELD_SEPARATOR = 'X'
    TABLES
     DATA_TAB = itab.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 07:48 PM

    Hi,

    or

    Call fm SAP_CONVERT_TO_CSV_FORMAT before calling GUI_DOWNLOAD

    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.