WD Abab - Portal Events from Employee Search

Hi guys,
I want to get the PERNR selected in Employee Search.
I have two ivews,
Employee Search and WD Abap.
I´m using this source to subscribe the portal event.
method WDDOMODIFYVIEW .
data l_api_component type ref to if_wd_component.
data l_portal_manager type ref to if_wd_portal_integration.
l_api_component = wd_comp_controller->wd_get_api( ).
l_portal_manager = l_api_component->get_portal_manager( ).
data l_wd_view type ref to if_wd_view_controller.
l_wd_view ?= wd_this->wd_get_api( ).
call method l_portal_manager->subscribe_event    exporting
      portal_event_namespace = 'urn:com.sap.pct.hcm.orgmanagement:CurrentObject'
      portal_event_name      = 'objectChanged'
      view                   = view
      action                 = 'PORTAL_EVENT'.
endmethod.
What´s the action I have to implement ?
And How I could get the PERNR selected ?
Best Regards,
Silvio Galery

Do i understand you correctly that you are not getting the portal event ?
This can be several reasons ?
Both portal system and WDA server has to be in same domain and same proptocol to communicate with Portal event.
Please check in that direction and search posts on this topic.

Similar Messages

  • How to get PERNR from employee search(teamviewer) iView in to a WD-4-ABAP.

    Hello All,
    I had developed a new Web Dynpro for ABAP (WD4A) component for updating a custom Infotype. This application is meant for the manager to maintain some specific data through portal for his employees in the team.
    WD4A application is built based on the employee number it receives from the portal.
         How could I get PERNR from employee search(teamviewer) iView in to my WD4A component?
    In portal I had developed a test page by copying the standard page from MSS com.sap.pct.erp.mss.general_information, and added my WD4A application through an iView into this page.
    Then I hided all the other iVews in the page except (1) employee search and (2)my WD4A iVew. On the preview everything appears fine.
    During the preview of this page it triggers the WDDOINIT of WD4A component main view and then the WDDOMODIFYVIEW. When I select an employee from the employee search, then it triggers only WDDOMODIFYVIEW in the WD4A application and not the WDDOINIT anymore.
    In my  WDDOMODIFYVIEW I had inserted the following code:
      DATA lo_api_component TYPE REF TO if_wd_component.
      DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_portal_manager = lo_api_component->get_portal_manager( ).
      DATA lo_api_controller TYPE REF TO if_wd_view_controller.
      lo_api_controller ?= wd_this->wd_get_api( ).
      CALL METHOD lo_portal_manager->subscribe_event
        EXPORTING
          portal_event_namespace = 'urn:com.sap.mss.employeesearch'
          portal_event_name      = 'selection_changed'
          view                   = lo_api_controller
          action                 = 'GET_SELECTED_PERNR'.
    And in the action: 'GET_SELECTED_PERNR'
    METHOD onactionget_selected_pernr .
      DATA lv_str_pernr TYPE string.
      DATA lv_strlen TYPE i.
      DATA lv_pernr TYPE pernr_d.
      DATA lv_offset TYPE i.
      wdevent->get_string(
      EXPORTING
      name = 'PORTAL_EVENT_PARAMETER'
      RECEIVING
      value = lv_str_pernr ).
      lv_strlen = STRLEN( lv_str_pernr ).
      lv_offset = lv_strlen - 8.
      lv_pernr = lv_str_pernr+lv_offset(8).
    ENDMETHOD.
    This is not functioning form me. The action is not getting trigged with the code in WDDOMODIFYVIEW.
    I had gone through several threads in u2018SDN say:
         Pass pernr to WebDynro
         MSS - General Information - Related Activities Links persnr.
         SAP Note: 1112733.
    Most of the threads are answered but incomplete. In some threads people shared document personally which had been helpful.
    I am stuck with this scenario of handling the employee number from employee search iView. Helpful suggestions will be rewarded for sure.
    Thanks in advance.

    Do i understand you correctly that you are not getting the portal event ?
    This can be several reasons ?
    Both portal system and WDA server has to be in same domain and same proptocol to communicate with Portal event.
    Please check in that direction and search posts on this topic.

  • Pass pernr from employee search iView to abap webDynpro in Related Activity

    Hi All,
    I have seen many threads explaining how to pass pernr from employee search iView to custom ABAP webDynpro application in the "Employee profile" page. Also seen sap note 1112733.
    I am trying to launch custom ABAP webDynpro application from "Related Activities" view found in the employee information page in MSS.  I want to pass pernr selected from Employee Search iView to the ABAP webDynpro application in "Related Activities" view.
    In the ABAP webDynpro application, I am listening to the portal event (as per note 1112733) but the ABAP webDynpro can not catch the event.
    Anyone has passed pernr from employee search iView to the ABAP webDynpro application launched from "related activities" view?
    Regards
    Ashutosh

    Hi Ashutosh,
    can you tell me exactly what you did? I have the same issue.
    Thanks,
    Joeri

  • Calling Portal event from ABAP class

    Hi Experts,
    I need a following clarificatrion, Please help,
    1. Is it possible to call a webdynpro method from a normal ABAP class?
    2. If no, we need a functionality of a class 'CL_WDR_HTTP_EXT_MIME_HANDLER' having method 'DO_DOMAIN_RELAX_HTML'.
    Is there any alternative method which can be used in ABAP having the same functionality.
    3. Is there any ways with which we can call portal event from ABAP class?
    Thanks,
    Shabir

    >1. Is it possible to call a webdynpro method from a normal ABAP class?
    I wouldn't necessarily recommend this approach. You shouldn't try to trigger events or any of the standard WDDO* methods from outside the WD Component itself.  That said, you can pass the object reference (like the WD_COMP_CONTROLLER object reference or the View Object Reference) into methods of normal classes.  Be careful if you are finding yourself calling a lot of your added methods from outside WD.  This is probably a sign that these methods should be in the Assistance Class or some other Class functioning as a Model Object.
    >2. If no, we need a functionality of a class 'CL_WDR_HTTP_EXT_MIME_HANDLER' having method 'DO_DOMAIN_RELAX_HTML'.
    Is there any alternative method which can be used in ABAP having the same functionality.
    What exactly do you want to do here?  Do you just want to get the relaxation script?  For what purpose?  You should never need to inject the relaxation script into WDA. 
    >3. Is there any ways with which we can call portal event from ABAP class?
    To what purpose.  Do you just want to delegate the triggering of the event that is inside WD Component to be called from a class?  If so you can pass the portal API object reference into a class from the WD Component.  However this only works while running within WD.
    How is this class used?  Are you running in WD?  Are you trying to generate some HTML code that runs in the portal independent of WD?

  • Calling Web PL/SQL page from Employee Search Page

    Hello,
    I have a requirement where in I have to call a custom Web PL/SQL self service page from the Employee Search page (this is a page where managers search employees giving criteria as First Name, Last Name, Assignment number etc. which is a OA Framework page supplied by Oracle)
    Now situation is after search when I will click on Details button on the search results table the custom Web PL/SQL page should be called.
    But I am not able to figure out how to do it. Could anybody be able to help me on this ?

    You have to set the destination property of the button to call your WebPL/SQL page.

  • Trigger portal event from 3:d party application

    Hi,
    I have a Web Dynpro project with an iView containing a 3:d party application.
    This application posts data (a few MBytes) to an URL (the URL is configurable), and I want a Portal Event to be triggered whenever this data is posted. Is it possible? Or is there another way to do this?
    Regards
    Emil Sandin

    Hi, and thank you for your quick reply.
    Here is a more detailed desciption of the project:
    I have a Web Dynpro application which is supposed to use a 3:d party application to sign data.
    This 3:d party application isn't at all related to SAP. The 3:d party application uses a Java Applet.
    The 3:d party application works like this:
    1) Receive data
    2) Launch an applet
    3) The applet posts the data to some url. I can choose which url to post to by configuring the 3:d party application.
    The posted data can be a few MBytes.
    I don't know yet exactly how to implement this, but this is my plan:
    Include the Java Applet as an iView.
    The applet posts the signed data, and somehow this triggers a Portal/Client event that sends the signed data back to the portal.
    The portal handles saving the signed data.

  • Webdynpro proxy page and portal event

    Hello there,
    is it possible to capture the event from employee search iview into my custom webdynpro ABAP iview?
    Since it occurs to me that when a portal page is developed as a "Default page template" I am able to capture the event whenever manager clicks on any employee in the list.  But when i create a page with "Web dynpro proxy page" template, I cannot subscribe to the event.
    We are trying to use employee search ivew and general data iview provided by SAP plus a custom WDA iview.  But when I do a default page template, I am able to caputre the event but general data iview does not show any data...and when I use the proxy page template...I get data in general data iview but I am not able to capture the event....and my custom WDA iview does not show anything...
    Employee search iview (previously known as team viewer) and general data iview are standard SAP iviews.
    any ideas...
    appreciate the help!
    Thanks....
    J.

    Hi Srivastava,
    The scenario is like this....
    page lay out:
    Team viewer iview here----provided by SAP
    General data iview here-----provided by SAP
    my WDA iview here-----custom iview
    if the page template is default template....I get data in my WDA iview for selected employee in the team viewer...but I go not get any data in General data iview
    if the page template is web dynpro proxy page...i do not get any data in my WDA iview...but i get data in general data iview...
    after debugging this thing...i found that for webdynpro proxy page...the portal event is not getting caught in my WDA iview...
    how to subscribe to a portal event if the iview is embedded in  a page which is using web dynpro proxy page template...
    Just want to share this...that portal eventing is working fine...if the my iview is embedded in a page which is using default page template...
    any ideas????
    anyone???
    Thanks...

  • MSS: Eventing with Employee Profile/Search

    Hi All,
    I've followed this blog to event with employee profile iview. In the end, the application does pick the employee selected from Employee Search table, but the issue is, on selecting another employee, the application doesnt pickup the right pernr. The app reacts to the event only the first time when the application starts.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/how-toaddacustomWebDynproiViewtotheMSSEmployeeProfile%28ECC+6.0%29&
    Has anyone tried this? If so, is there anyother step missing?
    Any help is greatly appreciated.
    Cheers,
    Rajit

    Hi Rajit Srinivas,
    I have the same requirement where in which I have a custom WD Application.
    What I want is I should be able to select the employee from the Team Viewer iView and supply the information to the Custom Application so that it gives me output based on that.
    and how to adopt the team viewer view to your custom WD application....
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/how%2bto%2bread%2binformation%2bfrom%2bthe%2bteamviewer%2bin%2bweb%2bdynpro
    I have followed your document also but I couldn't find any information about to plug the teamviewer application into Custom WD development.
    Please give me a clear view on how to integrate the team viewer application with custom development WD application.
    If code is required pls provide that also.............
    I would appreciate the useful inputs with higher points.
    Thanks in Advance,
    Dharani

  • Cannot find "Employee search" option portal - EHP7

    Customer says, on previous version of portal, they had “Employee search” option in which anyone can search for basic data of any colleagues. Right now in EHP7, there is no such options. Did we miss activation at any place or missing any notes?
    Your help is appreciated.
    Thanks
    Jacob J

    its very simple..
    For Who's who :- open launchpad and create new folder and add New application in that give name as Who's who and select Application type as Portal page from drop down and in application parameter add below path :-
    ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/
    com.sap.pct.erp.ess.iviews/com.sap.pct.erp.ess.employee_search/com.sap.pct.erp.ess.whoiswho
    For change own data : - open launchpad and create new folder and add New application in that give name as Change Own data and select Application type as Portal page from drop down and in application parameter add below path and save it
                      ROLES://portal_content/com.sap.pct/every_user/
    com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.iviews/
    com.sap.pct.erp.ess.employee_search/com.sap.pct.erp.ess.changeowndata

  • Employee Search Eventing

    Is it possible when starting an Event via Employee Search in MSS that it can fire an iView created in Visual Composer?

    https://wiki.sdn.sap.com/wiki/x/LEI
    have a look at this
    Cheers
    AShutosh

  • Portal Events---WDA view is empty on initialization

    Hello everyone,
    I created a WDA application which will be integrated with Employee Search Iview (provided by SAP).  Everything is working fine...only issue is that when we display the page first time...my WDA view is empty...untill we click on an employee....I want to get the first employee from the list and display his/her info in my WDA view as soon as we open up the page.
    I cannot seem to find any info on which event this Employee search iview triggers in the initialization and what parameters this event passes on.  Is there any documentation on this? I mean list of event trigger by this employee search iview and event names? 
    Once again...when we click on an employee from the list....we are populating the data in WDA view...no problem there....we just want to show data when we first come to the page....same as SAP does for its Employee search iview and general data iview....these iviews are from SAP...and when we put them together...general data iview fetchs the data for the first employee in the list....on initialization....but our WDA view stays empty....
    Thanks...
    J.

    Hi J,
    when we click on an employee from the list....we are populating the data in WDA view...no problem there....we just want to show data when we first come to the page.
    conceptually you need to place method in WDDOINIT of default view in your  WD4A application and try to read the first element of the employee list. This would be little different than reading the employee data from event, may be you can have some method in the ASSISTANCE class that attached to your WD Application that can read employee, data as soon as there is one available .
    Greetings
    Prashant

  • How can I display appraisals in "employee search(MSS)"?

    I created a new iView that is copied from employee search of MSS .
    <pcd:portal_content/com.sap.pct/line_manager/com.sap.pct.erp.mss.bp_folder/com.sap.pct.erp.mss.iviews/com.sap.pct.erp.mss.hcm/com.sap.pct.erp.mss.generalinfo_employeesearch>
    I changed the properity as below.
    Organizational Structure View >  MSS_HAP_EE_SRCH
    Group of Organizational Structure Views >  MSS_HAP_STATUS
    As a result I can confirm the screen of appraisal table in this iView but the appraisal data is not displayed in this iView.
    Should I customise any more?
    I think that the cause of this problem is in "HRHAP_PORTAL_COLUMN_FILL_ERP".
    There is many parameters and table, but I cannot find the point to give it to this function module.
    Best regards,
    Makoto

    I have found the standard iView & page...
    <pcd:portal_content/com.sap.pct/line_manager/com.sap.pct.erp.mss.bp_folder/com.sap.pct.erp.mss.pages/com.sap.pct.erp.mss.hcm/com.sap.pct.erp.mss.performane_management>

  • Portal eventing

    Hi all,
    Can someone give me the code to create a portal event from PCUI ? I'm trying to combine Visual composer iview with a PCUI Iview. Sender is the PCUI Iview and receiver is the VC Iview.I just need to be able to pass a field value from PCUI to vc.I need to know how to code (what class/interface) I need to use to create a portal event from PCUI ?
    I've followed quite a few weblogs but I did not find something that creates a portal event from PCUI. Appreciate your help!!
    Thank you
    Sreesanth.

    Sree,
    I am not sure what do you mean by portal event from PCUI….is it Client side or server side event ???
    You can’t write your own client side (JavaScript) events in PCUI, Client side scripting is done by FW.
    May be you need to do a modification in FW java script files to have your client side event.
    You can have server side events from PCUI…
    Raj

  • Employee Search in Dynamic Navigation does not update other iViews (FPM)

    Hi all,
    after selecting a person from Employee Search (MSS) we have to display corresponding data in a customer specific iView with help of selected person number.
    So I created a Floorplan Manager Application as described in https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/how-toaddacustomWebDynproiViewtotheMSSEmployeeProfile%28ECC+6.0%29&
    If I use the SAP content page or create my own pages with corresponding Employee Search and customer specific iView, updating of data on the customer specific iView works. But if I add the Employee Search to Dynamic Navigation, the data is not updated in the customer specific iView.
    I didn´t find a solution in this forum. Does anybody know, if it is possible to add the Employee Search as Dynamic Navigation (with help of Floorplan Manager functionality) and update data in other iViews and how this works? Or is it possible to handle this in a different way, e.g. PortalEventing?
    Thanks,
    Thomas

    Hi,
    I also tried to use only iViews of 'General Information'  and added the employee search (team viewer) of the sap
    content page 'General Information' to the dynamic navigation, but the other SAP standard iViews of 'General Information' page are not updated, too.
    Does anybody know, if it is possible to add the employee search to dynamic navigation and to update the other iViews of 'General Information'? If yes, what properties have to be set? Are some settings for Floorplan Manager
    needed?
    Could anybody please give me a hint?
    Thanks,
    Thomas

  • Portal event

    Hi all,
    Can someone give me the code to create a portal event from PCUI ? I'm trying to combine Visual composer iview with a PCUI Iview. Sender is the PCUI Iview and receiver is the VC Iview.I just need to be able to pass a field value from PCUI to vc.I need to know how to code (what class/interface) I need to use to create a portal event from PCUI ?
    I've followed quite a few weblogs but I did not find something that creates a portal event from PCUI. Appreciate your help!!
    Sorry, if I'm posting in the wrong group.. I will also post in PCUI forum
    Thank you
    Sreesanth.

    Hi
    Yes, both iviews (sender and receiver) are in the same page.
    As I said, if I build the page with 2 "URL iView" pointing to the WD application url, the event works fine!
    When I try to use the "Web Dynpro iView" in the same page, using the iviews from the sender and receiver applications, it doesn't works.
    Tks

