2005 Dec 01 10:51 AM
Hi all,
We are using a field in TCode PA30 under Organizational Assignment to make employees Direct or Indirect.
TCode CNR2 - When we assign an employee to a work centre whose status is Indirect, System should pop up a message "Employee can't assign to this work centre as he is Indirect Employee".
I think can be done using field User Exit but Iam not sure , just a guess.
Therez a program which gives all the user exits for a particulat transaction code. I tried giving CNR2 , there were no user exits available.
want to know if there are no user exits for this then how do I go ahead ???
Anyone who has the slightest knowledge of this PLz help me out.
Thanks in advance,
Shuja
2005 Dec 01 11:23 AM
Hi,
Welcome to SDN!!
I could find one which seems close. Take a look at BADI HRBAS00_SEARCH (available in 46C onwards atleast) and method OBJID_CHECK.
FYI, if the BADI does not workout, function module RH_MACO may be of some use to you as it is the one which reads the HR data in CNR2.
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni
Hi all,
We are using a field in TCode PA30 under Organizational Assignment to make employees Direct or Indirect.
TCode CNR2 - When we assign an employee to a work centre whose status is Indirect, System should pop up a message "Employee can't assign to this work centre as he is Indirect Employee".
I think can be done using field User Exit but Iam not sure , just a guess.
Therez a program which gives all the user exits for a particulat transaction code. I tried giving CNR2 , there were no user exits available.
want to know if there are no user exits for this then how do I go ahead ???
Anyone who has the slightest knowledge of this PLz help me out.
Thanks in advance,
Shuja
2005 Dec 01 11:23 AM
Hi,
Welcome to SDN!!
I could find one which seems close. Take a look at BADI HRBAS00_SEARCH (available in 46C onwards atleast) and method OBJID_CHECK.
FYI, if the BADI does not workout, function module RH_MACO may be of some use to you as it is the one which reads the HR data in CNR2.
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni
2005 Dec 02 9:35 AM
Hi,
I haven't worked on BADI, The soln what u r telling using BADI , If it is simple , can u tell me how to proceed further.
The other HR function module i checked , but Cudnt get much to change it , If u know it , can u plz let me know.
waititng for ur reply.
Thx in advance
Shuja