on 05-04-2006 11:19 AM
Hi,
I've to get TaskId's Information using UWL in WebDynpro
from SAP R/3 workflow.
For e.g. Name, Creation Date, Status etc.
I'm able to see property Value in WebDynpro but instead of Property Value I want same Information in WebDynpro without using any Functional Module from R/3
I'm giving the XML file structure which I'm using
I want to display information about the task Id which I'm giving in this configuration.
<?xml version="1.0" encoding="utf-8"?>
<! DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd' [
]>
<UWLConfiguration version="1.0">
<ItemTypes>
<ItemType name="uwl.task.webflow.TS91000129.UWL" connector="WebFlowConnector"
defaultView="Test" executionMode="default" defaultAction="launchWebdynpro">
<ItemTypeCriteria systemId="UWL" externalType="TS91000129" connector="WebFlowConnector"/>
<Actions>
<Action name="launchWebDynPro" handler="SAPWebDynproLauncher"
returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="width=800,height=600,resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
<Properties>
<Property name="WebDynproApplication" value="TEST"/>
<Property name="WebDynproDeployableObject" value="local/TEST1"/>
<Property name="isnewwindow" value="1"/>
<Property name="fruit" value="apple"/>
<Property name="DynamicParameter" value="wi_id=${item.externaId}"/>
<Property name="System" value="LocalSystem"/>
</Properties>
</Action>
</Actions>
</ItemType>
</ItemTypes>
</UWLConfiguration>
Then in WebDynpro application I'm using this code
String text = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("DynamicParameter");
If I give any other property name I'm able to get in WebDynpro application.
But I tried it for Task Id using Dynamic Parameter I was getting a Blank Value.
Please Help Me.
Hi,
Maybe you can call for example RFC SAP_WAPI_GET_HEADER in the corresponding R/3 system. This gives basic data on the workitem in question.
Regards,
Igor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Niharika,
I did the same.
These are the steps you have to do,to retreieve the wi_id.
1. In the application properties add a self-defined parameter called wi_id.
2. Then in the WR code retrieve the wi_id with the help of the WDWebContextAdapater class.
in ur code you have to ask for "wi_id", not for "DynamicParameter".
Job done.
Good luck, Sandhya
Message was edited by: Sandhya Banwarie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Niharika,
I think you have a typo in your code. You can retrieve the work item id by using [code]<Property name="DynamicParameter" value="wi_id=${item.<b>externalId</b>}" />[/code] instead of [code]<Property name="DynamicParameter" value="wi_id=${item.<b>externaId</b>}"/>[/code]
In addition, you can get values from the work item container by extracting them as custom attributes:
[code]<ItemType name="uwl.task.webflow.TS90000001.<system id>" connector="WebFlowConnector" ...>
<ItemTypeCriteria ... />
<CustomAttributes>
<CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="<element name>" ...>
<Attribute name="<element name>" type="string" displayName="<element description>" />
</CustomAttributeSource>
</CustomAttributes>
<Actions>
<Action name="launchWebDynPro" handler="SAPWebDynproLauncher">
<Properties>
...
<Property name="DynamicParameter" value="<custom param>=${item.<element name>}" />
</Properties>
<Descriptions default="" />
</Action>
</Actions>
</ItemType>[/code]
Hope this helps,
Mikko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As far is I know not, because workitems reside in the backend R/3 system. So you have to connect in one way or another.
Regards,
Igor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Igor,
I was doing the same thing..but I was getting only the External Id of that task...
I wantto get other attributes related to that particular task id....like subject,status,creation date....etc.
Thanksfor your help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have you tried getting a parameter called "wi_id" from the Requeststring ? This is how it works for me.
I'm using the UWL on Portal SP15 with PDK.Net and in .Net I can get the id using next line of coding :
Request.Params("wi_id")
Regards,
Igor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.