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: 

CATS2 user exit

Former Member
0 Kudos
247

Hi Friends,

Need some input in modifying the CAT2 related user exit/badis.

From the CAT2 transaction, when the part time contractors enter the time they select reasonable value on the clolumn  A/A type  from the F4 value help (example: they can select any reason like 0200- Illness, 0120-BLunch etc...while entering the time), here I need to restrict one of the value f4 value  0120-Lunch for employee who belongs to Personal Area U3 . Please can you suggest which user exit I need to check this logic. I have gone through the forums and i have found some CATS relevant user exits (CATS01......12) but I am sure which is the right one for this requirement.

Thanks

Krish

1 ACCEPTED SOLUTION

Private_Member_14913
Contributor
0 Kudos
175

Hello,

You can try to enhance FM -  CATS_F4_HELP_AWART using implicit enhancement.

Regards,

Sameer

7 REPLIES 7

Private_Member_14913
Contributor
0 Kudos
176

Hello,

You can try to enhance FM -  CATS_F4_HELP_AWART using implicit enhancement.

Regards,

Sameer

0 Kudos
175

Hi Sameer,

Thanks for the reply. Now I need to remove one value "820-Declared Holiday"  from the F4 value help based on the employee Sub Group. Example: if employee is part of the Sub Group U6 , then I should show this 820-Declared Holiday value in F4 help, if not do not show this value in F4 help.

Where do I need to keep this logic in above mentioned FM, Please can you give me some details steps on implementing this piece.

Thanks again for the help.

Krish

0 Kudos
175

Hello Krish,

In FM - CATS_F4_HELP_AWART, you are getting PERNR.

Use that PERNR to get employee details from PA001 table. In PA0001 table, You can find employee subgroup.

Based on subgroup value you can remove your F4 entry in FM - CATS_F4_HELP_AWART.

Regards,

Sameer

0 Kudos
175

Hi Sameer,

Thanks for the reply. I did not see any user exit with in this FM to put my custom code. I think I can use EXIT_SAPLCATS_003, Here I will create ZInclude and put my custom code like calling the CATS_F4_HELP_AWART function and based on the pernr I will get the employee sub group and restrict the values. Please advice if this is not correct user exit.

Thanks

Krish

0 Kudos
175

Hello,

You can try & check it out.

Regards,

Sameer

0 Kudos
175

Sameer,

Please can you help me with the details like where I need to call this FM? and how to filter out, some sample code would be great help.

Thanks

Krish

0 Kudos
175

How To Do Implicit Enhancement - ABAP Development - SCN Wiki

Please go through above link for implicit enhancement.