Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

REG: Userexit or Badi For leave request

Former Member
0 Kudos

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

2 REPLIES 2

Former Member

Yamen_Zarnaji
Explorer
0 Kudos


also you can use : BADI :HRASR00PROCESS_START_RESTRICT which allow consultant to add conditions under which the process can start

Restrictions for Starting a Process


 
 
 
 
 
 
 
 
 
 
 
 


Use

You use this function to determine that your process,
depending on the situation, can only be performed under certain conditions or
not at all.

Features

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.