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: 

User Exit/BADI for Transaction CNR1 & CNR2

Former Member
0 Kudos

Hi All,

We have a requirement where we need to make use of the transaction CNR1 & CNR2 to validate the employee number, can anyone tell me is there any user exit/BADI available for this purpose, I have searched for the user exits using a small utility program which resulted in 'No Exits',

Your quick help would be highly appreciated,

Rgds,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

To search for a BADI you need to go to

transaction SE80->Package->Enhancement->BADI

From here you can find out a badi for that particular transaction.

Or otherwise you can goto that SAP standard transaction CNR1 & CNR2 System->status->program

and look for the statement in that program:

CL_EXITHANDLER=>GET_INSTANCE

This helps you to search for BADI..

Reward me if this helps you.

3 REPLIES 3

Former Member
0 Kudos

Hi,

To search for a BADI you need to go to

transaction SE80->Package->Enhancement->BADI

From here you can find out a badi for that particular transaction.

Or otherwise you can goto that SAP standard transaction CNR1 & CNR2 System->status->program

and look for the statement in that program:

CL_EXITHANDLER=>GET_INSTANCE

This helps you to search for BADI..

Reward me if this helps you.

Former Member
0 Kudos

Hi Sailatha,

I am not very clear with the requirement. I would appreciate if you can explain me the scenario.

As I understand the requirement there is no user exit exists for this purpose but there is one BADI available for CNR2 which can only be used if we try to remove the HR assignment to work center and the assignment is to Object Type "US" (User HR object). Hope this helps.

Definition name: CRHRORG

Method: CHECK_DEASSIGN_HRORG

Kind Regards,

Sanjeev Munjal

0 Kudos

Hi Sanjeev,

Thanks for the response, we were encountering an error while assigning the employee to the workcenter from CNR2 transaction.

Hope your answer will resolve the issue.

Rgds,