Role-based Navigation - Tips & Tricks for URL

Tips and tricks for setting role-based navigation on URLs using the

/PCH/CL_OBJ_URL_HANDLER class.

The documentation for navigation to URL can be found in Class /PCH/CL_OBJ_URL_HANDLER.

Application in Fiori Launchpad

In the example, the semantic navigation Material-manage (by default the Fiori app Manage Material) is launched in the Fiori Launchpad of the current system and current client with Single Sign On.

Parameter

Value

Parameter

Value

PROTOCOL

<leer> or https

PATH

/sap/bc/ui2/flp#Material-manage&//C_Product(Product='<OBJECT_KEY>',DraftUUID=guid'00000000-0000-0000-0000-000000000000',IsActiveEntity=true)

ADD_LP_PARAMETERS

X

USE_SSO

X

 

Fiori Application “ProSCMDashboard”

Passing “Material” as Startup Parameter

In this example the application is launched in the Fiori Launchpad of the current system and current client with material number as starting parameter.

Parameter

Value

Parameter

Value

PROTOCOL

https

PATH

/sap/bc/ui5_ui5/ui2/ushell/shells/abap/fiorilaunchpad.html#Material-overviewProNoviaSupplyChain&/i/m/<P_MATNR>

P_MATNR

<OBJECT_KEY>

ADD_LP_PARAMETERS

X

USE_SSO

X

 

Passing “Material” and “Plant” as Startup Parameters

In this example the application is launched in the Fiori Launchpad of the current system and current client with material number and plant as starting parameters.

Parameter 

Value

Parameter 

Value

PROTOCOL

https

PATH

/sap/bc/ui5_ui5/ui2/ushell/shells/abap/fiorilaunchpad.html#Material-overviewProNoviaSupplyChain&/i/m/<P_MATNR>/w/<P_WERKS>

P_MATNR

<OBJECT_KEY>-MATNR

P_WERKS

<OBJECT_KEY>-WERKS

ADD_LP_PARAMETERS

X

USE_SSO

X

Web page with transfer of the object key

Calling the search engine DuckDuckGo with transfer of the object key into the search via specification of a URL path.

Parameter

Value

Parameter

Value

PROTOCOL

<leer> or https

HOST

http://www.duckduckgo.com

PATH

/?q=<OBJECT_KEY>&ia=web

File on a shared directory (Share)

Open a file on a shared directory. The action is delegated to the client, which must support the file scheme and have access to the share. The client decides how to handle the URL (e.g. open the file... ).

Parameter

Value

Parameter

Value

PROTOCOL

file

HOST

fileserver (unc-server-name ohne \\)

PATH

/daten/Produkte/Product%20Sheets/<OBJECT_KEY>/ProductSheet.pdf

MS Teams Chat

Open an MS Teams chat with multiple participants and the object key as topic.

Parameter

Value

Parameter

Value

PROTOCOL

msteams

HOST

teams.microsoft.com

PATH

/l/chat/0/0?users=name1@domain.tld,name2@domain.tld&topicName=<OBJECT_KEY>

Multi-part key

In the case of a multi-part key (e.g. plant data for the material), the detour must be made via an additional parameter. The field names in the key are fixed and must match the definition.

Parameter

Value

Parameter

Value

PROTOCOL

<leer> or https

PATH

/sap/bc/ui2/flp#Material-manage&//C_Product(Product='<Z_MATNR>',DraftUUID=guid'00000000-0000-0000-0000-000000000000',IsActiveEntity=true)/to_Plant(Product='<Z_MATNR>',Plant='<Z_WERKS>',DraftUUID=guid'00000000-0000-0000-0000-000000000000',IsActiveEntity=true)

ADD_LP_PARAMETERS

X

USE_SSO

X

Z_MATNR

<OBJECT_KEY>-MATNR

Z_WERKS

<OBJECT_KEY>-WERKS

Related content

© ProNovia AG | Imprint | Data Protection