cancel
Showing results for 
Search instead for 
Did you mean: 

Problems in Office control

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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