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: 

Sending message with SO_NEW_DOCUMENT_SEND_API1

Former Member
0 Kudos

Hello everyone,

I'm trying ti send message to multiple message adresse with FM SO_NEW_DOCUMENT_SEND_API1, but i get he problem that each message receiver don't see other message receiver. I need that the other message receiver see who received this mail too.

Could anyone help me.

Thak's alot.

Mat

9 REPLIES 9

vinod_vemuru2
Active Contributor
0 Kudos

Hi,

I hope you are calling the FM in the LOOP of receivers. Append all the receivers to one internal table and call the FM at once.

Thanks,

Vinod.

0 Kudos

Hello.

I already done so but it doesn't work. I fill up d^the table parameters with receiver_type 'U' and the name of user but i stil not see the list of receiver in the message.

cheers

0 Kudos

Hi ,

Populate the parameters as shown below.


 LOOP AT lr_email.  "Receiver list
    wa_reclist-receiver = *E-mail id*
    wa_reclist-express  = 'X'.
    wa_reclist-rec_type = 'U'..
    APPEND wa_reclist TO i_reclist.
  ENDLOOP.

Call the FM with this reclist.

Thanks,

Vinod.

0 Kudos

Hi Mattia,

why [procrastinate|http://en.wikipedia.org/wiki/Procrastination] with this outdated function module.

Have a look at [Unknown thus unloved?|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3443] [original link is broken] [original link is broken] [original link is broken]; Then repeat the coding lines

* Create recipient 
c_address = receiver. 
recipient = cl_cam_address_bcs=>create_internet_address( c_address ). 
* Add recipient with its respective attributes to send request 
CALL METHOD send_request->add_recipient 
EXPORTING 
i_recipient = recipient 
i_express = ' ' 
i_copy = ' ' 
i_blind_copy = ' '.

for every recipient.

After using cl_bcs the first time, I bet you will never use SO_NEW_DOCUMENT_SEND_API1 again.

Regards,

Clemens

Edited by: Julius Bussche on Dec 28, 2009 12:14 PM

f... around -> Procrastinate

0 Kudos

Clemans wrote:

why f.. around with this

Not good practice to use wording like this..

0 Kudos

Caution...Unknown and thus unloved is Basis/WebAS version dependent!

0 Kudos

Please explain.

former_member194416
Contributor
0 Kudos

Hi,

Not sure but you can also try

wa_reclist-copy = 'X'.

Regards,

Former Member
0 Kudos

HI,

Please find this sample Code.

LOOP AT it_eplant INTO wa_eplant.

w_reclist-receiver = wa_eplant-email_add.

w_reclist-rec_type = 'U'.

IF wa_eplant-cc1 = 'X'.

w_reclist-copy = 'X'.

ENDIF.

IF wa_eplant-bcc = 'X'.

w_reclist-blind_copy = 'X'.

ENDIF.

APPEND w_reclist TO i_reclist.

CLEAR w_reclist.

ENDLOOP.

Regards