Call second portal page from ABAP web dynpro based iview




If you have implemented an ABAP web dynpro iView into your portal you may want to have an exit button which leaves your created web dynpro and call a second page within your portal. See here for creating ABAP web dynpro button.

Once you have created a button on your web dynpro you need to add the following code to the button action method in order to call a second portal page / iView.

What needs to be done Within your ABAP Wdp

Step 1
Within the button action method or wherever you want to call the new portal page add the following code:

* Call New portal Page or iView
  TYPES: BEGIN OF navigation,
    target       type string,
    mode         type string,
    features     type string,
    window       type string,
    history_mode type string,
    target_title type string,
    context_url  type string,
   end of navigation.
  data: wa_navigation type navigation.
  data: lr_compcontroller type ref to ig_componentcontroller,
        l_component type ref to if_wd_component.
  data lr_port_manager type ref to if_wd_portal_integration.
  lr_compcontroller =   wd_this->get_componentcontroller_ctr( ).
  l_component = lr_compcontroller->wd_get_api( ).
  lr_port_manager = l_component->get_portal_manager( ).
* The value inserted into the navigation-target field can be found in the Portal
* content administration tab of your portal. It is the ID or PCD Location field
  wa_navigation-target =
  'ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/
com.sap.pct.erp.ess.pages/com.sap.pct.erp.ess.overview'. wa_navigation-mode = '0'. "0 = INTERNAL(same page) and 1 = EXTERNAL(new page). call method lr_port_manager->navigate_absolute EXPORTING navigation_target = wa_navigation-target navigation_mode = wa_navigation-mode. * window_features = wa_navigation-features * window_name = wa_navigation-window * history_mode = wa_navigation-history_mode * target_title = wa_navigation-target_title * context_url = wa_navigation-context_url * post_parameters = ABAP_FALSE * use_sap_launcher = ABAP_TRUE * business_parameters = * launcher_parameters = .


Further Info:

The navigation-target field is populated from the iview or page ID field within the portal content administrator, But the 'PCD:' value needs to be replaced by 'ROLES://'.

Related Articles

Change portal theme attribute and CSS values
Add back button to your portal ABAP web dynpro based iview, returns user to page iview was called from
Link directly to SAP Portal iView page
Display ABAP web dynpro as an SAP Portal iView
Import / Export portal theme styling and CSS files
Create new SAP portal desktop and assign theme to it
Add back button to your portal ABAP web dynpro based iview, returns user to page iview was called from
Create new SAP portal theme to change the look and feel of your SAP portal
Assign SAP portal theme desktop to specific users
SAP Portal development - Provide SAP functionality to users via the SAP ESS MSS Portal
Pass portal user ID to bespoke web dynpro for ABAP
Change SAP Portal theme to improve look and feel and add new functionality