2022 Jun 03 1:23 PM
Hello,
when we got a communication error with our SMTP relay, a lot of EMail's will get on error (Transaction SOST, message number 816).
We are looking for a way to resend these EMail's (like F7 in SOST) via a job/report every couple of hours so that their status will be changed automatically to "waiting" and they will be send out when the send process will run again and the SMTP relay will be up again.
Thanks
Deva
2022 Jun 03 2:18 PM
Hi
Ignore my previous comment
You can use the following FM to resend the error SOST records. Call the following FM in a program and schedule that program as job in SM37 at your defined interval.
DATA:
it_send_process TYPE STANDARD TABLE OF SOSC1,"TABLES PARAM
wa_send_process LIKE LINE OF it_send_process .
Select * from sost table where msgty = 'E
and append records into it_send_process internal table
'
CALL FUNCTION 'SO_SEND_PROCESS_REQUEUE'
TABLES
send_process = it_send_process
EXCEPTIONS
NO_ENTRY = 1
X_ERROR = 2
. " SO_SEND_PROCESS_REQUEUE
IF SY-SUBRC EQ 0.
"All OK
ELSEIF SY-SUBRC EQ 1. "Exception
"Add code for exception here
ELSEIF SY-SUBRC EQ 2. "Exception
"Add code for exception here
ENDIF.
2022 Jun 03 1:24 PM
2022 Jun 03 1:46 PM
Hi
Write the following statement in a Program and put it in a job that runs at your convenient frequency.
SUBMIT RSCONN01 WITH MODE = 'INT' AND RETURN.
This will send all the pending sost mails.Regards,Venkat
2022 Jun 03 2:18 PM
Hi
Ignore my previous comment
You can use the following FM to resend the error SOST records. Call the following FM in a program and schedule that program as job in SM37 at your defined interval.
DATA:
it_send_process TYPE STANDARD TABLE OF SOSC1,"TABLES PARAM
wa_send_process LIKE LINE OF it_send_process .
Select * from sost table where msgty = 'E
and append records into it_send_process internal table
'
CALL FUNCTION 'SO_SEND_PROCESS_REQUEUE'
TABLES
send_process = it_send_process
EXCEPTIONS
NO_ENTRY = 1
X_ERROR = 2
. " SO_SEND_PROCESS_REQUEUE
IF SY-SUBRC EQ 0.
"All OK
ELSEIF SY-SUBRC EQ 1. "Exception
"Add code for exception here
ELSEIF SY-SUBRC EQ 2. "Exception
"Add code for exception here
ENDIF.
2022 Jun 03 3:20 PM
Hi Venkat,
Thanks for the quick response.
Tried fm SO_SEND_PROCESS_REQUEUE by passing one record from SOST table as attached screenshot.
After executing the fm, unable to find the record in SOST tcode (even with waiting, error status) and
data not getting updated with current date, time and status in SOST table.
Thanks
Deva
2022 Jun 03 3:23 PM
2022 Jun 03 3:54 PM
devagreen By debug, compare with what is done by SOST when you resend.
2022 Jun 03 3:37 PM
Exercise for the weekend
2022 Jun 03 4:11 PM
Hi
Are your emails not at all going in first attempt also ?
Need to check the items - in SCOT
1. Whether you have Node In Use - Check box is checked or not?
2. Any recipient address is filled in ?
3. Any sender group is filled in ?
Because the Error 816 and 826 are related to that only.
Please share your detail - Can you please share your SCOT configuration detail.
2022 Jun 04 8:48 AM
devagreen Any Update - are you still facing the issue? Kindly update on my above points.