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

Send mail without COMMIT WORK

Former Member
0 Likes
1,373

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.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
854

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

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
855

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

Read only

0 Likes
854

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 )