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 e-mail immediately from SAP

Former Member
0 Likes
4,537

Hi Gurus,

I need to send a PO by e-mail without a job configured in scot (ou sost) transaction, I nee to force the job manually. But I just want to force some messages not all that are waiting in sost (in the client where I am they have many messages in sost that just shouldn't be sent).

I thought calling the FM, submit the below program and return.

SUBMIT rsconn01 WITH mode = 'INT'

WITH output = ' '

AND RETURN.

But if I use this, all my messages pending in sost transaction will be send. I need a solution to send just some messages.

Can someone help me please?

Thanks in advance,

LR

2 REPLIES 2
Read only

franois_henrotte
Active Contributor
0 Likes
1,627

call function SX_SEND_DISPATCHER with the IDs of messages to send in parameter SOSC_TAB

Read only

brad_bohn
Active Contributor
0 Likes
1,627

Right, you should never do that. What version are you on? If you have the BCS interface, you can use class CL_BCS to send emails and the method allows an immediate send without affecting other emails in the queue.


        CALL METHOD LR_SEND_REQUEST->SET_SEND_IMMEDIATELY
          EXPORTING
            I_SEND_IMMEDIATELY = 'X'.