Hi,
I encountered an error message 'EPCMPROXY is undefined' when I have two BSP applications on the same page subscribing to the MSS teamviewer. This problem happens intermittently when I try to change the employee in the MSS teamviewer, to display detailed infomation in the two BSP applications.
In the two BSP applications, I use the following codes to subscribe to the MSS teamviewer upon change of the selected employee. I have tried to use two different procedure name for EPCMPROXY and myreceiveEvent. But the problem still exists. Anyone provide some help on this?
...
<SCRIPT src="epcfproxy.js"></SCRIPT>
<script language=javascript>
var lnDotPos = document.domain.indexOf( "." );
if (lnDotPos >= 0) document.domain = document.domain.substr( lnDotPos + 1 );
EPCMPROXY2.subscribeEvent( 'urn:com.sap.pct.hcm.orgmanagement:CurrentObject', 'objectChanged', window, 'myreceiveEvent2' );
function myreceiveEvent2( eventObj2 )
{
var dataKey2=eventObj2.dataObject;
Emp2.EmpID.value = dataKey2.substr(6,8);
Emp2.submit();
}
</script>
...
Hi,
just two remarks:
1.) "EPCMPROXY2"?!?! Is this a typo?
2.) If the problem exists for EPCMPROXY, too, check if the js file is accessed (seems not to be).
Hope it helps &
have a nice weekend
Detlev
Hi Detlev,
Answer to your questions:
1) I have purposely named one BSP application with EPCMPROXY and the other BSP application with EPCMPROXY2, thinking that it may solve the runtime error, but it didn't.
2) If I display either one of the BSP applications, then the program will work without any error. If both BSP applications are displayed in the same page, then the runtime error will occur.
Any idea what is causing this problem?
Regards,
Seow Ting
Add a comment