cancel
Showing results for 
Search instead for 
Did you mean: 

Dobuts in modifying an UWL XML file

Former Member
0 Kudos
274

Hi Friends,

We have a requirement in UWL for a custom task TS90000104; the user should get the user decision note once he clicks the work item in UWL, where in he can enter the rejection reasons while rejecting a leave request. For this we need to modify the XML file associated with the task, we need the set the value of the property name UserDecisionNote to true.I have the following doubts in that:

Will there be an XML file associated with every custom task?, If so where we can find them, If not then will there be a common XML file which we need to copy and change the task id and the other property names and then upload it? Please clarify.

View Entire Topic
Former Member
0 Kudos

solved

Former Member
0 Kudos

Hi,

Can u plz share your solution as I have requirement where in need to restrict(hide) workitems coming from few task ids...so even i was wondering if there is xml related to each and every taskid.

Regards,

JJ

Former Member
0 Kudos

I would appreciate knowing the solution as well. I'm trying to implement workflow through the portal and I can't get my rejection reason SOFM tasks to advance with dialog.

Former Member
0 Kudos

you need to modify the existing xml file and make the property value of user decision not to 'true', corresponding to your task.

<Property name="UserDecisionNote" value="true"/>

check this link

[http://help.sap.com/saphelp_nw04/helpdata/en/7a/df014b037141ca9afc6433ed42b519/content.htm]

Former Member
0 Kudos

Thanks for the reply sapient. I had a bit of a difficult time getting the XML file set up correctly because between the SAP help, the UWL with SAP Netweaver Portal book and various online examples, I was getting conflicting information as to how to do it. First of all, when the UWL initially loads, you apparently see the template defined in the XML file. After the UWL refreshes, it pulls the information from the actual workitem/definition and it overrides some of the settings in the XML. I have a decision step with 3 outcomes. If I don't define all 3 steps in the XML, it doesn't work. I want my replace and reject steps to have the note as mandatory while approve doesn't require it. My first few attempts resulted in all 3 outcomes requiring a note to be attached. It seems the order you use to define the actions matters and the optional outcome must be defined first. Here's the XML that worked for me..hopefully it is helpful to someone else:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'

<UWLConfiguration version="1.0">

<ItemTypes>

<!-- Check Expense Report (Trip) -->

<ItemType name="uwl.task.webflow.decision.TS91000143.ECDCLNT020" connector="WebFlowConnector"

defaultView="com.sap.pct.erp.mss.tra.view.TripCheckView"

defaultAction="com.sap.pct.erp.mss.tra.action.DisplayExpenseForm">

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

<CustomAttributes>

<CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId"

objectType="WebflowContainer" cacheValidity="final">

<Attribute name="TripNumber" displayName="Trip Number"/>

<Attribute name="EmployeeNumber" displayName="Employee Number"/>

</CustomAttributeSource>

</CustomAttributes>

<Actions>

<Action reference="com.sap.pct.erp.mss.tra.action.DisplayExpenseForm"/>

<Action name="launchSAPDetails" handler="SAPMiniAppLauncher">

<Properties>

<Property name="display_order_priority" value="uwlExcludeFromPreviewDetail"/><!-- Hide action->

</Properties>

</Action>

<!--Action name="viewPreviewDetail" handler="SAPMiniAppLauncher">

<Properties>

<Property name="display_order_priority" value="uwlExcludeFromPreviewDetail"/>

</Properties>

</Action-->

<Action name="approved" groupAction="yes" handler="UserDecisionHandler"

returnToDetailViewAllowed="yes" launchInNewWindow="no">

<Properties>

<Property name="decisionKey" value="3"/>

<Property name="UserDecisionTitle" value="Approve"/> </Properties>

<Descriptions default="Approved"/> </Action>

<Action name="rejected" groupAction="yes" handler="UserDecisionHandler"

returnToDetailViewAllowed="yes" launchInNewWindow="no">

<Properties>

<Property name="UserDecisionNote" value="mandatory"/>

<Property name="decisionKey" value="2"/> </Properties>

<Descriptions default="Rejected"/> </Action>

<Action name="replaced" groupAction="yes" handler="UserDecisionHandler"

returnToDetailViewAllowed="yes" launchInNewWindow="no">

<Properties>

<Property name="UserDecisionNote" value="mandatory"/>

<Property name="decisionKey" value="1"/> </Properties>

<Descriptions default="Replaced"/> </Action>

</Actions>

</ItemType>

</ItemTypes>

</UWLConfiguration>

I used the decisionKey method to designate each outcome. FM sap_wapi_decision_read works nicely to help you figure out the key number for each outcome.

Former Member
0 Kudos

Tommy this is a great post along with your other one. I have been able to make changes that I think are right to my file. Initially when I go into the UWL for this object, the textbox appears and then once UWL updates the box disappears. Any ideas as to why this would happen?

Thanks

RWW

shyam_ravindranathan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Tommy