Skip to Content
0
Former Member
Sep 19, 2007 at 01:31 AM

Portal navigation problem!

29 Views

Hello,

I have two iViews each one linked with ABAP Web Dynpro Applications (say ZWD_APP1 and ZWD_APP2). Now, what i need is that if i click on a button in ZWD_APP1 then ZWD_APP2 should open in a new window without portal and browser toolbars. To achieve this i wrote following code in the onClick method of ZWD_APP1:

data lr_componentcontroller type ref to ig_componentcontroller.
  data l_api_componentcontroller type ref to if_wd_component.
  data lr_port_manager type ref to if_wd_portal_integration.

  lr_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
  l_api_componentcontroller = lr_componentcontroller->wd_get_api( ).
  lr_port_manager = l_api_componentcontroller->get_portal_manager( ).

  data: navigation_target type string,
        navigation_mode   type string,
        window_name       type string,
        lt_param          type wdy_key_value_table,
        ls_param          type wdy_key_value.

  navigation_target = 'ROLES:portal_content/ta_content/iv/crm/ZWD_APP2'.
  navigation_mode   = 'EXTERNAL'.

 call method lr_port_manager->navigate_absolute
    exporting
      navigation_target   = navigation_target
      navigation_mode     = navigation_mode
*      window_features     = navigation_data-window_features
*      window_name         = window_name
*      history_mode        = navigation_data-history_mode
*      target_title        = navigation_data-target_title
*      context_url         = navigation_data-context_url
*      post_parameters     = abap_false
*      use_sap_launcher    = abap_true
*      business_parameters = lt_param
*      launcher_parameters = launcher_parameter_list.
  .

But when i execute and click on the button, a new window does get open but i get the following error message:

No portal desktop is defined for this user.If this problem persists, contact your system administrator.

And also the browser toolbars aren't disabled. What exactly am i doing wrong here? After this i changed the Object properties for ZWD_APP2 according to the following (main ones):

Add Padding Inside Tray: Yes
Allow Client-Side Caching: Yes
Application Name: ZWD_APP2
Application Parameters:
Authentication Scheme: default
Can be Merged: Yes
Default Entry for Folder: No
Entry Point: Yes
Height Type: FIXED
Initial State - Open or Close: Open
Initial State of Navigation Panel - Automatic
Invisible in Navigation Areas: No
Launch in New Window: Display in Separate Window
Name: ZWD_APP2
Namespace: sap
Object is a Template: No
Platform: Web Dynpro for ABAP
Tray Type: PLAIN
Web Dynpro Client: Plain HTML
Window Features: fullscreen=yes

And after this i disabled the navigation_mode line in the ZWD_APP2 onClick method according to following code and then if i execute and click on the button in ZWD_APP1 then the ZWD_APP2 opens in the same content area and not i a new window.

 data lr_componentcontroller type ref to ig_componentcontroller .
  data l_api_componentcontroller type ref to if_wd_component.
  data lr_port_manager type ref to if_wd_portal_integration.

  lr_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
  l_api_componentcontroller = lr_componentcontroller->wd_get_api( ).
  lr_port_manager = l_api_componentcontroller->get_portal_manager( ).

  data: navigation_target type string,
        navigation_mode   type string,
        window_name       type string,
        lt_param          type wdy_key_value_table,
        ls_param          type wdy_key_value.

  navigation_target = 'ROLES:portal_content/ta_content/iv/crm/ZWD_APP2'.
  navigation_mode   = 'EXTERNAL'.

 call method lr_port_manager->navigate_absolute
    exporting
      navigation_target   = navigation_target
*      navigation_mode     = navigation_mode
*      window_features     = navigation_data-window_features
*      window_name         = window_name
*      history_mode        = navigation_data-history_mode
*      target_title        = navigation_data-target_title
*      context_url         = navigation_data-context_url
*      post_parameters     = abap_false
*      use_sap_launcher    = abap_true
*      business_parameters = lt_param
*      launcher_parameters = launcher_parameter_list.
  .

Can somebody please guide me here? I am unable to figure out the right configuration to get ZWD_APP2 open in a new window without any toolbars.

Also FYI, i have created a workset to which i assigned ZWD_APP1 and this workset is assigned to a role which is assigned to my user id. Also all of the Portal objects have the Everyone group with End User option checked.

Thanks and Regards,

Vasu