‎2010 Dec 28 10:28 AM
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
‎2010 Dec 28 10:43 AM
call function SX_SEND_DISPATCHER with the IDs of messages to send in parameter SOSC_TAB
‎2010 Dec 28 3:24 PM
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'.