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

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.

  • Employee Search iView  and dyanmic iViews

    We are implementing MSS Business package (mySAPERP 2005). We have a requirement to design a page with Employee search iView ( Team viewer), universal worklist and a report iView. What we are trying to achieve is that if a manager selects an employee in the team viewer the employee profile iviews (General Data and Personal data which are dependent on the pernr that is passed from Team viewer) should appear in the same page replacing universal worklist and the reports iView.If anyone has done this, please share your experience with us. Thanks in advance

    You might can a better response in one of the functional forums as it is probably some HR backend setup that is incorrect.

  • MSS General Information (Employee Search iview Fetching wrong Manager)

    Hi,
    In MSS we have General Information page which has Employee Search iview. This iview display the information in a table which has several columns... (Name, Personal Number, Manager, Position, Staffing Ration, Job... etc)
    The problem is under the Manager Section its displaying the wrong Manager Name, it should show the name of manager who has logged in but instead its showing some other manager.
    e.g. If David has logged in as a Manager and is searching for employees reporting him then in the employee search iview it show David's name as Manager for all his reportees) But in our case instead of David its showing wrong manager name.
    We have checked from functional point of view and the reporting relationship is okay as the manager (David) is able to approve the leave requests and overtime requests raised by his reportees.
    Kindly suggest a solution.
    Regards,
    Mittal

    1) For all other managers its working fine but this is the case with only one manager.
    2) Can you please tell me which is that FM which gets called through standard Java Webdynpro iview.
    Thanks

  • 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.

  • Employee search iview serch by last name- how to make it case insensitive

    Hi All,
    We are using the compensation planning iview on MSS and in the top SAP has employee search iview to select the team. In their is an option to serach by employee first/last name. It works fine but the user has to type in the exact case the last name was saved in infotype.
    For example - last name Brown exists in our system. If you serarch using "br" it does not find it but if you do "Br" it finds the
    right employee.
    My question is - is there a way to change it so that the search does not consider the lowe/upper case and finds the name if matches anyway.
    Thanks for your help

    Hi, if you're at least on ECC 6.0, check the note [1106196|https://service.sap.com/sap/support/notes/1106196] for a custom configuration of search field.
    Regards!

  • Webdynpro Application Name for MSS/Employee Search Iview

    Hi all,
    I want to modify <b>MSS/EmployeeSearch</b> application. I am not able to find out the technical name(WebDnypro Application name) for this <b>MSS/employee search</b> I view. I know we can find  it out from pcd I view properties, but in this case its different from PCD.
    Regards
    Praveen

    I solved it my self

  • Employee search iview integration into Detailed navigation

    EP7
    ESS/MSS 600
    ECC6
    Hello,
      In the EP6 version of the TeamViewer it was easily added to the "Detailed Navigation" part of the page.  Does anyone know how to achieve this in EP7 with Employee Search?
    thx
    Larry

    Any iViews can be added to the navigation panel. All you need to do is add them to another iView or page as either a related link or as a dynamic navigation. The related links appear under a section in the navigation panel called "related links", Dynamic navigation iViews appear with their proper name in the navigation panel.
    Cheers

  • 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.

  • Pass parameter from dynamic navigation iView to WebDynpro iView

    Hi All,
    I know there are a lot of threads dealing with passing paramters from EP to WebDynpro using EPCM but actually I didn´t find a solution for my problem.
    I have in the dynamic navigation area of the SAP Portal an iView based on a JSP dynpage. In the corresponding JSP I fire an EPCM-event:
    EPCM.raiseEvent("urn:test.de:wochenb" , "passDataToWebDynpro" , evtData);
    In the content area there is a WebDynpro iView. In this WebDynpro-application I subscribe to the event in the wdDoInit-method of a view:
    WDPortalEventing.subscribe("urn:test.de:wochenb" , "passDataToWebDynpro" ,wdThis.wdGetDataFromJSPDynpageAction());
    and I have an event-handler:
    public void onActionDataFromJSPDynpage(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject )
        //@@begin onActionDataFromJSPDynpage(ServerEvent)
         IWDMessageManager manager = wdComponentAPI.getMessageManager();
         manager.reportSuccess("EPCM event testing " + dataObject);
      //@@end
    My problem is now that the event is fired correctly by the JSP Dynpage but the event-handler of the WebDynpro is never executed.
    As info: the domain of the J2EE-Server the webdynpro-application is deployed to is identical to the J2EE-Server the portal runs on.
    Can anybody help ?
    Thanks !
    Bernd

    Hi All,
    I found the solution by myself.
    For information: Click in the dynamic navigation fires the event und forces the content afterwards to refresh. During the refresh the WebDynpro subscribes to the event in the wdDoInit-Method. This is to late because the event is fired before the refresh.
    My solution is to use a setTimeout before the event-triggering in the dynamic navigation iView.
    Regards,
    Bernd

  • How to create an iview for ABAP Webdynpro Application in Portal?

    HI,
    I am Webdynpro Java webdynpro developer.
    I want to create an IVIEW for an ABAP Webdynpro application in the enterprise portal.

    The process is almost exactly the same as creating a Web Dynpro Java iView. You simply chose the ABAP instead of the Java radio button when you reach that step in the Web Dynpro iView creation process.  There is a video on the topic here:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/eae111e7-0b01-0010-6cb7-e0dd2bfbfa7a
    You can also read about the process in the online help:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/1d/e4a34273f60b31e10000000a1550b0/frameset.htm

  • How to pass PERNR from Handle default to view

    Hi,
    We are using custom WDP ABAP application for EMP Leave Request, here I need to call the RFC HRASR_WDA_GET_EMPLOYEE in window's handle default method.
    Once I call this RFC how to pass this pernr to view.In view already field as designed and mapped for PERNR
    Plz give some solutions.
    Regards
    Rajesh

    Hi Rajesh,
    Did you create any node with the PERNR only included in it, under Component Controller and Map it to the Window Context Node??
    If you do this, you can pass the data from your Handle_default method to the Component Controller and then accordingly you can access the data anywhere you need.
    I hope, this will help your problem.
    Regards,
    -Wahid Hussain.

  • Passing value from Adobe Interactive form, to the Webdynpro Application

    Hi,
    I have followed all the tutorials on interactive forms in WD for Java, & am able to successfuly display my context data in an interactive form.
    However, i need help with the following:
    1. Online scenario:
    User has filled details in an interactive form & clicks on the submit button.
    The Data from the form is NOT getting passed back to the WebDynpro application.
    2. Offline Scenario:
    User has filledup a pdf file(form), & has uploaded the form to the webdynpro application, using the file-upload UI element.
    How do i read the data that the user has entered in that pdf file?
    Any help with regard to these two queries, will be appreciated.
    Thanks,
    Hanoz

    1) Online Scenario
    check if the context mapping between UI elements and Context is properly done
    check if the cardinality of the Context is alright.
    2) Offline Scenario
    you will have two views.
    one upload view
    and one interactive form view
    in the upload view use the File Upload UI element.
    in the Interactive Form View.... use the same view which you used to create the offline form, thus the interactive form UI element will already know the structure of data and the context mapping in the pdf file when you upload it.
    Add the following line of code to the
    method wdDoInit.
    wdContext.getNodeInfo().getAttribute
    ("pdfObject").getModifiableSimpleTyp
    e();
    Add the following line of code right
    before
    wdThis.wdFirePlugOutToDisplay()
    in the method onActionShowForm().
    wdThis.wdGetTravelRequestCompControl
    ler().wdGetContext().currentContextE
    lement().setPdfObject(wdContext.curr
    entContextElement().getPdfObject());
    in the interactive form view, change the property of the interactive form.... MODE to usePdf.
    regards,
    -Ag.

  • How OO ABAP  & ABAP WEBDYNPROS  are Related??

    HI,
    i am new to WEBDYNPRO and shifting myself from OO ABAP  to  WEBDYNPRO IN ABAP.
    Kindly let me know how OO ABAP and webdynpro ARE INTERRELATED.(in terms of coding or in terms of environment)
    Regards,
    Dev

    Hi Dev,
    Welcome to ABAP Dynpro!
    Now I am 10 months old to ABAP Dynpro.I have explored a lot.Now you were asking about how much ABAP/OOPS one should know and topics one should know.
    In my view you should be aware with fundamental of OOABAP like
    class , methods , interfaces and static attribute.Being WD ABAP Dynpro guy you should be in position to use ABAP classes and methods in it.
    Just take case if you want to access element from node in context ...such code by wizard Appears ....
    DATA:
    zobj_bbp_ior_util TYPE REF TO zcl_bbp_ior_util,
    node_ztiornode TYPE REF TO if_wd_context_node,
    elem_ztiornode TYPE REF TO if_wd_context_element,
    stru_ztiornode TYPE zsior.
    navigate from <CONTEXT> to <ZTIORNODE> via lead selection
    node_ztiornode = wd_context->get_child_node( name = if_request_ior=>wdctx_ztiornode ).
    get element via lead selection
    elem_ztiornode = node_ztiornode->get_element( 1 ).
    now you should be in position to understand and make use of classes like
    ' wd_context' etc. .You should know what it does then you will use it method
    like get_child_no.
    Hope I have cleared you doubt.
    Cheers,
    Darshna.

  • Pass paramenters from WDJ iView to Transactional iView

    Hi All
    I have a scenario where I need to pass the parameters from webdynpro Java iView to Transactional iView. We are implenting LSO and for a Manager role we deployed the MSS BP to access "Employee Search" iView. I created a transactional iView for transaction LSO_PV00. Created a page with these two iViews. Now the page will show the employees list for that manager and T iView. When I click the employee name, is there a possibility to set the employee's personal number in the input field of the transaction iView?
    I am not sure will this be possible withou any code changes, but just wanted to have the input from SDN before coming to conclusions.
    Thanks, Raj

    you can pass the screen field of transaction uisng Application Parameters property of the transaction iView.
    To know the parameter to be passed,
    Press F1 in the input field and Click on Technical Information Icon at the top,then screen field name is the paraameter name to be passed for transaction.
    Use WDPortalNavigate to pass paramter from Webdynpro.Check this link
    Passing Parameters to Transaction Iview
    If you WD appl is a standard one,then you might need NWDI to make changes in the same

Maybe you are looking for

  • Calling a report

    Dear all, good morning, i am calling a report from a form and getting error like numeric value error. any one can help. form is running individuallu fine and also report as well. when i am trying to call form form in application only the problem is c

  • Using Transactions

    Hi All, I want to implement Transaction in my session bean. My session bean function : insert(a, b, c){ ut = sessionctx.getUserTransaction(); ut.begin(); try{ obj1.insert(a); throw CustomException(" Custom exception"); obj1.insert(b); obj1.insert(c);

  • How to extract current user SQL password from SAP

    I have an external exe that needs to connect via ADO to the currently running SAP application using the current user. I used the SAPbobsCOM.Company object to extract the CompanyDB , Server ,DbUserName and Password to create my ADO connection string.

  • Can we delete all emails at once?

    Hi, Is there a way to select all emails and delete them at once instead of just one by one? Thanks.

  • Save Original Pic Files on 2nds comp

    bought a new Microsoft comp. How do I tranfer saved orignial pic currently saved on my old Mac - Reval Software to Microsoft computer - Revel. There is a box to check on the Mac -Revel to check if you want to save original files. But I do not see tha