Skip to Content

How to read excel data in web dynpro abap?


Dear Webdynpro Experts,

I am stuck with an issue. I want to read xl data in web dynpro application for it I am submitting an zreport like this below stm

submit ztest and return.

In Ztest program I am calling fm ALSM_EXCEL_TO_INTERNAL_TABLE here while running my web dynpro application I am getting an error like

ERROR: Error during import of clipboard contents (termination:

ABORT_MESSAGE_STATE)

Note : I understood that this FM cannot be used in background but I want to execute it in background. Please help me with good solutions.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 21, 2015 at 12:14 PM

    This FM use OLE, so it's false to write "this FM cannot be used in background" but you should wrote 'this FM can only be used when connected to a SAP GUI session" so not in Web Dynpro. Even some trust browser controls can raise error too...

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 21, 2015 at 03:33 PM

    Hi Matala,

    Mentioned FM can not be used in case of WD. Rather use class cl_fdt_xl_spreadsheet.

    This link will help you.

    http://zevolving.com/2013/11/abap-webdynpro-upload-excel-file-using-class-cl_fdt_xl_spreadsheet/

    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.