Start of Content Area

Background documentation SAPWebDynproLauncher  Locate the document in its SAP Library structure

Purpose

You can use SAPWebDynproLauncher to launch an Web Dynpro for Java applications.

Provider specific Information

SAPWebDynproLauncher is provider agnostic. Items may belong to any connector.

Supported Actions

Action name can be anything.

Properties

SAPWebDynproLauncherexpects the following properties:

      WebDynproApplication (mandatory)

Application Name of the Web Dynpro to be launched

      WebDynproDeployableObject (mandatory)

Namespace of the Web Dynpro to be launched

      System (optional)

System alias of the system in the portal system landscape, where to launch the Web Dynpro, Default is the system where the work item is originated.

      DynamicParameter (optional)

Dynamic parameters (name/value pairs, separated by &) to be passed the Web Dynpro application

      DebugMode (optional)

Values are “true” and “False”

All other properties will be passed as name=URL encoded value to the Web Dynpro application.

Example

Following is the definition of an action that launches a Web Dynpro application WebDynproConsole with the dynamic parameters fruit=apple&vegetable=potato:

<Action name="launchWebDynPro" handler="SAPWebDynproLauncher">

  <Properties>

    <Property name="WebDynproApplication" value="WebDynproConsole"/>

    <Property name="WebDynproDeployableObject" value="sap.com/tc~wd~tools"/>

   <Property name="fruit" value="apple"/>

   <Property name="DynamicParameter" value="vegetable=potato"/>

  </Properties>

 </Action>

Note

This Web Dynpro application will be launched on the Web AS configured for your back-end system where the work is originated. For example, if your work item belongs to the system MY_SAP_R3, and the Web AS for MY_SAP_R3 is defined in the Portal System Landscape as myWASserver:serverPort, then the application is launched as  http://myWASserver:serverPort/webdynpro/dispatcher/sap.com/tc~wd~tools/WebDynproConsole?vegetable=potato&fruit=apple.If your WebDynpro application is not deployed on that server you have to configure the action as following. Define another system in the Portal System Landscape, for example, MY_SAP_R3_WD.  Then set the Web AS of that system to be the Web AS where your WebDynpro application is deployed. And add the System property to the Action definition:

<Action name="launchWebDynPro" handler="SAPWebDynproLauncher">

  <Properties>

    <Property name="WebDynproApplication" value="WebDynproConsole"/>

    <Property name="WebDynproDeployableObject" value="sap.com/tc~wd~tools"/>

   <Property name="fruit" value="apple"/>

   <Property name="DynamicParameter" value="vegetable=potato"/>

    <Property name="System" value="MY_SAP_R3_WD"/>

  </Properties>

 </Action>

 

To launch the Web Dympro application on the Portal use SAP_LocalSystem:

<Action name="launchWebDynPro" handler="SAPWebDynproLauncher">

  <Properties>

    <Property name="WebDynproApplication" value="WebDynproConsole"/>

    <Property name="WebDynproDeployableObject" value="sap.com/tc~wd~tools"/>

   <Property name="fruit" value="apple"/>

   <Property name="DynamicParameter" value="vegetable=potato"/>

    <Property name="System" value="SAP_LocalSystem"/>

  </Properties>

 </Action>

 

The item types for launching the Web Dynpro applications can be configured in two ways. 

...

       1.      Via XML Configuration

<ItemTypes>

 <ItemType name="uwl.task.webflow.TS91100019" connector="WebFlowConnector"

defaultView="DefaultView" defaultAction="launchSAPAction">

  <ItemTypeCriteria connector="WebFlowConnector" externalType="TS91100019"/>

  <Actions>

   <Action name="launchWebDynPro"  handler="SAPWebDynproLauncher">

    <Properties>

     <Property name="WebDynproApplication" value="MyApplication"/>

     <Property name="WebDynproDeployableObject" value="sap.com/tc~wd~tools"/>

     <Property name="DynamicParameter" value="wi_id=${item.externaId}"/>

    </Properties>

   </Action>

  </Actions>

 </ItemType>

</ItemTypes>

 

       2.      Via back-end visualization transaction SWFVISUfor visualization type Java Web Dynpro.

The table below summarizes the mapping between the launcher parameters and the visualization parameters.

Launcher Parameter

Visualization Parameter

WebDynproApplication

APPLICATION

WebDynproDeployableObject

PACKAGE

DynamicParameter

DYNPARAM

System

SYSTEM_ALIAS

 

The default action will be set to launchWebDynPro.

Note

·         The UWL system configuration page includes a Web Dynpro system field, which can be used to configure the system alias of Web Dynpro application. For example, the UWL is configured for system alias ALIAS1 that has Web AS WAS1, and the Web Dynpro applications for work items coming from system ALIAS1 have to be launched against Web AS WAS2. For this situation a new system alias ALIAS2 should be defined with Web AS WAS2, and in the UWL configuration page the Web Dynpro system field for system ALIAS1 should be filled with ALIAS2. If System parameter is present for the action in the item type XML configuration or SWFVISU it will take precedence.

·         If the default action you want to use (action triggered by clicking on the subject line) is not launchWebDynPro, you have to use XML configuration.

·         Above all the references to System implies the system alias defined in the Portal System Landscape.

End of Content Area