How to import an Excel file

Hi ,
I amwriting a BDC Program..
How to import a Excel File by Browsing the Excel file from the Directory and Storing that values in the internal table.
Can any one send the code for this,
Points will be awarded.
Regards,
Jayasimha Jangam.

Hi,
      Create a select parameter. at selection screen, use FM F4_FILENAME to get the dialog box.
see the sample code.
*&      Form  display_dialog
      To display the pop up dialog box
FORM display_dialog.
Calling FM to display File Select dialog box
  CALL FUNCTION 'F4_FILENAME'
   EXPORTING
     program_name        = syst-cprog
     dynpro_number       = syst-dynnr
    FIELD_NAME          = ' '
   IMPORTING
     file_name           = p_file .
ENDFORM.                    " display_dialog
FORM upload_data.
  DATA : lt_itab   TYPE STANDARD TABLE OF alsmex_tabline,
         ls_itab   TYPE alsmex_tabline,
         ls_upload TYPE ty_upload_data.
  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
       EXPORTING
            filename                = p_file
            i_begin_col             = 1
            i_begin_row             = 2
            i_end_col               = 5
            i_end_row               = 50000
       TABLES
            intern                  = lt_itab[]
       EXCEPTIONS
            inconsistent_parameters = 1
            upload_ole              = 2
            OTHERS                  = 3.
  IF sy-subrc <> 0.
    MESSAGE i000 WITH text-t04.
    LEAVE LIST-PROCESSING.
  ENDIF.
  CLEAR ls_itab.
  LOOP AT lt_itab INTO ls_itab.
    CASE ls_itab-col.
      WHEN 1.
        ls_upload-matnr = ls_itab-value.
      WHEN 2.
        PERFORM convert_to_decimal USING ls_itab-value.
        ls_upload-bmeng = ls_itab-value.
      WHEN 3.
        ls_upload-idnrk = ls_itab-value.
      WHEN 4.
        PERFORM convert_to_decimal USING ls_itab-value.
        ls_upload-menge = ls_itab-value.
      WHEN 5.
        ls_upload-meins = ls_itab-value.
    ENDCASE.
    AT END OF row.
      APPEND ls_upload TO gt_upload.
      CLEAR ls_upload.
    ENDAT.
    CLEAR ls_itab.
  ENDLOOP.
Deleting the contents of internal table
FREE lt_itab.

