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

Converting .XLSX into .CSV format

Dear Techies,

We have developed ABAP program which extracts various data from SAP tables and creates files.

As customer had asked for .XLSX format we gave the same.

Now customer is asking to additionally convert the files into .CSV.

From my ABAP person I understand that our current version of SAP ECC 6.0 does not support this possibility.

I am not very sure if there is any restriction in ECC6.0 version.

Can someone share their experience on this topic.

Regards

Sameer

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Sep 15, 2016 at 09:20 AM

    You are starting in the wrong place.

    In your Z program, you extract data, and presumably, before you create an XLSX file, you have all the data in a nice internal table.

    Instead of converting your XLSX file to CSV - why not just write a CSV directly out of your internal table?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 15, 2016 at 09:30 AM

    Hi

    Declare an internal table (t_transfer ) with one field ( Line of type char2000 for examp ) ==>

    loop at you old internal table into wa.

    concatenate wa-field1

    wa-field2

    .............

    wa-field(n)

    into wa_transfer-line separated by ';' .

    append wa_transfer to T_transfer .

    Endloop .

    Then use FM GUI_DOWNLOAD or method GUI_DOWNLOAD of class CL_GUI_FRONTEND_SERVICES to transfer you new internal table to a CSV file

    Thanks

    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.