on 07-05-2012 5:08 PM
hi experts,
I am working on WD for uploading a excel and processing the excel.
I design a button with the event to call the method "cl_wd_runtime_services=>attach_file_to_response" for opening a local file, is it right???
if the method is right, how should I configure the parameters? any other methods for upload a excel from local??
Many thanks.
best wishes,
Yang
Hi Yang,
Please check this weblink -
http://wiki.sdn.sap.com/wiki/display/WDABAP/WDA+for+uploading+Data+from++Excel+sheet
This describes the process of achieving that same.
Hope this would help you.
Thanks.
Kumar Saurav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can upload files using file upload UI element. Create a node with four attributes file name of type string, file content of type xstring, file type of type string and file size of type integer. Then read file upload UI element and set that to your node. Now you can convert your file contents from xstring to string and can use that for further processing.
Or you can use office control instead of file upload UI element.
You can also refer this link.
http://wiki.sdn.sap.com/wiki/display/WDABAP/Excel+File+Upload+And+Display+Data+Using+Web+DynPro+ABAP
Cheers,
Dineshwar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to use excel file for manipulation then it is better to go with single parameter (file content) instead of going with file name, file content, file size and file type.
Here, file content can be of type string. If your excel sheets' structure is standard then you can manipulate or display in tables.
Look at the following link, you will get an idea.
http://wiki.sdn.sap.com/wiki/display/WDABAP/Excel+File+Upload+And+Display+Data+Using+Web+DynPro+ABAP
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.