Show TOC

Relative NavigationLocate this document in the navigation structure

Use

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 (interface IF_WD_PORTAL_INTEGRATION, method NAVIGATE_RELATIVE).

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

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.

Example

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.