Application Development 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: 

Trigering of mail through FM

Former Member
0 Kudos

Hello All,

I'm using the FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send a mail,but when I run the program it is not sending the mails directly.

But when I use the SUBMIT rsconn01 statement, the mails are sent.

Please let me know how to send mails without the SUBMIT statement.

Thanks in advance.

Best Regards

Jai

7 REPLIES 7

Former Member
0 Kudos

hello,

this is coz... the system is not configured to release the process directly. So onces u execute that report all the processes are released

0 Kudos

Hello ,

Is there anyoter way to trigger the mails.

Reason why I want this is when I submit the program rsconn01 it will trigger all the other mails as well.

This I want to restirct.

Thanks

Jai

0 Kudos

hi,

after:

SO_NEW_DOCUMENT_SEND_API1

....

IMPORTING

OBJECT_ID_NEW = xOBJECT_ID

....

try call FM:

SX_OBJECTS_SEND

EXPORTING

OBJECT_ID = xOBJECT_ID

....

reagrds, darek

Former Member
0 Kudos

hi,

rsconn01 should be executed via periodic job..

regards,darek

royolav_johansen
Explorer
0 Kudos

Transaction SCOT.

Settings -> Send Job.

Then create the send job for 'INT'.

There you can set period between each send job.

Regards

Roy Olav Johansen

murat_kaya
Participant
0 Kudos

Hi Jai,

ask your basis guy to schedule rsconn01 as a periodic job for example for every 3 seconds. you can also do it yourself. just go to the transaction sm36 schedule rsconn01 as i said. after job is set, it sends the mails in the queue every 3 seconds and you don't have to use submit... you can overview mail status through the transaction SOST.

regards,

Murat Kaya

former_member156446
Active Contributor
0 Kudos

the job to flush off all the jobs need to be scheduled as a background job, its will a work order for your Basis team