Skip to Content
0
Jan 12, 2012 at 09:36 AM

Domain Relaxation and WebDynpro

53 Views

Hi everyone,

I've developed an AbstractPortalComponent which includes this piece of code:

	String url = "http://host422.alfa.beta:1080/sap/bc/webdynpro/sap/zwd_test_01?sap-language=EN&sap-client=199";
	        String html = "<iframe border='0' width='100%' height='100%' src='"+ url + "'> </iframe>";
                String html += "<start of script>";   //added start of because SDN editor is buggy
		html += "EPCM.subscribeEvent(\"mynamespace\", \"HIDE_SUBVIEW\", hideSV);";
                html += "<end of script>";             // added end of because SDN editor is buggy

This renders an iFrame which points to a webdynpro ABAP application and subscribes to an event.

The WebDynpro ABAP application that is included in the iFrame, raises the event but it's not triggered.

It must have to do with the domain relaxation.

In fact, the AbstractPortalComponent runs in the portal (http://host430.alfa.beta:50000/irj) whilst the WebDynpro ABAP runs in the backend (http://host422.alfa.beta:1080), but I thought that both of them would be relaxed and eventing would work.

Can anybody explain what's going on?

Also, if I change the coding above to:

     String url = "http://host430.alfa.beta:50000/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.WebDynpro?DefinitionType=ABAP&System=R3_199&WebDynproApplication=zwd_test_01&WebDynproNamespace=SAP";

it works okay but, for some reasons, I can't use this.

Thank you for clarifying this for me.

Regards