cancel
Showing results for 
Search instead for 
Did you mean: 

HR automated emails doesn't show in waiting in SCOT screen

Former Member
0 Kudos


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.

Accepted Solutions (0)

Answers (1)

Answers (1)

konstantin_anikeev
Active Contributor
0 Kudos

Hi Emmanuel,

is it standard or your own development?

Does the technical user for your HR replication has an email address maintained?

Regards

Konstantin

Former Member
0 Kudos

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.

konstantin_anikeev
Active Contributor
0 Kudos

Hi Emmanuel,

I haven't got. The Report, which sends emails, is it standard or not.

If Standard - please give a report name.

If own development - please provide a part of code for sending email.

Regards

Konstantin

Former Member
0 Kudos

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

konstantin_anikeev
Active Contributor
0 Kudos

Hi Emmanuel,

have you tried to remove     PUT_IN_OUTBOX                    = 'X' ?

It should solve the problem...

Regards

Konstantin