Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos

Requirement

In my Exporting table data to MS-Excel Sheet(enhanced Web Dynpro Binary Cache), we have seen how to pass data to an Excel File using MS-Excel formatting. There was another Web Dynpro Java a couple of weeks ago. This time, it was how to read data from an MS-Excel file.

There are Assessment for Excel Solutions in Java to do this. I used the jexcelapi which enables us to achieve this.

Pre-Requisites

  1. Web Dynpro Binary Cache
  2. File Upload - 1
  3. File Upload - 2

Setup

The setup is exactly the same as shown Exporting table data to MS-Excel Sheet(enhanced Web Dynpro Binary Cache)

Implementation

To just demonstrate how this works , we need the following things:

Layout

  1. File Upload UI Element
  2. Upload Excel File Button UI Element - onAction -> Upload

Context Elements

  1. FileName - bound to File Upload UI Element property - fileName
  2. FileResource - bound to File Upload UI Element property - data

Code

onActionUpload

Output

Excel Sheet

Application

Output - Application

4 Comments