Similar Messages

  • How to import a excel file into database?

    hi all,
    How can I import a excel file into database?
    What I need to do first?
    Thanks,
    Amy

    1. Create a conrtol file in your disc(with notepad) ex
    test_loader.ctl
    LOAD DATA
    INFILE='C:\Testcsv.csv'
    into table test_table
    FIELDS TERMINATED BY ','
    TRAILING NULL COLS
    (ID,COL1,COL2,COL3)
    The table descrption is
    scott@ORCL> desc test_table;
    Name Null? Type
    ID NUMBER
    COL1 VARCHAR2(10)
    COL2 VARCHAR2(10)
    COL3 VARCHAR2(10)
    scott@ORCL>
    2 .Create a file testcsv.csv from your excel file you want to load with " save as" csv comma seperated value
    in your hard disc c:\
    3. in dos command mode write
    C:\>sqlldr scott/tiger control=c:\testcsv.ctl log=c:\testcsv.log
    Thats it!

  • How to import large excel files which exceeds more then 65535 rows

    Hi there,
    I am using the latest Numbers version (v3.5.3) on the latest Yosemite (10.10.3) and wonder if and how it is possible to import an Excel file which exceeds the 65535 limit. I know MS Excel has change this limit to 156118 rows. But I don't have that program. I am only using the Mac versions.
    Thanks in advance.
    Roy

    Hello NavNak.
    My knee jerk reaction would be to split the incoming Excel file.  (How else can a gallon of water fit into a half gallon jug?)  I googled 'Excel file splitter' and up came a bunch of hits with one of them coming from this Apple Community.  Check out thread #6486876 which is How To Split Large Excel or CSV Files into Smaller Files
    Good luck.
    DaverDee

  • How to import an excel file properly

    I have a bunch of excel files with multiple tabs. The tabs are not independent of each other, and there is a lot of cross-referencing. When I try to open those files in Numbers, all the formulae become corrupted. The reason for that is that inter-tab references in Numbers have a different format due to sub-tabs or whatever you call it within tabs. As a result, when I try to import a file, default sub-tabs are created (e.g., Table 1), but references are not adjusted. Since corrupted references are automatically substituted for last known calculation results, I cannot adjust even manually. Is there any workaround for this issue?

    In some spreadsheets, we may ask the app to display the formulas in the cells.
    I don't know if Excel is able to do that.
    If it is.
    Save the doc with the formulas displayed.
    Numbers will import the tables grabbing the formulas as text.
    Gather the imported tables in a single sheet.
    Select a table, select all cells and apply the format "Automatic".
    Numbers will try to decipher the formulas.
    For sure, it will issue red triangles here and there but with a bit of patience you will get a living document.
    I did that with AppleWorks spreadsheets when, as the result of a localisation bug, they can't be imported by Numbers '08.
    Some times later I thought that a more efficient soluce was to set my system in English and import in the English version.
    Yvan KOENIG (VALLAURIS, France) dimanche 9 mai 2010 20:45:06

  • HT5622 how to import an excel file to contacts

    i  have total info in excel  and need to transfer from computer to ipad and iphone contacts.
    help please.

    You need to convert the excel file into one of the formats mentioned here before you can import into contacts http://support.apple.com/kb/PH4648?viewlocale=en_US  It would seem csv is your best bet

  • Re: Import an Excel file

    Serdar,
    There are three approaches to this problem
    (a) use the excel spreadsheet as an ODBC data source
    (b) read the excel spreadsheet as a tab delimited text file
    (c) use OLE
    (a) this requires defining column headers for each "section" of data in the
    spreasheet, and
    naming each "section" of data. Thus it works for spreadsheets where you
    have tight control
    over the formatting & content, and not for arbitrary spreasheets. There
    are numerous drawbacks
    to this approach, most notably that the ODBC datasource controlled by
    the ODBC Manager
    sets the file name, and not the DBResourceManager (you have to copy your
    spreadsheet into
    a fixed name, hope the other one isn't open in another session, etc etc)
    Blech.
    (b) this requires a manual step which is to read the spreadsheet into Excel
    and save it to a
    different format, or have the spreadsheets saved as comma separated
    values format (csv),
    then it is simply a parsing problem...
    (c) this requires that you sublaunch Excel through OLE and access the data
    somehow
    (issue a "select all", "copy" - then paste the data into some text
    field in Forte and read it,
    or programmatically access the spreadsheets boundaries and individual
    cell data.
    Sounds like this would work best for "arbitrary" spreadsheets for
    which special formatting
    or exporting would be problematic.
    We have had success (using the word loosely here) with a and b and not had
    occasion to do c, though it will probably yield the best flexibility for
    the effort you'll have to
    put into getting it to work. The common perception about doing OLE
    integration is that
    you are at the mercy of the application to which you are integrating - the
    OLE APIs are not
    all universally well designed, implemented, nor documented, however since
    this is Excel you
    might have lots of retail technical books to help you.
    Part of the problem is that the Excel spreadsheet file is in a proprietary
    format only understood
    by Excel, therefore just "reading" the file will give you a whole bunch of
    garbage.
    Good luck,
    John
    At 03:55 PM 1/15/99 -0800, you wrote:
    >
    >
    Can anyone tell me how to import an Excel file from any directory into the
    Forte array?
    I need to do following scenario:
    In the Forte application when the user click on the "Select" button user
    selects an Excel file from the explorer window. Than I need to read that
    Excel file and load the data into the Forte array, and I'm going to use the
    data in the program.
    If anyone has experience or any suggestions, please let me know.
    Thanks
    Serdar Askin
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>*******************************************************
    John Jamison [email protected]
    Vice President and Chief Technology Officer 415 399 7212
    Sage IT Partners, Inc. fax: 415 399 7002
    44 Montgomery Street
    Suite 3200
    San Francisco, CA 94104
    The Leaders in Internet Enabled Business Change
    * A Metamor Worldwide Company *
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Just thinking off the top of my head here, would a variation of (c) work.
    Launch Excel and trigger a macro that outputs the spreadsheet data as a CSV
    file to a known location. Once that completes, it becames a parsing problem
    as stated below. Or, extending this thought, if you have control over the
    spreadsheet, establish a macro to output the data in CSV format. And
    include in the procedure for accessing the spreadsheet a requirement to run
    this macro after every data change. (Maybe the macro initiation can be
    automated too.)
    my 1 1/2 cents worth....
    /\/\ark /\/ichols
    John Jamison <[email protected]> on 01/17/99 12:17:57 PM
    Please respond to John Jamison <[email protected]>
    To: "Askin, Serdar H" <[email protected]>
    cc: [email protected](bcc: Mark Nichols/SEH)
    Subject: Re: Import an Excel file
    Serdar,
    There are three approaches to this problem
    (a) use the excel spreadsheet as an ODBC data source
    (b) read the excel spreadsheet as a tab delimited text file
    (c) use OLE
    (a) this requires defining column headers for each "section" of data in the
    spreasheet, and
    naming each "section" of data. Thus it works for spreadsheets where you
    have tight control
    over the formatting & content, and not for arbitrary spreasheets. There
    are numerous drawbacks
    to this approach, most notably that the ODBC datasource controlled by
    the ODBC Manager
    sets the file name, and not the DBResourceManager (you have to copy your
    spreadsheet into
    a fixed name, hope the other one isn't open in another session, etc etc)
    Blech.
    (b) this requires a manual step which is to read the spreadsheet into Excel
    and save it to a
    different format, or have the spreadsheets saved as comma separated
    values format (csv),
    then it is simply a parsing problem...
    (c) this requires that you sublaunch Excel through OLE and access the data
    somehow
    (issue a "select all", "copy" - then paste the data into some text
    field in Forte and read it,
    or programmatically access the spreadsheets boundaries and individual
    cell data.
    Sounds like this would work best for "arbitrary" spreadsheets for
    which special formatting
    or exporting would be problematic.
    We have had success (using the word loosely here) with a and b and not had
    occasion to do c, though it will probably yield the best flexibility for
    the effort you'll have to
    put into getting it to work. The common perception about doing OLE
    integration is that
    you are at the mercy of the application to which you are integrating - the
    OLE APIs are not
    all universally well designed, implemented, nor documented, however since
    this is Excel you
    might have lots of retail technical books to help you.
    Part of the problem is that the Excel spreadsheet file is in a proprietary
    format only understood
    by Excel, therefore just "reading" the file will give you a whole bunch of
    garbage.
    Good luck,
    John
    At 03:55 PM 1/15/99 -0800, you wrote:
    >
    >
    Can anyone tell me how to import an Excel file from any directory into the
    Forte array?
    I need to do following scenario:
    In the Forte application when the user click on the "Select" button user
    selects an Excel file from the explorer window. Than I need to read that
    Excel file and load the data into the Forte array, and I'm going to usethe
    data in the program.
    If anyone has experience or any suggestions, please let me know.
    Thanks
    Serdar Askin
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>*******************************************************
    John Jamison [email protected]
    Vice President and Chief Technology Officer 415 399 7212
    Sage IT Partners, Inc. fax: 415 399
    7002
    44 Montgomery Street
    Suite 3200
    San Francisco, CA 94104
    The Leaders in Internet Enabled Business Change
    * A Metamor Worldwide Company *
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • How can i import an excel file into formscentral?

    how can i import an excel file into formscentral?

    Thanks for asking.  This is not something we currently support but you can add or vote on feature ideas:
    http://forums.adobe.com/community/formscentral?view=idea
    If you need to add a new idea click "Create an idea" under "Actions" in the top right.
    Perry

  • Importing From Excel file will not import assignments correctly where there are more than one assignment per task

    I am trying to import an excel file ... see below.   It appears if you select both Tasks and Assignments tables it will not allow you to do this, says file is not in a project recognized format.  So I import Tasks tab first then run the
    wizard again and import the assignments tab while selecting merge with project option.   This works with one exception:
    If there are more than one assignment per task.  It does not merge in the 2nd assignment, only the first.
    Is there a way to import a task with 2 or more assignments?
    Background
    To figure out what the format for the file needed to be, I started with a MPP file and from project saved as Excel and selected the "Project Template" file.  Now I am trying to import that XLS to see how it works
    ID
    Active
    Task Mode
    Name
    Duration
    Start
    Finish
    Predecessors
    Outline Level
    1
    Yes
    Auto Scheduled
    DS001
    3 days
    June 17, 2014 8:00 AM
    June 19, 2014 5:00 PM
    1
    2
    Yes
    Auto Scheduled
    MT001
    3 days
    June 17, 2014 8:00 AM
    June 19, 2014 5:00 PM
    2
    3
    Yes
    Auto Scheduled
    CT001
    1 day
    June 17, 2014 8:00 AM
    June 17, 2014 5:00 PM
    3
    4
    Yes
    Auto Scheduled
    CT002
    2 days
    June 18, 2014 8:00 AM
    June 19, 2014 5:00 PM
    3
    3
    5
    Yes
    Auto Scheduled
    DS002
    1 day
    June 20, 2014 8:00 AM
    June 20, 2014 5:00 PM
    1
    6
    Yes
    Auto Scheduled
    MT002
    1 day
    June 20, 2014 8:00 AM
    June 20, 2014 5:00 PM
    2
    7
    Yes
    Auto Scheduled
    CT003
    1 day
    June 20, 2014 8:00 AM
    June 20, 2014 5:00 PM
    4
    3
    Task   Name
    Resource Name
    % Work Complete
    Work
    Units
    CT001
    Engineer1
    0
    8h
    100%
    CT002
    Engineer2
    0
    16h
    100%
    CT003
    Engineer1
    0
    8h
    100%
    CT003
    Engineer2
    0
    8h
    100%
    Andrew Payze

    Andrew,
    I did a quick test using your example although I didn't include the Predecessor or Outline Level fields to keep things a little simpler. I imported the Excel data into a new Project file with a single import of task and assignment data. It is very important
    to set up the Excel Workbook correctly. On Sheet 1 I entered the task data (Name, Duration, Start). I did not include the ID or finish date as that is redundant - Project generates its own ID and will calculate the finish date based on the start date and duration.
    On Sheet 2 I entered the assignment data basically just as you show it except I didn't include the Units.
    The data imported as expected.
    John

  • CRM ABAP How to upload an Excel file into an internal table?

    How to upload an Excel file using GUI_UPLOAD?? what should be the values of the parameters? The function modules ALSM_EXCEL_TO_INTERNAL_TABLE and KCD_EXCEL_OLE_TO_INT are not present in CRM. Please suggest me a way out!

    Hi saurabh,
    you can try the folowing sample..
    and make modifications according to your requirement..
    TYPE-POOLS: truxs.
    DATA: i_text_data TYPE truxs_t_text_data,
    v_filename_string TYPE string.
    DATA: BEGIN OF itab OCCURS 0,
    Name(30),
    Phone(15),
    Fax(500).
    DATA: END OF itab.
    PARAMETERS: p_file LIKE rlgrap-filename.
    START-OF-SELECTION.
    v_filename_string = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = v_filename_string
    filetype = 'ASC'
    has_field_separator = 'X'
    * HEADER_LENGTH = 0
    * READ_BY_LINE = 'X'
    dat_mode = ''
    * IMPORTING
    * FILELENGTH =
    * HEADER =
    TABLES
    data_tab = i_text_data
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    OTHERS = 17.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    i_field_seperator = 'X'
    * I_LINE_HEADER =
    i_tab_raw_data = i_text_data
    i_filename = p_file
    TABLES
    i_tab_converted_data = itab
    EXCEPTIONS
    conversion_failed = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    this is a sample code that uploads a excel file using GUI_UPLOAD, but uses another function module to convert that uploaded data into an internal table..
    regards
    satesh

  • How to upload normal excell file to ztable

    Hi All there,
    Can anybody tell me how to upload normal excell file to ztable directly.
    pl provide detail coding
    Regards
    Sagar

    Hi Sagar,
       first upload the excel data into your internal table using a FM than upload the data to your ZTABLE using BDC.
    parameters:
      p_file type rlgrap-filename          " File name
      data:
        lw_file  type string.              " File Path
    data:
      t_bdcdata type
       standard table
             of bdcdata,
      fs_bdcdata type bdcdata.             " Work area for bdcdata
    * Messages of call transaction
    data:
      t_messtab type
       standard table
             of bdcmsgcoll,
      fs_messtab type bdcmsgcoll.          " Work area for messtab
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
       exporting
         program_name        = syst-cprog
         dynpro_number       = syst-dynnr
         field_name          = ' '
       importing
         file_name           = p_file.
      lw_file = p_file.
      call function 'GUI_UPLOAD'
        exporting
          filename                    = lw_file
          filetype                    = 'ASC'
          has_field_separator         = 'X'
          dat_mode                    = 'X'
        tables
          data_tab                    = t_final_data
        exceptions
          file_open_error              = 1
          file_read_error              = 2
          no_batch                     = 3
          gui_refuse_filetransfer      = 4
          invalid_type                 = 5
          no_authority                 = 6
          unknown_error                = 7
          bad_data_format              = 8
          header_not_allowed           = 9
          separator_not_allowed        = 10
          header_too_long              = 11
          unknown_dp_error             = 12
          access_denied                = 13
          dp_out_of_memory             = 14
          disk_full                    = 15
          dp_timeout                   = 16
          others                       = 17.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.                               " IF SY-SUBRC <> 0
      if t_final_data is initial.
        message 'File not found'(003) type 'E'.
      endif.                               " IF T_FINAL_DATA IS INITIAL
    end-of-selection.
      perform upload_0585_data_using_bdc.  " populate the bdcdata table using tcode SHDB
      call transaction 'PA30' using t_bdcdata
                               mode 'A'
                           messages into t_messtab.
    form upload_0585_data_using_bdc.
      loop at t_final_data into fs_final_data.
    perform bdc_field       using 'Q0585-ACNTR(07)'
                                   w_curr.
    perform bdc_field       using 'Q0585-ACOPC'
                                   lw_flag.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=UPD'.
    perform bdc_dynpro      using 'MP058500' '2000'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/EBCK'.
    perform bdc_dynpro      using 'SAPMP50A' '1000'.
    endloop.
    *        Start new screen                                              *
    form bdc_dynpro using program dynpro.
      clear fs_bdcdata.
      fs_bdcdata-program  = program.
      fs_bdcdata-dynpro   = dynpro.
      fs_bdcdata-dynbegin = 'X'.
      append fs_bdcdata to t_bdcdata.
    endform.                               " Form bdc_dynpro using program...
    *        Insert field                                                  *
    form bdc_field using fnam fval.
        clear fs_bdcdata.
        fs_bdcdata-fnam = fnam.
        fs_bdcdata-fval = fval.
        append fs_bdcdata to t_bdcdata.
    endform.                               " Form bdc_field using fnam fval
    With luck,
    Pritam.

  • How to import a jar file in JSP

    How to import a Jar file in JSP Page.
    please reply its very urgent!

    Hey I am facing a similar problem:
    I have this jar file lbswebservice.jar that I have to use for my application.
    I added it to the classpath, I copied it in my WEB-INF/lib folder, but when I try to access classes in this package, it doesnt work.
    For example the jar contains the package com.blipsystems.lbs.ws.messages.* ; that contains different classes, like the Campaign class.
    I tried to use this class (just to create an object) in different context (through jsp, or just through java test classes), but it never works, i get the error: com.blipsystems.lbs.ws.messages.Campaign cannot be resolved to a type
    I am a bit desperate here...

  • How to open a excel file in WLS 8.1  server.

    Dear Sir,
    I have created a excel file in WLS 8.1 Application server.
    Now I used method as redirectURL(req,resp,Population.xls) to open that file but it failed to open it.
    If I give the full path as 'D://USER_OBJETS/APPLICATION/Population.xls'
    but it tried to open from client PC not from the server.
    so the problem, I managed to create file in server but unable to open it.
    Kindly advise how to resolve this problem.
    Thanks and Rgds,
    Anandan-Singapore.

    Are you asking in general how to read an Excel file using ActiveX, or are you asking specifically? If you're asking in general, please do a search, as there have been many examples posted on how to use ActiveX to read/write Excel files. There are also numerous links in the Excel thread.

  • How to upload an excel file using ABAP.

    Hi,
    Can anyone please help me in understanding how to upload an excel file using ABAP.
    Thanks!!

    http://diocio.wordpress.com/2007/02/12/sap-upload-excel-document-into-internal-table/
    check the link
    TYPES: Begin of t_record,
    name1 like itab-value,
    name2 like itab-value,
    age   like itab-value,
    End of t_record.
    DATA: it_record type standard table of t_record initial size 0,
    wa_record type t_record.
    DATA: gd_currentrow type i.
    *Selection Screen Declaration
    PARAMETER p_infile like rlgrap-filename.
    *START OF SELECTION
    call function ‘ALSM_EXCEL_TO_INTERNAL_TABLE’
    exporting
    filename                = p_infile
    i_begin_col             = ‘1&#8242;
    i_begin_row             = ‘2&#8242;  “Do not require headings
    i_end_col               = ‘14&#8242;
    i_end_row               = ‘31&#8242;
    tables
    intern                  = itab
    exceptions
    inconsistent_parameters = 1
    upload_ole              = 2
    others                  = 3.
    if sy-subrc <> 0.
    message e010(zz) with text-001. “Problem uploading Excel Spreadsheet
    endif.
    Sort table by rows and colums
    sort itab by row col.
    Get first row retrieved
    read table itab index 1.
    Set first row retrieved to current row
    gd_currentrow = itab-row.
    loop at itab.
      Reset values for next row
    if itab-row ne gd_currentrow.
    append wa_record to it_record.
    clear wa_record.
    gd_currentrow = itab-row.
    endif.
    case itab-col.
    when ‘0001&#8242;.                              “First name
    wa_record-name1 = itab-value.
    when ‘0002&#8242;.                              “Surname
    wa_record-name2 = itab-value.
    when ‘0003&#8242;.                              “Age
    wa_record-age   = itab-value.
    endcase.
    endloop.
    append wa_record to it_record.
    *!! Excel data is now contained within the internal table IT_RECORD
    Display report data for illustration purposes
    loop at it_record into wa_record.
    write:/     sy-vline,
    (10) wa_record-name1, sy-vline,
    (10) wa_record-name2, sy-vline,
    (10) wa_record-age, sy-vline.
    endloop.

  • How to store an Excel file in InfoPath for users to edit

    Hello,
    I need an example on how to store an Excel file within InfoPath 2010 so that every time a user opens the InfoPath form they can make changes and can save as part of the form. The next user opens the form and another Excel files (blank) where they make changes and
    saves. Thanks

    Streamlining this would require a bit of custom work I imagine. However if you don't mind giving the users some extra clicks, there are probably a few ways to get the job done.
    You could upload the excel file to SharePoint, make sure it's read-only and link to it within the InfoPath form. Then the process would be that users open the InfoPath form, fill it out, download the excel doc to their desktops and fill it out, and then
    attach it to the IP form.
    Or you could set up a separate, sister library where the New Item defaults to your Excel template. Then from within the InfoPath form you could have a hyperlink that creates the new item, saving it to the library. The caveat here is finding a way to link
    to the two items together with a unique identifier. The benefit though is being able to browse and interact with Excel docs independent of the forms they are attached to, if necessary.

  • How to read an excel file in webdynpro application

    Hello Experts,
    Can someone please tell me how to read an excel file in a webdynpro application?
    There is a tutorial for how to write contect into an excel, but i want to read the excel.
    Can someone help please !!
    Thanks and Kind regards,
    G.Singh.

    Hello Experts,
    I have done all the given above.
    I want to read a excel file from KM. My code is as below
    ResourceContext resourceContext = buildResourceContext();
    IResourceFactory resourceFactory = ResourceFactory.getInstance();
    RID pathRID = RID.getRID("/documents/ExcelReport.xls");     
    IResource resource =     resourceFactory.getResource(pathRID, resourceContext);
    Workbook wb = Workbook.getWorkbook(resource.getURI().getPath());
    Sheet sh = wb.getSheet(0);
    int columns = sh.getColumns();
    int rows = sh.getRows();
    wdComponentAPI.getMessageManager().reportSuccess(" Rows: " + rows);
    wdComponentAPI.getMessageManager().reportSuccess(" Columns: " + columns);
    This does not give me the excel file form the KM
    Can you please just what i can do at this point?
    Kind Regards,
    G Singh.

Maybe you are looking for

  • GR IR Clearing Report Items still appear

    Hi Experts, I have problems with GR IR Clearing Report FAGL003/FBL1N. There are still items in my GL in report FAGL003 that are not cleared even GR-Invoice are already done. What are the scenarios that caused this? Thanks a lot!

  • Oracle 10g DB create fails with jave.lang.StackOverflowError

    Hi all, wonder if you can help with my issue. I'm trying to install oracle 10g on Redhat ES4 on a virtual machine (VMplayer) on a HP Elite Book laptop. I've set swapspace to 4GB and have 1.5 Gb of RAM allocated to the virtual machine. I've set the ul

  • Iphone not connecting.

    Hello everyone. I just recently (in June) purchased my iphone. I was running Tiger but last week I decided to up my system to Leopard, which has been running awesome. The only problem now is that when I connect my iphone it's not coming up in itunes

  • Printing from CS3 to Epson R2400

    I've been very happily printing from Photoshop CS3 to the Epson until today and now it just point blank refuses to do so. Connections between the printer and computer are ok because it prints from other software programs. But when I try to print from

  • Problems with Nano and itunes

    How are yas? Ok I am having serious problems getting my Nano to be recognized by itunes. The Nano is recognized by both windows and the ipod updater but there is no option to update in itunes itself. If i connect the ipod to my usb it will fire up it