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: 

How to send mail on SAVE button for transaction APPCREATE

Former Member
0 Kudos

Hello All,

My requirement is when employee fills self rating information in transaction APPCREATE, i have to send mail to his manager about employee self rating form. Is there any workflow? and How to attach it?

1 ACCEPTED SOLUTION

former_member188827
Active Contributor
0 Kudos

First use tcode SWEL to check if any event of object "APPR_DOC" is raised when user saves the record. If yes, you can write code to send email whenever the event is raised.

Regards

7 REPLIES 7

former_member188827
Active Contributor
0 Kudos

First use tcode SWEL to check if any event of object "APPR_DOC" is raised when user saves the record. If yes, you can write code to send email whenever the event is raised.

Regards

0 Kudos

Hello Mehwish,

I checked this...No event is triggered. Can we raise event for save button ?

0 Kudos

Check if badi "HRHAP00_DOC_SAVE" helps.

Regards

0 Kudos

Thank you very much for spending your valuable time for me.

The BADI 'HRHAP00_DOC_SAVE' is not called anywhere when i check with where-used list.

Still i implemented but not called.

0 Kudos

Where to write the code when an event is raised ?

0 Kudos

You can create a receiver function module, it has to have a specific signature. You can then assign this in tcode SWE2.

Regards

former_member196651
Contributor
0 Kudos

Hi Amol,

First you check that, after the SAVE button, is there any implicit enhancements available or not. If not check whether we can create any explicit ones, after the actual save happens. If there is one, then you need to create a class for triggering a workflow with an event. Call this event from the explicit enhancement.

Link a custom workflow to this event to send the mail.

Regards,

Abijith