Skip to Content
0
Aug 17, 2010 at 11:24 AM

MSS - General Information - Related Activities Links persnr.

102 Views

Hi Experts,

We created an webdynpro abap and created an iview (addresses) for the webdynpro. We add the iview to the related links. When we choose an employee in the employee search and open de link, the persnr is not passed.

method WDDOINIT .

DATA L_API_COMPONENT TYPE REF TO IF_WD_COMPONENT.

DATA L_PORTAL_MANAGER TYPE REF TO IF_WD_PORTAL_INTEGRATION.

DATA L_WD_VIEW TYPE REF TO IF_WD_VIEW_CONTROLLER.

L_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).

L_PORTAL_MANAGER = L_API_COMPONENT->GET_PORTAL_MANAGER( ).

L_WD_VIEW ?= WD_THIS->WD_GET_API( ).

CALL METHOD L_PORTAL_MANAGER->SUBSCRIBE_EVENT

EXPORTING

PORTAL_EVENT_NAMESPACE = 'urn:com.sap.mss.employeesearch'

PORTAL_EVENT_NAME = 'selection_changed'

VIEW = L_WD_VIEW

ACTION = 'SUBSCRIBE_TO_EVENT'.

endmethod.

If the iview is on the same page as the empoyee search, then the persnr be passed. But we don't want the remployee search twice in the portal (once under general information and on the page link addresses)

Is it possbile to pass the persnr to the webdynpro iview?

gr

Joeri