on 01-22-2008 10:55 AM
Hi Friends,
I am trying to install values into an excel sheet which is installed on my system using sap ep web dynpro
The ep server is also on the same system
I have created two fields in the excel sheet EMPID and EMPNAME which is saved on my system with the name empdetails.xls
Now I am trying to create a front end in NWDS which consists of couple of input fields and a button...when I enter the data in this input fields and hit the button data must get saved in the excel. I have created an action Lets say ACTION1
For this I have written the following code under
OnACTION1()
FileOutputStream fout = null;
File file=null;
try {
file=new File("C:/DESKTOP/empdetails.xls");
fout=new FileOutputStream(file);
String empId=wdThis.wdGetContext().currentContextElement().getEid();
String ename=wdThis.wdGetContext().currentContextElement().getEname();
fout.write(empId.getBytes());
fout.write(ename.getBytes());
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
//@@end
}
When I execute the above code I see the form being get displayed in the browser but when I enter the data in the input fields and hit the enter data is not getting stored in the excel sheet
I do not see any error message being displayed either
Please do tell me the prerequisities that I need to do before inserting the data
Thanks in advance
Hi,
I think it would be better if you use POI from apache to acheive your goal.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.