Show TOC Start of Content Area

Procedure documentation Sending Parameters to Navigation Target  Locate the document in its SAP Library structure

You can specify parameters to send to whatever navigation target is selected at runtime for the OBN link.

Procedure

URL parameters for the navigation target are specified when creating the OBN link.

// Create the OBN factory

IOBNService obnService = (IOBNService) WDPortalUtils
    .getServiceReference(IOBNService.
KEY);

OBNFactory obnFactory = obnService.getObjectsFactory();

 

// Create an OBN metadata object (this example is for Web Dynpro)

IOBNMetadata obnMetaData = obnFactory
    .createOBNMetadata(
"myBO","","myOp",
        WDClientUser.getCurrentUser().getSAPUser());

 

// Create an OBN parameter for source role navigation

String paramName = "parameterName";

String paramValue = "parameterValue";

 

IOBNParameterData myParam = myOBNFactory
    .createOBNParameterData(paramValue);

 

// Add parameter to OBN metadata

myMetaData.setParameter(paramName, myParam);

 

 

End of Content Area