Use of lo_portal_manager- SUBSCRIBE_EVENT ?

Hi,
As am new to WDP ABAP, am from WDP JAVA and doing eForms with WDP ABAP now and the issue is.
I need to pass the PERNR from HANDLEDEFAULT() toview(Leava request) value comes from "HR_ASR_GETEMPLOYEE".So i used the following code .
Passing pernr to view
  DATA : l_emppernrforsearchhlp_node   TYPE REF TO if_wd_context_node,
               l_emppernr_ele                TYPE REF TO if_wd_context_element.
DATA :emp_pernr        TYPE persno , " Employee PERNR from team Viewer
CALL FUNCTION 'HR_ASR_WDA_GET_EMPLOYEE'
EXPORTING
   ID            = PERNR_MEM_ID
IMPORTING
   PERNR         = emp_pernr
  ENAME         =
l_emppernrforsearchhlp_node = wd_context->get_child_node( name = wd_this->wdctx_emppernrforsearchhlp ).
l_emppernr_ele = l_emppernrforsearchhlp_node->get_element( ).
set single attribute
  l_emppernr_ele->set_attribute(
    name =  `EMPPERNR`
    value = emp_pernr ).
Here am successfully able to pass and working excellent, but I need to do the same for reaming eforms also(Employee Separation)
There this is not working, when i compared with the leave_req apps EMployee separation I found a method lo_portal_manager->SUBSCRIBE_EVENT in Init()..which is the cause ...
Plz let me know the use of lo_portal_manager->SUBSCRIBE_EVENT...and give some solution for my problem.
Regards
Rajesh

>Plz let me know the use of lo_portal_manager->SUBSCRIBE_EVENT...and give some solution for my problem.
This method initializes the Portal Eventing framework and subscribes this applciation to listen for a particular portal event.
So first question - is your application running in the portal and is it still part of the portal page with the iView that produces this event.  Are all the applications in iViews in this page running in the same domain - otherwise portal eventing fails becuase of cross site scripting security restrictions.

