Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sap Conatiner Concept

Former Member
0 Kudos
83

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

1 ACCEPTED SOLUTION

MarcinPciak
Active Contributor
0 Kudos
56

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

3 REPLIES 3

MarcinPciak
Active Contributor
0 Kudos
57

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

0 Kudos
56

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

0 Kudos
56

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