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

Method to upload Excel file

Hi,

I'm using the method cl_gui_frontend_services=>gui_upload to upload Excel file.

I tried all the ways changing the parameters filetype to 'ASC', 'BIN', 'DAT' & even has_field_separator to space, '#', '|' but I'm getting junk values into my internal table.

I know how to upload Excel file using Function Modules.

I DONOT want to use Function Modules for uploading Excel file, I want to achieve this only thru Class=>Method.

Can we use cl_gui_frontend_services=>gui_upload for uploading Excel file? If you have achieved this using this method, please post the code snippet.

Also kindly let me know if we have any class methods other than this to upload Excel file?

Thanks & Regards,

Adithya M.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2013 at 09:50 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2013 at 02:19 PM

    you can check the below link for your requirement

    http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP+-+Upload+data+from+Excel+to+Sap+using+OO

    hope this helps 😊

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2013 at 11:03 AM

    hey......

    try this......

    this obeject oriented programming helps you even if you want to upload more than one worksheet in the excel

    http://www.erpgenie.com/sap-technical/abap/upload-an-excel-file-to-internal-table

    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.