Application Development and Automation 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: 
Read only

User Exit for TCode CNR1 & CNR2

Former Member
0 Likes
856

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
753

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

2 REPLIES 2
Read only

Former Member
0 Likes
754

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

Read only

0 Likes
753

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