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: 

Badi or User Exit to send Mail for Tcode IW31 and IW32

Former Member
0 Kudos

Hi All,

I have a requirement as follows:

In IW32, after entering an order number, if we change the user status (activating the user status) and press the SAVE button, a mail needs to be triggered

I have found a couple of user exits but I am unable to find one soon after the table updation. Another important thing to note is that if the user wants to deactivate the user status (i.e., when the user status is reverted back to the previous status) and saved, then this functionality should not be executed.

Kindly help me with the user exit or the enhancment or the BADI where I can implement this functionality.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Create a event driven function module, your function module will trigger based on the event. Configure that in the transaction SWETYPV..When ever the status is changed it will trigger a function module (Z function module) which inturn send a mail(IF you write the code)..

Use Business object - -

BUS2007

Use events:

MaintenanceOrder.released Order released

MaintenanceOrder.teccompleted Order technically completed

MaintenanceOrder.finconfirmed Order finally confirmed

MaintenanceOrder.completed Business completion for order

Regards,

2 REPLIES 2

Former Member
0 Kudos

Hi,

Create a event driven function module, your function module will trigger based on the event. Configure that in the transaction SWETYPV..When ever the status is changed it will trigger a function module (Z function module) which inturn send a mail(IF you write the code)..

Use Business object - -

BUS2007

Use events:

MaintenanceOrder.released Order released

MaintenanceOrder.teccompleted Order technically completed

MaintenanceOrder.finconfirmed Order finally confirmed

MaintenanceOrder.completed Business completion for order

Regards,

0 Kudos

Hi,

Thanks for the prompt reply.

The method you have told me is through WorkFlow but i want to do it Using Enhancements.

Give me sum info On Badi or Exits.I have searched almost all the BADi n Exits but no results.