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

how to upload a .xlsx formatted excel file in ABAP webdynpro

Dear Exports

I want to create webdnpro application to upload a Excel file which contains the customer master records for KNA1 table.

when I will upload the file the data will be displayed on the browser as well as store in the corresponding fields of KNA1 table but my excel file is in .xlsx format.

Can anyone kindly give the step by step guides by using which I will do the application successfully. But I have done the same application for .txt file and .csv file. So now I need to do it for .xlsx formatted file.

Please anyone can help me.

Thanks and regards

Rashmita

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 07, 2012 at 09:20 AM

    For xlsx use function modules

    'ALSM_EXCEL_TO_INTERNAL_TABLE' or 'KCD_EXCEL_OLE_TO_INT_CONVERT'

    Regards,

    Fareez

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 07, 2012 at 09:20 AM

    For xlsx use function modules

    'ALSM_EXCEL_TO_INTERNAL_TABLE' or 'KCD_EXCEL_OLE_TO_INT_CONVERT'

    Regards,

    Fareez

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 07, 2012 at 09:22 AM

    Hi,

    see the below link

    http://scn.sap.com/community/web-dynpro-abap/blog/2012/04/05/upload-xlsx-file-in-webdynpro-abap-and-view-its-content

    or use the FM

    CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2013 at 06:46 PM

    Hello Rashmita,

    You can use cl_fdt_xl_spreadsheet standard class for .xlsx file upload. You can refer to my content for the same through the given link.

    http://scn.sap.com/docs/DOC-45719

    Please award points if useful.

    Thanks and Regards,

    Devesh Singh

    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.