Application Development 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: 

Problem With sending Mail

former_member799868
Participant
0 Kudos

When i am sending mail to one address it is sending mail properly. some times it is giving error 'No delivery to EmailID, as recipient unknown'(Message 802 in scot ). what would be the problem.

3 REPLIES 3

Bhaskar_Tripath
Participant
0 Kudos

Hi,

Just check when you are sending mails to a group using distribution list then specify the proper type of reciever.

Type P is for Private Distribution list

and type C is for Shared Distribution list.

Regards,

Bhaskar Tripathi

0 Kudos

I am sending mail to four different adresses in that .mail is going for one mail id always.for other three it is giving that error some times. i am using recipient type as 'U'.

My code.

structure s_cust_mapp contains 4 mail ids.

IF NOT s_cust_mapp-dmail IS INITIAL.

MOVE s_zmusa_cust_mapp-dmail TO l_reclist-receiver.

l_reclist-rec_type = 'U'.

APPEND l_reclist.

CLEAR:l_reclist.

ENDIF.

IF NOT s_cust_mapp-bmail IS INITIAL.

l_reclist-receiver = s_zmusa_cust_mapp-bmail.

l_reclist-rec_type = 'U'.

APPEND l_reclist.

CLEAR:l_reclist.

ENDIF.

IF NOT s_cust_mapp-pmail IS INITIAL.

l_reclist-receiver = s_zmusa_cust_mapp-pmail.

l_reclist-rec_type = 'U'.

APPEND l_reclist.

CLEAR:l_reclist.

ENDIF.

IF NOT s_cust_mapp-amail IS INITIAL.

l_reclist-receiver = s_zmusa_cust_mapp-amail.

l_reclist-rec_type = 'U'.

APPEND l_reclist.

CLEAR:l_reclist.

ENDIF.

*l_objhex =

v_send_add = 'SAPUSER'.

  • Send Message

IF NOT l_reclist[] IS INITIAL.

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

EXPORTING

document_data = l_docdata

commit_work = 'X'

sender_address = v_send_add

sender_address_type = 'A'

  • IMPORTING

  • SENT_TO_ALL =

  • NEW_OBJECT_ID =

  • SENDER_ID =

TABLES

packing_list = l_objpack

object_header = l_objhead

contents_bin = l_objbin

contents_txt = l_objtxt

  • CONTENTS_HEX =

  • OBJECT_PARA =

  • OBJECT_PARB =

receivers = l_reclist

  • 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

.

IF sy-subrc NE 0.

  • MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

  • WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ELSE.

WAIT UP TO 2 SECONDS.

SUBMIT rsconn01 WITH mode = 'INT'

WITH output = ' '

AND RETURN.

ENDIF.

ENDIF.

Former Member
0 Kudos

Hi,

Can you share the SMTP configuration in SCOT for sending mail.

I am currently facing error in sending the MAIL.