on 10-25-2007 6:17 AM
Hello Everyone,
I am stuck with a problem using office control.
The requirement is to display the excel file contents present in the application server to the office control.
The problem is with reading the contents of the excel file.
here is the method i used:
data:
mime_repository type ref to if_mr_api,
content type xstring,
url type string value '/MIG/D/TEST/TEST.xls'.
mime_repository = cl_mime_repository_api=>get_api( ).
call method mime_repository->get
exporting
i_url = url
importing
e_content = content.
* DATA is binded to the office control contents
wd_context->set_attribute( name = 'DATA' value = content ).
The GET method returns a sy-subrc = 3, which means file not found.
whereas the same code works for another application server with its path.
Where am i going wrong? or is there any alternative method to get the content from the file?
Regards,
Kinshuk
Message was edited by:
Kinshuk Saxena
Hi Kinshuk,
I think you should place your file in the exact folder where WDA can recognize, I mean try placing it @ the folder...
"/SAP/BC/WebDynpro/SAP/PUblic/BC/ssr/uuielibs/office_integration".
Regards
Raja Sekhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
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.