cancel
Showing results for 
Search instead for 
Did you mean: 

UWL Leave request Rejection reason mandatory

imran_khan20
Participant
0 Kudos

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>

Accepted Solutions (0)

Answers (1)

Answers (1)

imran_khan20
Participant
0 Kudos

Hi Experts ,

Please let me know if anybody has made rejection reason mandatory in Leave request approval.

Regards

Imran Khan

sreehari_vpillai
Active Contributor
0 Kudos

Former Member - you got the solution for this ? I am also looking for the same.

Sree