Summary
SymptomApprove Leave Request and Clock-in/Clock-out corrections workitems are not Launched correctly from UWL inbox.
Other terms
BP Manager Self-Service Add-On 1.0, Approve Leave Request,Clock-in/Clock-out correction
Reason and Prerequisites
OBN parameters not passed to the applications through UWL.
Solution
Install the latest version of BP Manager Self-Service Add-On 1.0 from SAP Service Marketplace.
Alternatively make modifications to the UWL configuration file 'com.sap.pct.erp.mss.addon.xml' for each issue as given below.
The UWL file can be accessed through System Administration->System Configuration->Universal Worklist and Workflow.Click on "Click to Manage Item Types and View Definitions".Under the "Current Configurations" tab you can find the UWL configuration file.
Replace the code section for the PCD Path of the MSS role
********************************************************************
<Property name="page" value="ROLES://portal_content/com.sap.pct/line_manager/com.sap.pct.erp.mss.bp_folder/com.sap.pct.erp.mss.roles/com.sap.pct.erp.mss.manager_self_service/com.sap.pct.erp.mss.manager/overview"/>
***********************************************************************
With the code below:
***********************************************************************
<Property name="page" value="ROLES://portal_content/com.sap.pct/line_manager/com.sap.pct.addon.mss.bp_folder/com.sap.pct.addon.mss.PACKAGEMSS/com.sap.pct.addon.mss.Rolesmss/com.sap.pct.addon.mss.Manager_Self-Service/com.sap.pct.addon.mss.Manager_Self-Service/Overview"/>
***********************************************************************
1. The Approve Leave Request application does not Launch correctly for an employee.This is because the OBN parameters are not getting passed to the application through UWL configuration file.
Replace the code section for Approve Leave Request
*********************************************************************
<ItemType name="uwl.task.webflow.TS12300097.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="defaultAction" executionMode="default"> <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType=" TS12300097" connector="WebFlowConnector"/> <CustomAttributes> <CustomAttributeSource id="WEBFLOW_CONTAINER " objectIdHolder="externalObjectId" objectType="WebflowContainer" cacheValidity="final"> <Attribute name="REQUESTID" type="string" displayName="Request ID"/> </CustomAttributeSource> </CustomAttributes> <Actions> <Action name="defaultAction" groupAction="" handler="ObjectNavigationLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no"> <Properties> <Property name="Operation" value="approveleaverequest"/> <Property name="ObjectName" value="employee"/> <Property name="ObjectValue" value="wi_id=${item.externalId}" /> <Property name="System" value="SAP_ERP_HumanResources"/> <Property name="openInNewWindow" value="true"/> <Property name="DynamicParameter" value="wi_id=${item.externalId}&REQUEST_ID=${item.REQUESTID}"/> </Properties> <Descriptions default="defaultAction"/> </Action> </Actions> </ItemType>
*********************************************************************
with the below given code :
*********************************************************************
<ItemType name="uwl.task.webflow.TS21500003.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="defaultAction" executionMode="default"> <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType=" TS21500003" connector="WebFlowConnector"/> <CustomAttributes> <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="WebflowContainer" cacheValidity="final"> <Attribute name="REQUESTID" type="string" displayName="Request ID"/> </CustomAttributeSource> </CustomAttributes> <Actions> <Action name="defaultAction" groupAction="" handler="ObjectNavigationLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes"> <Properties> <Property name="Operation" value="approveleaverequest"/> <Property name="ObjectValue" value="LRF_REQUEST_ID=${item.REQUESTID}" /> <Property name="DynamicParameter" value="LRF_REQUEST_ID=${item.REQUESTID}"/> <Property name="openInNewWindow" value="true"/> <Property name="ObjectName" value="employee"/> <Property name="System" value="SAP_ERP_HumanResources"/> </Properties> <Descriptions default="defaultAction"/> </Action> </Actions> </ItemType>
***********************************************************************
2. For the Work item for Clock-in/Out corrections replace the code
***********************************************************************
<ItemType name="uwl.task.webflow.TS90900026.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="defaultAction" executionMode="default"> <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType=" TS90900026" connector="WebFlowConnector"/> <Actions> <Action name="defaultAction" groupAction="" handler="ObjectNavigationLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no"> <Properties> <Property name="Operation" value="approvecorrections"/> <Property name="ObjectValue" value="employee"/> <Property name="ObjectValue" value="FORM_POWL=test&REQUEST_ID=test"/> <Property name="ObjectName" value="employee"/> <Property name="System" value="SAP_ERP_HumanResources"/> <Property name="openInNewWindow" value="true"/> </Properties> <Descriptions default="defaultAction"/> </Action> </Actions> </ItemType>
**********************************************************************
with the below given code:
Please Note: This section is a commented code block as Clock In/Out is not shipped with a standard Task Item and the Task Item Id would have to be replaced with the appropriate Task Item Id.
***********************************************************************
<!--<ItemType name="uwl.task.webflow.TS90900026.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="defaultAction" executionMode="default"> <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType=" TS90900026" connector="WebFlowConnector"/> <CustomAttributes> <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="WebflowContainer" cacheValidity="final"> <Attribute name="REQUESTID" type="string" displayName="Request ID"/> </CustomAttributeSource> </CustomAttributes> <Actions> <Action name="defaultAction" groupAction="" handler="ObjectNavigationLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes"> <Properties> <Property name="Operation" value="approvecorrections"/> <Property name="ObjectValue" value="REQUEST_ID=${item.REQUESTID}&FROM_POWL=X"/> <Property name="DynamicParameter" value="REQUEST_ID=${item.REQUESTID}&FROM_POWL=X"/> <Property name="ObjectName" value="employee"/> <Property name="System" value="SAP_ERP_HumanResources"/> <Property name="openInNewWindow" value="true"/> </Properties> <Descriptions default="defaultAction"/> </Action> </Actions> </ItemType> -->
***********************************************************************
3. If you have Task ID TS21500004 for Leave Request application then replace the below code with
<ItemType name="uwl.task.webflow.TS21500004.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="defaultAction" executionMode="default"> <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType=" TS21500004" connector="WebFlowConnector"/> <Actions> <Action name="defaultAction" groupAction="" handler="ObjectNavigationLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no"> <Properties> <Property name="Operation" value="approveleaverequest"/> <Property name="ObjectValue" value="LRF_REQUEST_ID=${item.REQUESTID}"/> <Property name="ObjectName" value="employee"/> <Property name="System" value="SAP_ERP_HumanResources"/> <Property name="openInNewWindow" value="true"/> </Properties> <Descriptions default="defaultAction"/> </Action> </Actions> </ItemType>
*********************************************************************
with the below given code :
*********************************************************************
<ItemType name="uwl.task.webflow.TS21500004.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="defaultAction" executionMode="default"> <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType=" TS21500004" connector="WebFlowConnector"/> <CustomAttributes> <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="WebflowContainer" cacheValidity="final"> <Attribute name="REQUESTID" type="string" displayName="Request ID"/> </CustomAttributeSource> </CustomAttributes> <Actions> <Action name="defaultAction" groupAction="" handler="ObjectNavigationLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes"> <Properties> <Property name="Operation" value="approveleaverequest"/> <Property name="ObjectValue" value="LRF_REQUEST_ID=${item.REQUESTID}" /> <Property name="DynamicParameter" value="LRF_REQUEST_ID=${item.REQUESTID}"/> <Property name="openInNewWindow" value="true"/> <Property name="ObjectName" value="employee"/> <Property name="System" value="SAP_ERP_HumanResources"/> </Properties> <Descriptions default="defaultAction"/> </Action> </Actions> </ItemType>
***********************************************************************
No comments:
Post a Comment