cancel
Showing results for 
Search instead for 
Did you mean: 

Read UWL properties in WebDynpro

Former Member
0 Kudos

Hi,

I have to read a couple of parameters from the UWL in WD.

The UWL for the WD launch part is configured as follows:

[code] <ItemType name="uwl.task.webflow.TS91000001.PP1CLNT100" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynpro" executionMode="default">

<ItemTypeCriteria systemId="PP1CLNT100" externalType="TS91000001" connector="WebFlowConnector"/>

<Actions>

<Action name="launchWebDynPro" groupAction="no" handler="SAPWebDynproLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">

<Properties>

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

<Property name="WebDynproDeployableObject" value="local/WebDynproFromUWL"/>

<b><Property name="DynamicParameter" value="wi_id%3D${item.externalType}%26wi_system%3D${item.systemId}"/></b>

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

</Properties>

<Descriptions default="launchWebDynPro"/>

</Action>

</Actions>

</ItemType>[/code]

The question is more about the dynamicParameter part.

First I added the wi_system and wi_id to the application properties in WD.

Then I used the following code:

[code] IWDWebContextAdapter adapter = WDWebContextAdapter.getWebContextAdapter();

String wi_id = adapter.getRequestParameter("wi_id");

wdContext.currentGenericApplicationElement().setWorkItem(wi_id); [/code]

I am able to retrieve the <b>wi_id</b>, but NOT the wi_system. I retrieve this parameter the same way as shown in the WD code above.

I also used the <b>requestParameterMap</b>, but that gave me information about SaptestID, sap-css-url etc.

Who can help me? Is the UWL dynamic parameter configured correctly?

Sandhya

Accepted Solutions (0)

Answers (2)

Answers (2)

MarkusKlein
Active Contributor
0 Kudos

Hello Sandhya,

when i add more properties of name "DynamicParameter" to the xml file

E.g.

<Property name="DynamicParameter" value="name1=value1"/>

<Property name="DynamicParameter" value="name2=value2"/>

and upload the file again, just the last one of the 2 Properties get uploaded.

The uploaded file looks like this:

<Property name="DynamicParameter" value="name2=value2"/>

seems like a property name has to unique.

How did you solve that?

cheers

Markus

p.s.: we are on NW04s SP9

Former Member
0 Kudos

Hi,

The problem is solved.

Just specify two rows with DynamicParameter.

Greetings,

Sandhya