Application Development and Automation 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: 
Read only

Error while sending mail to external id

Former Member
0 Likes
1,995

Hai all,

I am trying to send mail to external mail id using the FM SO_NEW_DOCUMENT_ATT_SEND_API1. After executing when i check in sost i m getting an error 'Cannot process message, no route from sapuserto external mail id.

Can anyone help me resolve this issue pls.

Thanks in advance,

Neela

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,939

Hi,

BASIS has not configured outgoing emails for your system. Pls contact your basis team.

Thanks,

Best regards,

Prashant

Hai all,

I am trying to send mail to external mail id using the FM SO_NEW_DOCUMENT_ATT_SEND_API1. After executing when i check in sost i m getting an error 'Cannot process message, no route from sapuserto external mail id.

Can anyone help me resolve this issue pls.

Thanks in advance,

Neela

15 REPLIES 15
Read only

Former Member
0 Likes
1,940

Hi,

BASIS has not configured outgoing emails for your system. Pls contact your basis team.

Thanks,

Best regards,

Prashant

Read only

vinod_vemuru2
Active Contributor
0 Likes
1,939

Hi,

This means that mails to external IDs are not allowed from your system.

Check the T-code SCOT to see the allowed domains. If you don't have access, check with your BASIS team.

Thanks,

Vinod.

Read only

Former Member
0 Likes
1,939

You can check user settings (SU01D) and e-mail settings (SCOT, SOST).

Read only

0 Likes
1,939

Hi all,

I have contacted the basis team to do the settings. Settings r done but now when i execute the prg in the function module the value of sy-subrc = 5.

How to overcome this exception.

Pls guide me.

Thanks in advance,

Neela

Read only

Former Member
0 Likes
1,939

Hi,

You have to fill the tables parameter 'PACKING_LIST'.

try with these values


wa_objpack-TRANSF_BIN = space.
wa_objpack-HEAD_START = 1.
wa_objpack-HEAD_NUM   = 0.
wa_objpack-BODY_START = 1.
wa_objpack-DOC_TYPE   = 'RAW'.
APPEND wa_objpack to it_objpack.

Regards,

Daz.

Read only

0 Likes
1,939

Hi,

Even after filling the tables parameter 'PACKING_LIST'. I m not able to view the mail either in sbwp or sost.

Thanks in advance,

Neela

Read only

0 Likes
1,939

Hi Neela,

Some times due to workprocessor availibilty ,it may happen that it takes time to get visible in mailbox.Hope the query resolves soon.

Have a best day ahead.

Read only

0 Likes
1,939

Hi,

Is the sy-subrc of the FM 0 after the call? Did you pass the parameter COMMIT_WORK = 'X'? If not please pass this a X. Else mail wont be placed in the queue.

Thanks,

Vinod.

Read only

0 Likes
1,939

Hi Vinodh,

The parameter value is 0. I have also given COMMIT = 'X'. But still i m not able to send mail to external id. I m not able to view in sost or sbwp also. Pls help..

Thanks in advance,

Neela

Read only

0 Likes
1,939

Hi Neela,

please go through this blog. i am sure your query will be resolved.

Link:[Blog2|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/15787] [original link is broken] [original link is broken] [original link is broken];

Have a best day ahead.

Read only

0 Likes
1,939

Hi Neela,

It could be better if you can paste your mail sending code. There might be some thing wrong in the coding part.

Thanks,

Vinod.

Read only

gaursri
Active Contributor
0 Likes
1,939

Hi Neela,

Please do the check this blog it will be helpful.

Link:[Blog|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/15570] [original link is broken] [original link is broken] [original link is broken];

Have a best day ahead.

Read only

Former Member
0 Likes
1,939

HI Neela,

In receiver parameter, you need to set the following:

wa_receivers-rec_type = 'B'. [ 'B' is for SAP user, 'U' is for internet user]

wa_receivers-com_type = 'INT'.

wa_receivers-express = 'X'.

APPEND wa_receivers TO i_receivers.

Please check with this.

Regards,

Tutun

Read only

Former Member
0 Likes
1,939

Hi Neela,

To know whether it is configuration problem or abap code issue, try sending mail to external id

using business workplace (tcode = SBWP). From there create a new message to external email id and send. Then see in SOST/SCOT and manually transmit from there.

regards,

amit m.

Read only

Former Member
0 Likes
1,939

Thanks all for helping me in getting it done.

Answered.