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

Export Abap Report to Excel .CSV Format

Dear All,

I have a requirement to download the SAP report to Excel .CSV Format . I am using FM 'SAP_CONVERT_TO_CSV_FORMAT' and FM '

GUI_DOWNLOAD' to download the file to .csv format. The problem i am facing is the file is downloaded to excel .csv format but all the values are present in single column . Eg. Field1 , Filed 2 ..... all are present in the A1 Cell i.e present in the single Column . I want the data to be displayed in separate columns . Eg. Field1 in a1 Cell , Field2 in B1 Cell ......etc.

Could anyone please show me a way around this.

Regards

Amba

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2013 at 08:15 AM

    Hi ,

    If you use GUI_DOWNLOAD for downloading Excel .CSV Format, then pass

    WRITE_FIELD_SEPARATOR = ' ' and FILETYPE = 'DBF' for leading with zero's.

    Note : Suppose field1 = material number

    if you use file type ='DBF' then material number download leading with zero's.

    '000000000000001698' .



    Regard's

    Smruti


    s1.png (19.5 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 26, 2013 at 08:49 AM

    Hi,


    SDN1.JPG (45.1 kB)
    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.