Hi SAP Experts,
We have a requirement to make rejection reason mandatory while approving the leave request by the manager in UWL,
To achieve the same I have added the below code to our UWL XML file, but we are still not achieving the desired result .
Have you also implemented the same in your current account or earlier. Can you check below code?Your support is required,
<ItemType name="uwl.task.webflow.TS12300097.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="webflowView" defaultAction="launchDemoIView" executionMode="default">
<ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType="TS12300097" connector="WebFlowConnector"/>
<Actions>
<Action name="launchDemoIView" groupAction="" handler=" IViewLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=no,directories=no">
<Properties>
<Property name="display_order_priority" value="5"/>
<Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=no,directories=no"/>
<Property name="openInNewWindow" value="yes"/>
<Property name="iview" value="pcd:portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.iviews/com.sap.pct.erp.ess.working_time/com.sap.pct.erp.ess.leaverequestapprover"/>
<Property name="DynamicParameter" value="wi_id=${item.externalId}"/>
</Properties>
</Action>
<Action name="approve" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="UserDecisionNote" value="mandatory"/>
<Property name="decisionKey" value="1"/>
<Property name="UserDecisionTitle" value="Enter Approval/Rejection Comments"/>
</Properties>
<Descriptions default="Approve"/>
</Action>
<Action name="reject" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="UserDecisionNote" value="mandatory"/>
<Property name="decisionKey" value="2"/>
<Property name="UserDecisionTitle" value="Enter Approval/Rejection Comments"/>
</Properties>
<Descriptions default="Reject"/>
</Action>
</Actions>
</ItemType>