cancel
Showing results for 
Search instead for 
Did you mean: 

Internet mail not coming in SOST

Former Member
0 Kudos

Hello Experts,

We have a custom program in our SRM system to send the mails to internet users. The mail functionality is working perfect across Dev and Test systems but not working correct in Acceptance and Production system. So I suspect that this issue pertains to some customizing/ external settings.

To elaborate more on the error: -

We have used methods of classes CL_BCS, CL_DOCUMENT_BCS, CL_SAPUSER_BCS to create the mail document and send it.

I have checked the SOST and SCOT settings as well. They are maintained correctly.

The funny part is when we use function "send" of class CL_BCS

CALL METHOD lo_send_request->send(
         EXPORTING
           i_with_error_screen = space
         RECEIVING
           result              = l_sent_to_all ).

the parameter i_sent_to_all is set as 'X' at the end of the method execution which ideally indicates that the mails have been sent. And we are doing explicit commit also after the method. Nevertheless, we don't see any entry in the SOST transaction. (not even with the extended filter statues - "Still not entered in queue" and "Send date not yet reached").

I have checked other forums as well for the same error but could not see a satisfactory explanation to our situation.

I would really appreciate if you could hint on what could be malfunctioning in the system.

Best Regards,

Shreya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi  ,

            

            Did you checked outbox flag as 'X'.

Thanks & Regards,

Ramu Velaga.

Former Member
0 Kudos

Hi Ramu,

Sorry I did not understand which outbox flag you are referring to.

Best Regards,

Shreya

Former Member
0 Kudos

Hi,

     

        In the class CL_BCS for the method ADD_RECIPIENT pass 'X' to the importing parameter                  I_COPY as then the copy of the mail will automatically store in outbox(SOST).

Regards,

Ramu.

Former Member
0 Kudos

Hi Ramu,

I tried doing that but it is still not working.

I think i am unclear in my question.

I cannot see the mail in SOST and the mail is not sent also to the recipient (internet mail address).

Best Regards,

Shreya

Former Member
0 Kudos

hi,

can you  check  whether mail generate  from source system or not?

refere below link

http://www.saptechies.com/administration-of-external-send-process-tcode-sost/

Regards,

Prabaharan B

Former Member
0 Kudos

Hi shreya,

   

           You can use this FM also to send the mail to internet users.

           FM  is   SO_NEW_DOCUMENT_ATT_SEND_API1

Regards,

Ramu.

Former Member
0 Kudos

Hi Prabhaharan,

Yes I checked already by generating a test mail in Source system.

Best Regards,

Shreya

Former Member
0 Kudos

hi,

    is it send to target system from source system?

Regards,

Prabaharan B

Former Member
0 Kudos

Hi Prabhaharan,

The mail is sent from the source system to the intended internet email recipient.

But when the mail is sent from our program, it is neither sent nor generated in the SOST.

Best Regards,

Shreya

Former Member
0 Kudos

Hi,

      

       Try with Function module SO_NEW_DOCUMENT_ATT_SEND_API1 to send the mail to internet users.

Thanks & Regards,

Ramu velaga.

Former Member
0 Kudos

Hi shreya ....

    Please use this link

http://wiki.sdn.sap.com/wiki/display/SI/SOST+-+Send+Request+Overview

Regards,

Prabaharan B

Former Member
0 Kudos

Hi,

Thanks for your replies.

The problem is solved. It was because of some parameters of SAP Office: system wide settings, which are accessed while setting the recipient through attribute gs_profile of class CL_BCS_REC_MANAGER.

The values for work-area gs_profile is fetched from table SOPR (which is maintained through customizing).

Hope the above info would be helpful to you guys.

Cheers,

Shreya

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear shreya,

  Please use thie link

http://it.toolbox.com/wiki/index.php/Setup_Sapconnect_Email_for_RZ20

It will help you

Regards,

Prabaharan B

Former Member
0 Kudos

Hi Prabhaharan,

Thanks for your response but i believe RZ20 is not the intended place that i need to check. I am not setting alerts but built a custom program to explicitly send mails.

Also the other links are really informative, but could not help me with current issue.

Best Regards,

Shreya