cancel
Showing results for 
Search instead for 
Did you mean: 

Navigation to Logon Specific Portal

Former Member
0 Kudos

Hi All

I am displaying Partner's Name in a column of table using Link to Action UI Element. This component is attached to a Tab over a Portal.

If user click on a Partner He should be able to Navigate to the Portal Sevice using Partner's Login credential.

Please suggest how i can achieve this functionality. What code i should write into Action of UI element.

I have got pernr of Partner into method of action and using FM HRXSS_SER_GETSERVICELINK i have got the service link.

Please suggest what i should do ahead.

Thanks in anticipation.

Regards

Nikhilesh Vyas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I did not understand what you mean by "He should be able to Navigate to the Portal Sevice using Partner's Login credential."

What portal service are you talking about?

if your question is about to naviagate to another iView on click of this link to action.

Then i suggest to have a look at if_wd_portal_integration.

data lo_componentcontroller type ref to ig_componentcontroller .
    data lv_navigation_target type string.
    data ls_business_parameters type wdy_key_value_list.
    data ls_business_param like line of ls_business_parameters.
    data ls_launch_parameters type wdy_key_value_list.
    data ls_launch_param like line of ls_launch_parameters.
    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( ).
    
    
    lo_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
    
        lv_navigation_target = "Fill the URL here"
        
* add URL parameters as business parameter.

    ls_business_param-key = `Parm1`.
    ls_business_param-value = `value1`.
    append ls_business_param to ls_business_parameters.
    
    
       call method lo_portal_manager->navigate_absolute
      exporting
        navigation_target   = lv_navigation_target
        navigation_mode     = if_wd_portal_integration=>co_show_external
        window_features     = `toolbar=no, resizable=yes, location=no, width=1120, height=900, fullscreen=yes`
*    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 = ls_business_parameters
*    launcher_parameters =
        .

Edited by: Baskaran Senthivel on Feb 28, 2011 4:33 PM

Former Member
0 Kudos

Thanks for the reply.

Navigation target is Partner's Logon dependent. I mean If user click on one partner then target portal should open with clicked Partner's Login and if another partner choosen then portal should open with another partner's Login.

Former Member
0 Kudos

>

> Thanks for the reply.

>

> Navigation target is Partner's Logon dependent. I mean If user click on one partner then target portal should open with clicked Partner's Login and if another partner choosen then portal should open with another partner's Login.

I think you can achieve this using the above code. You have change the navigation mode to the external_portal_window. In the Navigation target , supply the partners role like roles://pcdlocation.

I would suggest to open a new thread in portal for further questions.

Former Member
0 Kudos

Hi Baskaran

I am calling same method in my program but it always navigate to Portal with current logon. I want Portal should open wither selected PERNR's logon.

I am passing PERNR to businees parameter also. Please let me know if i am missing some thing here.

Since i am able to navigate to portal with current logon instead of PERNR logon. Do i need to pass anything else in business parameter.

ls_business_param-key = `PERNR`.

ls_business_param-value = w_pernr.

append ls_business_param to ls_business_parameters.

call method lo_portal_manager->navigate_absolute

exporting

navigation_target = lv_navigation_target

navigation_mode = if_wd_portal_integration=>co_show_external

window_features = `toolbar=no, resizable=yes, location=no, width=1120, height=900, fullscreen=yes`

  • 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 = ls_business_parameters

  • launcher_parameters =

.

Former Member
0 Kudos

The question is what is there in the lv_navigation_target ? is this the role ? or a Portal page or iView ?

If it is a iView ,what does it do with your Busniness_parameters ?

Do i understand correctly that every PERNR has own portal role / Page ?

I would have designed such a way that Based on the pernr, i would change the navigation target to the respective role/Page