Skip to Content

UWL Leave request Rejection reason mandatory

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>

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 05, 2013 at 05:10 AM

    Hi Experts ,

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

    Regards

    Imran Khan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.