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: 

Custom Order sequence for Multiple Email addresses

0 Kudos

Hello.

I use FM SO_OBJECT_SEND and send emails with attach successfully

for all appends i have in receivers (LIKE soos1).

But I want to define the sequence display in TO: ,CC: when send email.

How i can do this?

12 REPLIES 12

matt
Active Contributor

Don't use SO_OBJECT_SEND. Use the CL_BCS classes. These are far less problematic than the function modules and easier to use. They are well documented and there are many blogs and examples concerning their use.

0 Kudos

Thanks for your answer.With this class i will resolve my problem?

0 Kudos

1) Use reply to reply to a comment or an answer. Don't make an answer.

2) It will certainly make it easier for you, and it may fix the problem.

0 Kudos

Its better than SO but didn't find solution..

Also i find this

https://archive.sap.com/discussions/thread/3813520

0 Kudos

Refer the programs BCS_EXAMPLE*

0 Kudos

there is no match any example..There also bcs_test* without such a scenario.

jozsef_hegyi
Active Participant
0 Kudos

Dear Periklis

please check our example report RSBCS_EXAMPLE_EMAIL. Here you can find the way how to set the sender as cc or bcc

Best regards JozsefH

0 Kudos

Thank you for your time.

I set CC & BCC correctly.But i want define output display sequence.

Example : CC: email1@mail.com;email2@mail.com

But i want send mail with this order

CC: email2@mail.com;email1@mail.com.


matt
Active Contributor

I set CC & BCC correctly.But i want define output display sequence.

Example : CC: email1@mail.com;email2@mail.com

But i want send mail with this order

CC: email2@mail.com;email1@mail.com.

Why? What difference does it make? You've no control over the actual order of sending in time - either one could be sent before the other, or received before the other.

What matters surely is the recipient receives their email

0 Kudos

For me it has no difference.I was asked for this.

matt
Active Contributor

Then it is your job to reply to the person answer something like:

Why? What difference does it make? You've no control over the actual order of sending in time - either one could be sent before the other, or received before the other.

It is part of a developers job to push back when so-called requirements are stupid.

Florian
Active Contributor
0 Kudos

Additional to Jozsef, here is a blog with almost all coding you need:-)

https://blogs.sap.com/2012/09/28/sap-abap-sending-mails-optionsadd-sender-add-multiple-recipients-as...