Skip to Content
0
Former Member
Oct 25, 2006 at 02:35 PM

BSP: How copy received portal event string to ABAP-Page-Attribute variable?

37 Views

Hi,

I am able to receive and display portal events (EPCF API) with the following code:

<SCRIPT src="epcfproxy.js"></SCRIPT>
<script language="javascript">
if(window.document.domain == window.location.hostname){
document.domain = document.domain.substring(document.domain.indexOf('.')+1);
}
    EPCMPROXY.subscribeEvent("urn:com.sap:BWEvents","BWiViewevent", window, "myreceiveEvent");

function myreceiveEvent( eventObj ) {
   alert("event received:" + eventObj.dataObject );
}

But now the received data is only stored in Javascript-"variables".

How can I copy the received string to ABAP variables? These variables will be declared as Page Attribute (e.g. rec_event_data TYPE STRING)

Is my Javascript-solution a good way to handle portal events or are there better solutions?

Thanks a lot.

Regards,

Henning