on 04-02-2014 11:20 AM
Dear Experts,
I have configured SMTP and scheduled to send mails every 10 minutes. Test mails from SBWP/SO01 is working absolutely fine. Usually emails wait in "waiting" in system status and tuns "0" once email is sent automatically.
We have HR configured to send new joinee emais to certain persons and this is done through abap. Once HR new joinee entries are made, abap automatiicaly sends email to different people in our organization. I don't see any mail "waiting" in "System Status" at the same time i see the mail in SWP/SO01 --> outbox. When I resent the same mail from outbox, then SCOT --> System Status--> waiting shows "1" and turns "0" once email is sent out.
Can you please help me resolve this issues as to why the program's automatted emails remains in outbox (SBWP/SO01) and SCOT --> System Status --> waiting "0" and email sent automatically. Please let me know if there is any additional information needed.
Regards,
EP.
Hi Emmanuel,
is it standard or your own development?
Does the technical user for your HR replication has an email address maintained?
Regards
Konstantin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply Mr. Anikeev,
It is customised, not standard and yes email address is mintained for HR, abap and basis consultants and tested as well. New mail from SO01/SBWP is wrking normal, only the emails generated by the program doesn't reflect in waiting (SCOT-->System Status) but there in outbox (SO01/SBWP).
Please lt me know if anyother information or snashot required.
Regards,
EP.
sorry for the late reply. Please find the code below, Thanks.
* SEND MAIL
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = VT_MAILSUBJECT
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
tables
OBJECT_CONTENT = VT_MAILTXT
receivers = VT_MAILRECIPIENTS
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8
Regards,
EP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.