Skip to Content
avatar image
Former Member

Failing to Send distribution list in CC in email

Hi,

I am trying to send distribution list 'DLIST' in CC but it is going in TO list. Please go through below code written for the same.

Requesting you to advise me what has to be done to send the distribution list in CC in email.

v_email = 'titto@tatto.com'. "Testing

CLEAR IT_RECEIVERS.

REFRESH IT_RECEIVERS.

IT_RECEIVERS-RECEIVER = v_email.

IT_RECEIVERS-REC_TYPE = 'U'.

IT_RECEIVERS-COM_TYPE = 'INT'.

APPEND IT_RECEIVERS.

IT_RECEIVERS-RECEIVER = 'DLIST'.

IT_RECEIVERS-REC_TYPE = 'C'.

IT_RECEIVERS-COM_TYPE = 'INT'.

IT_RECEIVERS-COPY = 'X' .

APPEND IT_RECEIVERS.

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

DOCUMENT_DATA = GD_DOC_DATA

PUT_IN_OUTBOX = 'X'

COMMIT_WORK = 'X'

IMPORTING

SENT_TO_ALL = GD_SENT_ALL

TABLES PACKING_LIST = IT_PACKING_LIST

CONTENTS_TXT = IT_MESSAGE

RECEIVERS = IT_RECEIVERS

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers