Application Development and Automation 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: 
Read only

autogenerated email in va02 as per user login

former_member487377
Discoverer
0 Kudos
376

hi experts,

i have a senario where user wise can change the delivery date in va02,

when any user changes delivery date in va02 then immediately mail should be generated and send this mail to higher level authorization.

which include is used to write the mail code after click on save button.

i tried this

USEREXIT_SAVE_DOCUMENT.

USEREXIT_SAVE_DOCUMENT_PREPARE

but not working

plz help me

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Kudos
256

Hi Naveen,

What`s wrong with user exit MV45AFZZ / USEREXIT_SAVE_DOCUMENT when you code in it?

This class(CL_BCS)  is used to send email.

Or you can configuring an output type in tcode NACE, sending email will be triggered by message control. 

regards,

Archer

2 REPLIES 2
Read only

Former Member
0 Kudos
257

Hi Naveen,

What`s wrong with user exit MV45AFZZ / USEREXIT_SAVE_DOCUMENT when you code in it?

This class(CL_BCS)  is used to send email.

Or you can configuring an output type in tcode NACE, sending email will be triggered by message control. 

regards,

Archer

Read only

ThangaPrakash
Active Contributor
0 Kudos
256

Hello Naveen,

It should work with these user exits, did you put a breakpoint in the user exit and check? Did it reach the breakpoint?

There might be problem in your custom code where you have a logic of sending mail.

Check in transaction SOST whether you can able to see your mail in the outbox, if the status is not send, then click on the send button and execute.

Trigger the below program in your custom code to start the send process of the mail.

SUBMIT RSCONN01 WITH MODE = 'INT'
                 WITH OUTPUT = 'X'
                 AND RETURN.


Regards,

Tp