Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Management
Viewing all articles
Browse latest Browse all 3160

Need to display Error message when there are no approvers found in leave workflow

$
0
0

Dear experts,

 

In a customized leave workflow for HCM ( Time Module ), we are facing an issue. As per requirements, when there are no approvers found for an user's request then on the portal, it should display an error message. This is a one level cusomized workflow. If requester's approver is blank then it looks for its 1 level up approver and if one level up approver is also not available then it should throw an error message. I was understanding that standard BADI PT_GEN_REQ throws this message automatically when there are no approvers found. I was wrong. Even though there are no approvers, on portal, message is displayed as 'Leave Request was sent successfully.' in workflow logs, there are no approvers found as expected. Functionality wise it is correct ( approvers are coming blank in the logs ) but I want to display error message. That is not coming. I have also observed one more issue. Even though as per logs, there are no approvers, it shows that 'All users can process this task'. This might be coming because, workflow doesn't find any approvers so all the users who have rights to approver might be able to approve. Would you please advise./guide me how to bring the error message ? As per my little understanding, if I succeed to display error message, then work item can not go to any users' UWL. Please correct me if I am wrong. Thank you.

 

Best regards.

Abhijit.

 

Message was edited by: Abhijit Kamatkar


Viewing all articles
Browse latest Browse all 3160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>