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

how to read the excel file using webdynpro abap?

Hi,

how to read and modify excel file using webdynpro abap?

Regards,

Pavani

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Sep 22, 2009 at 06:40 AM

    Hi Pavani,

    Please refer this wiki: [Modifying existing excel sheet using WD ABAP |https://wiki.sdn.sap.com/wiki/display/WDABAP/ModifyingexistingexcelsheetusingWDABAP].

    I hope it helps.

    Regards

    Arjun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2009 at 06:50 AM

    For reading excel file follow the steps :

    1. Use a File upload UI element and bind it with xstring.

    2. Now your excel will be uploaded and stored in Xstring.

    3. Convert Xstring to String data using FM 'HR_KR_XSTRING_TO_STRING'.

    4. Now split the string at new line so as to make an internal table .

    Ex . SPLIT l_string AT cl_abap_char_utilities=>newline INTO TABLE it_table.

    here it_table is type table of string.

    5.now loop at the internal table and separate the content of this table separated by tab.

    Ex. SPLIT wa_table AT cl_abap_char_utilities=>horizontal_tab INTO TABLE it_new.

    it_new type string_table.

    6. For more info , refer this thread :

    how-to-upload-excel-file-in-webdynpro-application-

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2009 at 06:53 AM

    hi,

    for reading the contents of the excel file , u can use the UI element fileupload .

    u hv to bind the data property of the element with the context attribute of type xstring

    as Saurav pointed u need to convert the contents of the excel file into tab delemitted text file

    u cn nw read the contents using FIleupload UI elemnt thn

    regds,

    amit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2009 at 07:01 AM

    Hi Pavani,

    go thru this thread

    reading-an-excel-file-in-webdynpro-and-writing-it-

    in this go for uday response.

    you might get help from that.

    regards,

    anand

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi Pavani,

      the above code as refered by the WIKI shud work on UNIX based OS as well ,

      pls note , u cannot read the excel file as such , u have to convert it into the tab delemitted text file with the

      way SAURAV pointed

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2009 at 10:53 AM

    thnx

    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.