Maybe you are looking for

  • How can I use external CSS, JavaScript and Images in PeopleSoft Portal?

    I am developing a website and I need to put my CSS, JavaScript and IMG files in a folder on the server that can be used by my HTML objects. Where should I put the images? How do I get the HTML objects can read these images? I've tried several things

  • Connecting two SCL systems to one backend

    Hi, Is it possible to maintain 2 SCL system connections to one ECC system? We have already connected one SCL system to ECC as a backend and now we want to connect second one.  Is it possible to do that? If yes how to maintain Logical Ports call param

  • Iphone 5 in recovery, cannot switch on, help!

    Please help my iphone 5 won't switch on - the screen displays a lead and an arrow pointing to the iTunes icon! I cant recover my serial number from my itunes account - not sure what my next steps should be...??

  • IPhone synching issue: not enough access privaleges for this operation.

    When trying to sync my iphone (after restoring) i get an error message: You do not have enough access privaleges for this operation.  My computer recently crashed so i had to restore all my music from a hard drive and reinstall itunes.  No issues wit

  • Network Address scheme change - checklist?

    I have the arduous task of changing the IP address space within a 24/7 production environment now. The new address space is not within same subnet as is being used currently. 100+ L2 switches, 2 x WAN routers, Core 6509 L3 switch, 800+ hosts, printer