Similar Messages

  • Workflow Manager | Use of Subscribe Activity

    Hi 
    I am new to workflow manager and exploring the use of pub/sub acitivities. What I have understood is to "Receive Notification" activity is some what similar to "Receive and Send Response" activity WF4.5. However, I did not understand
    the use of "Subscribe" activity. I have downloaded, pub/sub sample activities from MSDN Using Pub/Sub Activities. 
    In this sample "Subscribe" activities has been used in "OrderTally.xaml" but not in "ProcessOrder.xaml". Can anyone please explain  when to use "Subscribe" activity? Do we always have to use Subscribe with Receive
    Notification activity? 
    Regards,
    RK
    Radhakrishna

    >Plz let me know the use of lo_portal_manager->SUBSCRIBE_EVENT...and give some solution for my problem.
    This method initializes the Portal Eventing framework and subscribes this applciation to listen for a particular portal event.
    So first question - is your application running in the portal and is it still part of the portal page with the iView that produces this event.  Are all the applications in iViews in this page running in the same domain - otherwise portal eventing fails becuase of cross site scripting security restrictions.

  • Sap Gui Events to WD4A - Consecuences of note 1409237

    Hi Guys!
    This is mi first post here, I hope I can solve with my question many same problems.
    I've got a problem applying this note in my WDA application. I've got an ABAP application with one CL_GUI_WDR_VIEWER control and within a WD4A component.
    In this note, you can see that the way of subscribing events from SAP GUI to WD4A have changed and now, SAP guides you to do it using the class IF_WD_PORTAL_INTEGRATION->SUBSCRIBE_EVENT, in the WD4A Component and firing the event using CL_GUI_WDR_VIEWER->fire_event.
    My code for subscribing the event is the following:
      CALL METHOD lo_portal_manager->SUBSCRIBE_EVENT
        EXPORTING
          PORTAL_EVENT_NAMESPACE = ''
          PORTAL_EVENT_NAME      = ''
          VIEW                   = LO_API_CONTROLLER
          ACTION                 = 'SHOW'
    My question is:
    Is it necessary to fill the PORTAL_EVENT* parameters ? I'm doing something wrong?
    Thanks a lot!

    Hi,
    finally I read that SAP is not allowing eventing from SAP GUI to WD embed applications no more, so I had to make my way to reach my objectives.  As I read, bad news from SAP..
    Thanks anyway.

  • Pass pernr to WebDynro

    Hi Experts,
    I have a requirement in which I need to pass PERNR from MSS team viewer to my Z WDA application.
    I have tried the steps mentioned in the followin thread, but I am not able to get the value of PERNR to my Z application.
    Pass pernr to WebDynro
    Please help me with the requirement.
    Regards,
    Pranay

    Hi,
    as the note stated.
    inside your z wd application subscribe to the portalevent  like this
    DATA lo_api_component  TYPE REF TO if_wd_component.
    DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.
    DATA lo_api_controller  type ref to if_wd_view_controller.
      lo_api_controller ?= wd_this->wd_get_api( ).
    lo_api_component = wd_this->wd_get_api( ).
    lo_portal_manager = lo_api_component->get_portal_manager( ).
    lo_portal_manager->subscribe_event(
        portal_event_namespace = 'urn:com.sap.mss.employeesearch'
        portal_event_name      = 'selection_changed'
        view                   = lo_api_controller
        action                 = 'mss_emp_selected'
    mss_emp_selected is a action , should be defined in the View.
    Edit the ONACTIONESS_EMP_SELECTED method and insert the following 3 parameters as optional  importing parameters.
    PORTAL_EVENT_NAME     
    PORTAL_EVENT_NAMESPACE
    PORTAL_EVENT_PARAMETER
    The portal_event_parameter string contains the following information
    Plan variant (2 characters)
    Object type: (2 characters)
    Start date of the object: (8 characters in the format yyyyMMdd)
    End date of the object: (8 characters in the format yyyyMMdd)
    Object ID: (remainder of the parameter string)
    Example value would be "01P 200706012007123108154711".
    Split the string accordingly and get the employee ID 08154711, use it for your employee data retrieval.

  • Catch standard eventing

    Hi experts:
    As you can see in this document:
    /people/thomas.jung3/blog/2005/12/15/portal-eventing-a-solution-for-global-peace-and-harmony
    We can trigger and catch portal events if we send the event from one ABAP WD to another one.
    I want to create a WD Page in the portal composed by standard WD and non Standard ones. So, my question is the next one: Is it posible to catch from a non standard ABAP WD an even triggered by clicking, for example, in a standard one?.
    Thank you all ¡¡!!

    Hi Thomas:
    Thank you for your answer ¡¡!!.
    Now the next question is "How can I Know the standard JAVA WD event iD, and the parameter that this triggered event "published" and that I need to import to my ABAP WD?".
    So, in my WD ABAP, I Just have to use the tipical 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 = STANDARD_JAVA_WD_NAMESPACE
        PORTAL_EVENT_NAME      = STANDARD_JAVA_WD_EVENT_ID
        VIEW                   = LO_API_CONTROLLER
        ACTION                 = 'RECEIVE_PORTAL_EVENT'
    Thank you in advance

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

  • Examples of using exit plug

    Hi there,
    I am launching a WD app via the portal UWL.  I'm using the action handler "SAPWebDynproABAPlauncher" and launching the app in a new window via the "launchinNewWindow" parameter.
    What I'm trying to achieve is being able exit this WD app and launch a new WD app. 
    I've been advised to use an exit plug in the calling WD app but I'm trying to find a working example of how to code this as I obviously need to be able to construct the URL for the new WD app and somehow pass this URL as part of the exit plug?
    I'm aware the exit plug needs to be defined as an interface outbound plug of the WD components' window but I'm stuck when it comes to how the firing of the exit plug and construction of the URL should be coded.
    Any help would be greatly appreciated.
    Michael

    Hi Michael,
    I'm not sure I understand your last question. Do you want to immediately close and exit app1 whilst launching app2.
    Are you using app1 as some sort of redirect application?
    As you mention that you are using the UWL - I'm guessing you're running within a portal?
    In which case you could also use the portal navigation API which I believe can be fired from anywhere.
    The good thing about this is that you can easily make it relative - easier to migrate through various development environments. But I guess that also depends on whether the app2 is indeed anothe WD app, whether you want to access it through the portal, use different authentication etc.
    eg:
    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( ).
    call method lo_portal_manager->navigate_absolute
      exporting
        navigation_target   = 'http://www.google.com'
        navigation_mode     = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_EXTERNAL
    *    window_features     =
    *    window_name         =
    *    history_mode        = IF_WD_PORTAL_INTEGRATION=>CO_NO_DUPLICATES
    *    target_title        =
    *    context_url         =
    *    post_parameters     = ABAP_FALSE
    *    use_sap_launcher    = ABAP_TRUE
    *    business_parameters =
    *    launcher_parameters =
    hope it helps,
    Cheers,
    Chris

  • How do I use Edge Web Fonts with Muse?

    How do I use Edge Web Fonts with Muse - is it an update to load, a stand alone, how does it interface with Muse? I've updated to CC but have no info on this.

    Hello,
    Is there a reason why you want to use Edge Web Fonts with Adobe Muse?
    Assuming you wish to improve typography of your web pages, you should know that Muse is fully integrated with Typekit. This allows you to access and apply over 500 web fonts from within Muse. Here's how you do it:
    Select a text component within Muse, and click the Text drop-down.
    Select Add Web Fonts option, to pop-open the Add Web Fonts dialog.
    Browse and apply fonts per your design needs.
    Muse also allows you to create paragraph styles that you can save and apply to chunks of text, a la InDesign. Watch this video for more information: http://tv.adobe.com/watch/muse-feature-tour/using-typekit-with-adobe-muse/
    Also take a look at these help files to see if they help you:
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-1.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-2.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-3.html
    Hope this helps!
    Regards,
    Suhas Yogin

  • How can multiple family members use one account?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

  • Iphoto crashing after using mini-dvi to video adapter

    Hi, IPhoto on my Macbook is crashing. I can open it, then as soon as I scroll down it locks up and I have to force quit.
    This started happening right after I used a Mini-DVI to Video Adapter cable to hook my macbook up to my TV. The adapter/s-video connection worked and I was able to see the video on the tv. But iphoto immediately locked up the computer when I went to slide show and now it locks every time I open it.
    Any ideas?
    Thank you:)
    Dorothy

    It means that the issue resides in your existing Library.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

  • How do multiple family members use iTunes.? One account or multiple?

    How do multiple family members use iTunes. One account right now but apps gets added to all devices and iTunes messages go to all devices.  Can multiple accounts be setup and still have ability to share purchased items?

    Hey Ajtt!
    I have an article for you that can help inform you about using Apple IDs in a variety of ways:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Using one Apple ID for iCloud and a different Apple ID for Store Purchases
    You can use different Apple IDs for iCloud and Store purchases and still get all of the benefits of iCloud. Just follow these steps:
    iPhone, iPad, or iPod touch:
    When you first set up your device with iOS 5 or later, enter the Apple ID you want to use with iCloud. If you skipped the setup assistant, sign in to Settings > iCloud and enter the Apple ID you’d like to use with iCloud.
    In Settings > iTunes and App Stores, sign in with the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match). You may need to sign out first to change the Apple ID.
    Mac:
    Enter the Apple ID you want to use for iCloud in Apple () menu > System Preferences > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in Store > Sign In. In iTunes 11, you can also click iTunes Store > Quick Links: Account.
    PC (Windows 8):
    Enter the Apple ID you want to use for iCloud in the Control Panel. To access the iCloud Control Panel, move the pointer to the upper-right corner of the screen to show the Charms bar, click the Search charm, and then click the iCloud Control Panel on the left.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes. In iTunes 10, select Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    PC (Windows 7 and Vista):
    Enter the Apple ID you want to use for iCloud in Control Panel > Network and Internet > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes 10 in Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    Note: Once a device or computer is associated with your Apple ID for your iTunes Store account, you cannot associate that device or computer with another Apple ID for 90 days. Learn more about associating a device or computer to your Apple ID.
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • Using SQVI to generate report of open and released delivery schedule lines

    All,
    I'm using SQVI  to generate an excel spreadsheet for some buyers to show open released schedule lines because they are a 1 line item per scheduling agreement company.
    I used the logical database MEPOLDB instead of a table joint and pulled fields from EKKO(vendor, SA #,&purchasing group), EKPO(Material Number), EKEH(schedule line type), and EKET(delivery date, scheduled qty,previous qty).
    Does this sound like I'll get the results I want on paper as long as I use the right selection criteria, because the report I'm getting isn't quite what I expect? I am unable to identify which lines are authorized to ship vs. trade-off zone, planning, etc. in the report thus far.

    Hi Mark,
                 I have faced same requirement. I am not sure about transporting to TST and PROD. I done by this way.
    After generating SQVI program in DEV , I assigned that program  to a transaction and tested in DEV. Later i have regenarated SQVI in Production. then I assigned the generated Program to same transaction in DEV. And transported the Tcode assignment of program to Production..
    About authorization , if its not sensitive report, BASIS can restrict at transaction level.
    Regards,
    Ravi.

  • Using Mini DVI to VGA adapter on MacBook

    I bought the adapter from Apple & hooked up my LCD monitor to the MacBook, but the video I get on the monitor is different that on my laptop. It has an old screen background & the dock but nothing on my desktop shows up. Also, when I'm plugged to the monitor, my dock disappears on the laptop screen. Is there some setting I need to change? It worked fine with my G4 PowerBook.
    Thanks for any help....
    MacBook   Mac OS X (10.4.6)  

    i use the mini dvi-vga adapter in my classroom almost everyday. It sounds like your new monitor is running as a side by side monitor to your display instead of a "replacement" display.
    To get your projector/monitor to basically show whatever is on your macbook screen once you've hooked up press F7....this should make your projector/monitory become your display with your dock & all of your desktop stuff. Your new monitor will completely mirror your display.
    THis should do what you're looking for.

  • Using mini-DVI to VGA adapter to Samsung display

    I have 2009 late model of mac mini, The text on display looks washed out, not clear or sharp at all from day one, I thought it was the old model of monitor, tried the same cable to another monitor on another computer, SAME. so I thought the problem could be the cable or adapter.
    It's hard for me to believe is the signal from computer. I'm using VGA adapter made by Dynex bought from Best Buy.
    Anybody has suggestions?? Thanks

    Yeah, My old Samsung is lcd synmaster 17", bought many years ago at around $1000. Crazy, crazy price looked back. It's fine when I used it on the retired old Dell. It must be the adapter, trying not to buy another VGA adapter, could not image my next lcd will use one, anyway.
    This cable has only 14 pins vs 15 pins on the other cable, not sure if it matters?? Or if Safari has anything to do with it??
    Thank for you reply...

  • Using S-Video w/ the Mini DVI to Video Adapter

    I just purchased a MacBook last week and I also purchased a Mini DVI to Video adapter for it so I can use the built-in DVD player to watch movies on my TV. I have a composite to composite cable and that worked fine when I connected the cable between the Mini DVI to Video Adapter and my TV. However, when I tried to use a S-Video cable and connected that between the Mini DVI to Video Adapter and my TV; then I got no picture at all. All I saw on the TV was a picture of the MAC desktop w/o the dock and the movie or nothing else played at all.
    Is the composite connection a better connection for the MAC, or, are there some settings I need to work with on the MAC to get the S-Video connection to work?

    I managed to figure this one out, by fluke. The MacBook has to be powered on and ready for user input prior to connecting the mini DVI to video adapter with the s video already connected to it, and to the TV. Once I did it this way, it worked fine. I just thought I'd share this.

Maybe you are looking for