Skip to Content
0
Former Member
Apr 24, 2007 at 04:18 PM

Customized UWL View - Strange Behaviour...

14 Views

Hi SDNers,

I have recently implented EP7.0 and as part of this I have activated the Universal Worklist.

I have put in place some custom workflows in the backend ECC system within which i have tasks that are required to appear in the UWL...lets call them A and B.

For these tasks i have created the item type and view entries in the UWL config and uploaded this file into the portal.

All of this works fine and I can view the tasks with their relevant column settings etc.

The next step was that i wanted to have two different tabs on the UWL...one for task type 'A' and the other for task type 'B'.

To achieve this i created a navigation node framework and assigned the view for 'A' to one node and the view for 'B' for the other node.

The problem i have is that when i initially log in, both of the tasks appear in tab 'A'. However when I click on tab 'B' the tasks get re-distributed correctly!!?!?!

Everytime I navigate back to the worklist the tabs are displayed correctly, however if I log off and log back in again they appear in the same tab...grrr!

Does anyone know why this happens and if it is possible to prevent such an occurence...it has become very frustrating!

see UWL config file ...

[code]<?xml version="1.0" encoding="utf-8"?>

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

<UWLConfiguration version="1.0">

<Actions>

<Action name="DisplayExpenseForm" groupAction="" handler="SAPAppLauncher" referenceBundle="com.sap.pct.erp.mss.tra.DisplayForm" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="toolbar=no,menubar=no">

<Properties>

<Property name="SAPIntegrator" value="ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.roles/com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.area_travel_expenses/com.sap.pct.erp.ess.tripform"/>

<Property name="sap.xss.tra.TripComponent" value=" "/>

<Property name="sap.xss.tra.PersNo" value="${item.EmployeeNumber}"/>

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

<Property name="sap.xss.tra.TripNo" value="${item.TripNumber}"/>

</Properties>

<Descriptions default="Display Expense Form"/>

</Action>

</Actions>

<ItemTypes>

<ItemType name="uwl.task.webflow.decision.TS92500003" connector="webFlowConnector" defaultView="ApproveTrip" defaultAction="LaunchApproval" executionMode="default">

<ItemTypeCriteria externalType="TS92500003" connector="webFlowConnector"/>

<CustomAttributes>

<CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="webflowContainter" cacheValidity="final">

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

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

<Attribute name="LOCATION" type="string" displayName="Location"/>

<Attribute name="REASON" type="string" displayName="Reason"/>

<Attribute name="Reimbursement" type="double" displayName="Reimbursement"/>

<Attribute name="BEGINDATE" type="date" displayName="Start Date"/>

<Attribute name="ENDDATE" type="date" displayName="End Date"/>

</CustomAttributeSource>

</CustomAttributes>

<Actions>

<Action name="LaunchApproval" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes">

<Properties>

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

<Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes,directories=no"/>

<Property name="openInNewWindow" value="yes"/>

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

<Property name="WebDynproNamespace" value="SAP"/>

<Property name="DynamicParameter" value="p_tripno=${item.TripNumber}&amp;p_pernr=${item.EmployeeNumber}" />

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

</Properties>

<Descriptions default="Launch Approval Application" />

</Action>

<Action reference="DisplayExpenseForm" />

</Actions>

</ItemType>

<ItemType name="uwl.task.webflow.decision.TS92500006" connector="WebFlowConnector" defaultView="CheckTripFacts" defaultAction="CheckTripFacts" executionMode="default">

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

<CustomAttributes>

<CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="final">

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

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

<Attribute name="LOCATION" type="string" displayName="Location"/>

<Attribute name="REASON" type="string" displayName="Reason"/>

<Attribute name="Reimbursement" type="double" displayName="Reimbursement"/>

<Attribute name="BEGINDATE" type="date" displayName="Start Date"/>

<Attribute name="ENDDATE" type="date" displayName="End Date"/>

</CustomAttributeSource>

</CustomAttributes>

<Actions>

<Action name="CheckTripFacts" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes">

<Properties>

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

<Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes,directories=no"/>

<Property name="openInNewWindow" value="yes"/>

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

<Property name="WebDynproNamespace" value="SAP"/>

<Property name="DynamicParameter" value="p_tripno=${item.TripNumber}&amp;p_pernr=${item.EmployeeNumber}" />

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

</Properties>

<Descriptions default="Check Trip Facts"/>

</Action>

<Action reference="DisplayExpenseForm" />

</Actions>

</ItemType>

</ItemTypes>

<Views>

<View name="ApproveTrip" selectionMode="SINGLESELECT" width="100%"

supportedItemTypes="uwl.task.webflow.decision.TS92500003"

columnOrder="TripNumber, statusicon, subject, priority, creatorId, createdDate, dueDate, processor, Reimbursement, ApproveCol, RejectCol, SendBackCol"

sortby="priority:descend, dueDate:ascend, createdDate:descend"

tableDesign="ALTERNATING"

visibleRowCount="10"

headerVisible="yes"

queryRange="undefined"

tableNavigationFooterVisible="yes"

tableNavigationType="CUSTOMNAV"

actionRef="" refresh="300"

dueDateSevere="86400000"

dueDateWarning="259200000"

emphasizedItems="new"

displayOnlyDefinedAttributes="yes"

dynamicCreationAllowed="yes"

actionPosition="bottom">

<Descriptions default="">

<ShortDescriptions>

<Description Language="en" Description="Approve Trip"/>

</ShortDescriptions>

</Descriptions>

<DisplayAttributes>

<DisplayAttribute name="EMPLOYEENUMBER" type="string" width="" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0">

<Descriptions default="Personnel No" />

</DisplayAttribute>

