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: 

CATS: Looking for user exit / badi for transaction code CAT4/CATS_APPR_LITE

Former Member
0 Kudos

Hi,

I have a task here that needs to send external email to the employee's manager whenever the approver set the status from 'released for approval' to 'approve'.

which is status 20 to 30 in CATSDB-STATUS thru transaction code CAT4 or

CATS_APPR_LITE.

Can anyone give some help here?

Thanks in advance.

8 REPLIES 8

Former Member
0 Kudos

Hi

Check this CATP0001 user exits.

This exit is used in transaction CAT4.

Hope this will be helpful.

0 Kudos

Thxs for the reply, but it did not help much as i want it after status changed to 'approve'.

christian_wohlfahrt
Active Contributor
0 Kudos

Hi!

This is a typical process for a <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fd/517b42303e0e53e10000000a155106/frameset.htm">workflow</a>. With a workflow, you wouldn't need programming, but it's a little bit to complex to explain with just some words.

Regards,

Christian

0 Kudos

Hi Christian,

The reason I want the exit is because, i want to send external email when user approve it using transaction CAT4 and the approval is not via workflow. I don't know about workflow much, but some of my colleagues mentioned if we could find an exit, then we can trigger an event and subsequently will triggered a workflow for that. May be you can give some useful info here.

Thxs.

0 Kudos

Hi,

there are mainly three ways to trigger a workflow:

- linked to a change document, because in standard function module to write change documents a trigger for a workflow is pre-designed. With workflow-customizing you can activate an active trigger.

- linked to output messages. There is a medium 9, which is the workflow trigger.

- linked to status changes. Maybe not all status change functions include a pre-designed workflow trigger, but at least for status in table JEST it should be possible to make workflow-customizing to activate a trigger.

- 'manually' with a function module SWE_EVENT_CREATE.

It's also possible to define filters (e.g. only status = approved), so your example was perfectly fitting workflow possibilities. If no other option is fitting, have a look at above mentioned exit.

Then you still have the question, should you try to define a workflow or just create a mail by FM. There I can't help you, this depends more on your skills and time.

Regards,

Christian

0 Kudos

Your information will give me a good help to proceed.

Thank you.

0 Kudos

Hi Suzana!!

Could you tell me how solve this problem?

Thank's

Mariano

Former Member
0 Kudos

Hi Suzana,

The available exits is below.FOr this t.code there no badi vailable. use this for ur requirement.provide the logic in include and activate the include program. this logic automatically system call in that program.

Exit name Short text

CATP0001 Determine target hours

Rewords some points.

Rgds,

P.Naganjana Reddy