Badi or User Exit to send Mail for Tcode IW31 and IW32
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.