Show TOC

 Relative NavigationLocate this document in the navigation structure

The relative path navigation variant can be used, for example, for delivering content across several directories.

To activate relative path navigation for the portal in Web Dynpro ABAP, use the portal manager ( IF_WD_PORTAL_INTEGRATION , method NAVIGATE_RELATIVE).

You can generate a template using the wizard , in which you then enter values.

  call method lr_port_manager->navigate_to_object
    exporting
      base_url            = navigation_data-base_url
      levels_up           = levels_up
      path                = pathlist
      navigation_mode     = navigation_data-navigation_mode
      window_features     = navigation_data-window_features
      window_name         = navigation_data-window_name
      history_mode        = navigation_data-history_mode
      target_title        = navigation_data-target_title
      context_url         = navigation_data-context_url
      use_sap_launcher    = abap_true
      business_parameters = bus_parameter_list
      launcher_parameters = launcher_parameter_list.
 

Relative navigation can be used from the defined starting point.

Overview of Parameters

Name

Optional

Possible Values

Description

BASE_URL

Path (type STRING)

Starting point for relative navigation

LEVELS_UP

Numerical value (type STRING)

Number of navigation steps upwards in the navigation structure

PATH

Path (type STRING_TABLE)

Relative path list for the target application

You use the remaining parameters in the same way as for Absolute Navigation .

Tip BASE_URL: pcd:role1/folder1/folder2/fodler3/workset1/page1

LEVELS_UP: 3

PATHLIST: folder4/workset2/page2

The result shows: pcd:role1/folder1/folder2/folder4/workset2/page2

The BASE_URL does not have to be specified. If it is not, the current URL is used. PATH is a list of the nearest nodes. In this case, these would be:

folder4

workset2

page2

Example

You can find an example in the system in Web Dynpro Component WDR_TEST_PORTAL_NAV in Web Dynpro application, WDR_TEST_PORTAL_NAV_PAGE.