cancel
Showing results for 
Search instead for 
Did you mean: 

WEBGUI and OLE applications

Former Member
0 Kudos

Hello,

I am currently working on BW 3.5 in association with some documents in KM.

I have developped a program which uses the following code to display the documents stored in KM:

CALL FUNCTION 'SKWV_KWUI_DOC_DISPLAY'

EXPORTING

phio = ls_skwf_io.

In this code <b>ls_skwf_io</b> contains the technical key of the documents in KM found in the table rsodphioma.

When I execute this program with SAPGUI, the correct applications are executed. So an .XLS document will be opened with Microsoft Excel, a PDF document with Adode Reader ... The mime links are respected to open the right applications. This works fine.

However, we must use the WEBGUI for the deployment. We want to provide to ours users a link like this one:

http://shprsabi.corp.local:8001/sap/bc/gui/sap/its/webgui?sap-client=002&sap-language=FR&~transactio...

The transaction code <b>zole_doc</b> executes the abap program. The report is well displayed. But this does not work when we select a document to display!!! It seems that a ITS/WEBGUI application can not call an OLE application.

The abap gives an error message KWUI 037. Oss notes found do not correct the situation even in the latest patch (20).

Can somebody help me?

Best regards,

Laurent

Accepted Solutions (1)

Accepted Solutions (1)

former_member185704
Contributor
0 Kudos

Hi Laurent,

Maybe reading this thread is helpful for you:

Best regards

Henning

Answers (2)

Answers (2)

former_member228142
Active Contributor
0 Kudos

Hi Laurent,

the function module you call uses the function module DP_COPY_URL. Recently webgui was enhanced to support this function module too. The related SAP note is 1041844. I could not test it but according to the ABAP code, if the changes from 1041844 are applied webgui should show the document. Function module SKWV_KWUI_DOC_DISPLAY does not make use of OLE.

Best regards,

Klaus

Former Member
0 Kudos

Hi Klaus,

Unfortunately, I can not generate any URL as I am missing a directory and a file extension that would store and indicate the mime type of the document.

The documents are stored in KM, not on a directory.

Thanks

Laurent

Former Member
0 Kudos

Too bad...

Many many thanks for the answer.

Regards

Laurent