cancel
Showing results for 
Search instead for 
Did you mean: 

User Exit/Badi for CATS

Former Member
0 Kudos

Hi Experts,

Our requirement is to trigger an email notification to the Employee after his time sheet is approved using the CATS approval WF.

We are using the portal to raise the time sheet and approve the same. We want to determine a User Exit/ Badi when the approver clicks on the approved button in the UWL.

We tried looking into the user exits/badi's etc. given but they are defined only for the R/3 system using the CATS transaction and not via the portals.

Could you kindly guide us with any Badi/User Exit that could be used when it is approved via the portal (i.e) when the approver clicks on the approve button in the UWL.

Cheers,

Belinda Clarke

Accepted Solutions (0)

Answers (2)

Answers (2)

sudhahar_ramachandran
Active Participant
0 Kudos

Dear Belinda,

As previously said,

for this case you better try the two options he gave. either try an enhancement in the RFC.

For every approval, the following function module is called. try exploring it with external break-point.

'CATS_APPROVAL'

Or develop a background program to search the recently changed data and send email according to that.

hope this helps.

with regards,

Sudhahar R

Former Member
0 Kudos

Hi,

Are you sure that those possible badis or user exit that you found are not also for Portal? Many times there is no difference whether something is done from backend transaction or a portal application - finally the same code/function is used and thus the same badis & user exits are executed. Of course not always, but plenty of times.

If if you cannot find anything, please check also the possibility to use enhancement. Check which RFC function is called during the approval (put RFC trace on) and put a break point there, and see what the code does and if you could put your stuff into some place.

Pay attention also the CATSDB table. That includes the cats entries and if remember correctly, you can find the work item ID there for each CATS entry. Maybe you can build some kind of report based on this table to send the emails instead of using some user exit or whatever.

Regards,

Karri