2012 Nov 21 12:53 PM
Hello.
I need send a mail during a creation of an action (for example, a hiring, saving first the infotype 0000, next the 0001...)
I try with two module functions, SO_DOCUMENT_SEND_API1 and HR_FBN_GENERATE_SEND_EMAIL, but both of them needs to make a commit work. This commit work doesn't works fine during an action (and is dangerous, I'm not sure if I should do it).
Is there any module function to send mails that not need the commit work?
Thanks.
2012 Nov 21 1:00 PM
Did you try to execute your code in a function module executed in background task, so it will execute after end of update task raised by the sandard commit-work, in another luw ?
In your Z-FM RFC enabled, try to use class CL_BCS and not an out-dated FM.
Regards,
Raymond
2012 Nov 21 1:00 PM
Did you try to execute your code in a function module executed in background task, so it will execute after end of update task raised by the sandard commit-work, in another luw ?
In your Z-FM RFC enabled, try to use class CL_BCS and not an out-dated FM.
Regards,
Raymond
2012 Nov 21 1:08 PM
Yes, thanks. I had tried it with a own module function and it hadn't worked, but with this standar module it works perfectly.
(I tried it just before see your answer and it worked, but you are correct and so fast )