Question:
Hi all,
A user requests time off and the system notifies the user that there is not enough quota. The User presses send and the workflow is sent to the aprover any way. Is there a way to stop the workflow from being sent since the ystem has determined that there is not enough Qouta.
I suppose the workflow name is WS20000081. How could one stop this workflow to go in this scenario.
Also what is the transaction behind Leave request? I know for Time entry it is CATW.
Thanks for any help in this request.
Answer:
Possibly too late to be of any use but...
The transaction for leave requests is WS20000081.
We are currently investigating the exits on the transaction to see if we can prevent the send - although we want to allow the employee to send but prevent the manager from approving.
Failing that, a not-very-elegant solution is to put some code in the leave request template to check the status of the error message. The message is stored in the business html variable info_text
Template: sapmws20000081h_150.html