<DisplayAttribute name="Location" type="string" width="" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0">

<Descriptions default="Location" />

</DisplayAttribute>

<DisplayAttribute name="Reason" type="string" width="" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0">

<Descriptions default="Reason" />

</DisplayAttribute>

<DisplayAttribute name="BEGINDATE" type="date" width="" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0">

<Descriptions default="Start Date" />

</DisplayAttribute>

<DisplayAttribute name="ENDDATE" type="date" width="" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0">

<Descriptions default="End Date" />

</DisplayAttribute>

<DisplayAttribute name="Reimbursement" type="double" width="" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0">

<Descriptions default="Reimbursement" />

</DisplayAttribute>

<DisplayAttribute name="ApproveCol" type="checkbox" width="" actionRef="ApproveTrip" vAlign="TOP" hAlign="CENTER">

<Descriptions default="Approve Trip" />

</DisplayAttribute>

<DisplayAttribute name="RejectCol" type="checkbox" width="" actionRef="RejectTrip" vAlign="TOP" hAlign="CENTER">

<Descriptions default="Reject Trip" />

</DisplayAttribute>

<DisplayAttribute name="SendBackCol" type="checkbox" width="" actionRef="SendBackTrip" vAlign="TOP" hAlign="CENTER">

<Descriptions default="Send Back" />

</DisplayAttribute>

</DisplayAttributes>

<Actions>

<Action userDecision="yes" name="ApproveTrip" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.Approve" returnToDetailViewAllowed="no" launchInNewWindow="no">

<Properties>

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

</Properties>

</Action>

<Action userDecision="yes" name="SendBackTrip" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.SendBack" returnToDetailViewAllowed="no" launchInNewWindow="no">

<Properties>

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

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

</Properties>

</Action>

<Action userDecision="yes" name="RejectTrip" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.Reject" returnToDetailViewAllowed="no" launchInNewWindow="no">

<Properties>

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

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

</Properties>

</Action>

<Action reference="submitUserDecisions" />

<Action reference="refresh" />

</Actions>

</View>

<View name="CheckTripFacts" selectionMode="SINGLESELECT" width="100%"

supportedItemTypes="uwl.task.webflow.decision.TS92500006"

columnOrder="TripNumber, statusicon, subject, priority, creatorId, createdDate, dueDate, Processor, Reimbursement, ConsistentCol, NonConsistentCol"

sortby="createdDate:descend"

tableDesign="ALTERNATING"

visibleRowCount="10"

headerVisible="yes"

queryRange="undefined"

tableNavigationFooterVisible="yes"

tableNavigationType="CUSTOMNAV"

actionRef=""

refresh="300"

dueDateSevere="86400000"

dueDateWarning="259200000"

emphasizedItems="new"

displayOnlyDefinedAttributes="yes"

dynamicCreationAllowed="no"

actionPosition="bottom">

<Descriptions default="">

<ShortDescriptions>

<Description Language="en" Description="Check Trip Facts"/>

</ShortDescriptions>

</Descriptions>

<DisplayAttributes>

<DisplayAttribute name="EMPLOYEENUMBER" type="string" width="" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0">

<Descriptions default="Personnel No" />

</DisplayAttribute>

<DisplayAttribute name="Location" type="string" width="" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0">

<Descriptions default="Location" />

</DisplayAttribute>

<DisplayAttribute name="Reason" type="string" width="" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0">

<Descriptions default="Reason" />

</DisplayAttribute>

<DisplayAttribute name="BEGINDATE" type="date" width="" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0">

<Descriptions default="Start Date" />

</DisplayAttribute>

<DisplayAttribute name="ENDDATE" type="date" width="" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0">

<Descriptions default="End Date" />

</DisplayAttribute>

<DisplayAttribute name="Reimbursement" type="double" width="" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0">

<Descriptions default="Reimbursement" />

</DisplayAttribute>

<DisplayAttribute name="ConsistentCol" type="checkbox" width="" actionRef="Consistent" vAlign="TOP" hAlign="CENTER">

<Descriptions default="Trip Facts are Consistent" />

</DisplayAttribute>

<DisplayAttribute name="NonConsistentCol" type="checkbox" width="" actionRef="Inconsistent" vAlign="TOP" hAlign="CENTER">

<Descriptions default="Need to Change Trip Facts has arisen" />

</DisplayAttribute>

</DisplayAttributes>

<Actions>

<Action userDecision="yes" name="Consistent" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.Consistent" returnToDetailViewAllowed="no" launchInNewWindow="no">

<Properties>

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

</Properties>

</Action>

<Action userDecision="yes" name="Inconsistent" groupAction="yes" handler="UserDecisionHandler" referenceBundle="com.sap.pct.erp.mss.tra.CorrectionRequired" returnToDetailViewAllowed="no" launchInNewWindow="no">

<Properties>

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

</Properties>

</Action>

<Action reference="submitUserDecisions" />

<Action reference="refresh" />

</Actions>

</View>

</Views>

<NavigationNode name="Custom_BarCap" view="" referenceGroup="UWL_ADD_DYNAMIC_VIEWS" visible="yes" keepItemCountUpdated="yes">

<NavigationNode name="ApproveTripNode" view="ApproveTrip" referenceGroup="UWL_PERSONAL" visible="yes" keepItemCountUpdated="yes" >

<Descriptions default="Approve Trips"/>

</NavigationNode>

<NavigationNode name="CheckTripFactsNode" view="CheckTripFacts" referenceGroup="UWL_PERSONAL" visible="yes" keepItemCountUpdated="yes" >

<Descriptions default="Check Trips"/>

</NavigationNode>

</NavigationNode>

</UWLConfiguration>

[/code]