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

sending mail

Former Member
0 Likes
763

Hi Frnds,

While sending the e-mail with attachment, Is there any option to mark the mail ids as "CC"?

Many thanks in advance,

Karthick.C

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
714

Hi karthick,

1. SOMLRECI1-COPY = 'X'

regards,

amit m.

Hi Frnds,

While sending the e-mail with attachment, Is there any option to mark the mail ids as "CC"?

Many thanks in advance,

Karthick.C

5 REPLIES 5
Read only

Former Member
0 Likes
714

Hi,

Yes..

In the recivers table, you have the option of CC.

Just mark that flag = 'X'.

RECEIVERS-SNDCP = 'X'.

Regards,

Shashank

Read only

Former Member
0 Likes
715

Hi karthick,

1. SOMLRECI1-COPY = 'X'

regards,

amit m.

Read only

Former Member
0 Likes
714

Hello,

In the reciver field there is field as COPY.

Just make is X.

If useful reward points.

Rgerads,

Vasanth

Read only

Former Member
0 Likes
714

Hi,

for this you need to append the table parameter

RECEIVERS.

for to mail id don't specify copy = 'X'.

for others specify copy = 'X'.

append all records.

now you have one id with out copy, and rest all with copy.

so you can send one to and rest all cc.

itab-receiver = '[email protected]'.
itab-express = 'X'.
itab-copy = ''.
itab-rec_type = 'U'. 
APPEND itab.

itab-receiver = '[email protected]'.
itab-express = 'X'.
itab-copy = 'X'.
itab-rec_type = 'U'. 
APPEND itab.

Regards

vijay

Read only

Former Member
0 Likes
714

Hai Karthick

Check the following Code

DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.

DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.

DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.

DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.

DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.

DATA: DOC_CHNG LIKE SODOCCHGI1.

DOC_CHNG-OBJ_NAME = 'TEST'.

DOC_CHNG-OBJ_DESCR = 'Test-Dokument fur API1 Test'(001).

OBJTXT = 'Mindestgebot : $250000'.

APPEND OBJTXT.

OBJTXT = 'Eine Abbildung des zur Versteigerung stehenden Bildes'.

APPEND OBJTXT.

OBJTXT = 'wurde als Anlage beigefugt.'.

APPEND OBJTXT.

DESCRIBE TABLE OBJTXT LINES TAB_LINES.

READ TABLE OBJTXT INDEX TAB_LINES.

DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).

  • * ERSTELLEN DES EINTRAGS ZUM KOMPRIMIERTEN DOKUMENT

CLEAR OBJPACK-TRANSF_BIN.

OBJPACK-HEAD_START = 1.

OBJPACK-HEAD_NUM = 0.

OBJPACK-BODY_START = 1.

OBJPACK-BODY_NUM = TAB_LINES.

OBJPACK-DOC_TYPE = 'RAW'.

APPEND OBJPACK.

  • * ERSTELLEN DER ANLAGE FUR DAS DOKUMENT

OBJBIN = '\O/ '. APPEND OBJBIN.

OBJBIN = ' '. APPEND OBJBIN.

OBJBIN = ' / \ '. APPEND OBJBIN.

DESCRIBE TABLE OBJBIN LINES TAB_LINES.

OBJHEAD = 'picasso.txt'. APPEND OBJHEAD.

  • * Erstellen des Eintrags zur komprimierten Anlage

OBJPACK-TRANSF_BIN = 'X'.

OBJPACK-HEAD_START = 1.

OBJPACK-HEAD_NUM = 1.

OBJPACK-BODY_START = 1.

OBJPACK-BODY_NUM = TAB_LINES.

OBJPACK-DOC_TYPE = 'TXT'.

OBJPACK-OBJ_NAME = 'ANLAGE'.

OBJPACK-OBJ_DESCR = 'Abbildung Objekt 138'.

OBJPACK-DOC_SIZE = TAB_LINES * 255.

APPEND OBJPACK.

  • * Fullen der Empfangerliste

RECLIST-RECEIVER = SY-UNAME.

RECLIST-REC_TYPE = 'B'.

APPEND RECLIST.

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

DOCUMENT_DATA = DOC_CHNG

PUT_IN_OUTBOX = 'X'

TABLES

PACKING_LIST = OBJPACK

OBJECT_HEADER = OBJHEAD

CONTENTS_BIN = OBJBIN

CONTENTS_TXT = OBJTXT

RECEIVERS = RECLIST

EXCEPTIONS

TOO_MANY_RECEIVERS = 1

DOCUMENT_NOT_SENT = 2

OPERATION_NO_AUTHORIZATION = 4

OTHERS = 99.

Thanks & regards

Sreenivasulu P