2011 Aug 02 1:08 PM
hello all,
I was Trying to open a web application inside SAP and a PDF inside the sap Screen but in both the case it is opening in new respective window.
I tried to open it through the Container concept but was not able to open it.
I am able to create container but i am not able to understand how can i open pdf and web application in SAP
2011 Aug 02 2:15 PM
I tried to open it through the Container concept but was not able to open it.
I suspect you mean GUI container ( cl_gui_*_container ). If so, you cannot mix Web UI elements (nor whole web application) with SAP GUI elements. Such container can only hold GUI control which is something totally different.
For PDF viewer, you can use class cl_gui_pdfviewer which you embed in your container. Then you feed it with relevant PDF document. Refer [SAP PDF viewer|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d8bb0975-0e01-0010-2192-bd1fffd80cae]
Regards
Marcin
2011 Aug 02 2:15 PM
I tried to open it through the Container concept but was not able to open it.
I suspect you mean GUI container ( cl_gui_*_container ). If so, you cannot mix Web UI elements (nor whole web application) with SAP GUI elements. Such container can only hold GUI control which is something totally different.
For PDF viewer, you can use class cl_gui_pdfviewer which you embed in your container. Then you feed it with relevant PDF document. Refer [SAP PDF viewer|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d8bb0975-0e01-0010-2192-bd1fffd80cae]
Regards
Marcin
2011 Aug 02 6:15 PM
Hi Marcin,
I think CL_GUI_PDFVIEWER should not be used, its description in 7.0 is "PDF Viewer (Do Not Use!!)" (that's the only place we find this restriction).
Instead, we should use the official class CL_GUI_HTML_VIEWER (demo program RSDEMO_HTML_VIEWER, see also [SAP Library: SAP HTML Viewer|http://help.sap.com/saphelp_nw70/helpdata/en/c9/147a36c70d2354e10000009b38f839/frameset.htm]).
BR
Sandra
2011 Aug 04 11:10 AM
Hi Sandra,
I wasn't checking this class status, I was only aware of it.
Never had chance to use CL_GUI_HTML_VIEWER as PDF viewer so can't tell
Regards
Marcin