05-14-2011 5:05 AM
Hi,
I have requirement that user can not put CL after PL or visa verse here and badi or userexit availabel or not .
when user request in this manner user will not been allowed .
Regards,
Rajan J Bhalani
05-15-2011 7:59 AM
Hi Rajan,
Check this link.
http://wiki.sdn.sap.com/wiki/display/ERPHCM/Validations%2bfor%2bESS%2bLeave%2brequest?bc=true
--
V.V.Reddy
03-10-2014 9:04 AM
also you can use : BADI :HRASR00PROCESS_START_RESTRICT which allow consultant to add conditions under which the process can start
You use this function to determine that your process,
depending on the situation, can only be performed under certain conditions or
not at all.
● Restriction
on initiator roles
You can determine that only users that are assigned a
particular initiator role, for example only managers, can run the process.
● Restriction
on object groups
You can determine that the initiator role can only run
the process for certain groups of objects, for example, employees from a
particular country.
● Parallel
run of a process
If you want to run a process that was already run for
the same object, for example, the same employee, and this process is not yet
completed, the system issues an error message by default. You can change this
system response for your process and permit the process to be run more than
once in parallel.
It can be useful to permit a process to be run more
than once in parallel, for example, a process that employees can use to request
leave.
This prevents employees from having to wait until their leave is approved and the
process is completed before they can create their next leave request.
● Conditions
for starting a process
You can use the BAdI
HRASR00PROCESS_START_RESTRICT to set conditions under which a process can be
started.
For example, for the Maternity Leave process, you can set the condition that
only female employees can run this process.
● Frequency
restriction
You can determine how often a process can be run for
the same object, for example, the same employee.
● Collision
check
You can determine that a process cannot be run while
certain other processes are running for the same object.