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: 

Why use class CL_BCS for sending emails?

Former Member
0 Kudos

For years, I've written many programs that use SO_DOCUMENT_SEND_API1 to send emails, with attachments.

Now SAP tells us to use CL_BCS???

What are the advantages of using CL_BCS?

To me it just seems like a more difficult way to do the same thing?

Or am I missing something?

What's wrong with just using SO_DOCUMENT_SEND_API1?

1 ACCEPTED SOLUTION

former_member184569
Active Contributor
4 REPLIES 4

former_member184569
Active Contributor

former_member188827
Active Contributor
0 Kudos

Former Member
0 Kudos

Dear Damien,

As far as i have used, i noticed that the mails that are sent using the Function Module, are not pushed from SOST directly and we will have to run RSCONN01 program in order to do so.. Even if you push it directly through RSCONN01, all pending mails are also pushed rather than pushing the ones that we run alone, unless you capture the date and time by converting the FM to a customed one as per our need.


But using CL_BCS class, it pushes that instantly when we use the method SEND( ), and pushed only the mails which were run by us through the program.

The rest i feel its the same, and as SAP recommends to use CL_BCS, i hope there would be lot of reasons behind it and its better to use CL_BCS.

Regards,

AyyamPerumal

Former Member
0 Kudos

Hi Damien,

I think a lot of this is down to how you program...

If you are an avid ABAP OO programmer then obviously it would be good to have email functionality that was also OO enabled, like that in CL_BCS.

However if you use procedural programming then the SO_DOCUMENT_SEND_API1 function module should work just fine, with the limitation that you'd need to submit RSCONN01 after the function module call.

The above links, provided by your fellow SCNers, should help you to become familiar with CL_BCS and if you have any further questions then just post them here.

Hope that helps.