06-15-2013 8:04 PM
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?
06-16-2013 8:27 AM
CL_BCS can be used to send mail.. with some added features. Its not much different. It is more object oriented. It is believed to be more stable and SAP recommends to use it as a replacement.
Check these blogs.
http://wiki.sdn.sap.com/wiki/display/ABAP/Sending+Mails+-+Home+Page
http://scn.sap.com/people/eddy.declercq/blog/2006/04/03/unknown-thus-unloved
06-16-2013 8:27 AM
CL_BCS can be used to send mail.. with some added features. Its not much different. It is more object oriented. It is believed to be more stable and SAP recommends to use it as a replacement.
Check these blogs.
http://wiki.sdn.sap.com/wiki/display/ABAP/Sending+Mails+-+Home+Page
http://scn.sap.com/people/eddy.declercq/blog/2006/04/03/unknown-thus-unloved
06-16-2013 8:32 AM
Please check the following link:
http://wiki.sdn.sap.com/wiki/display/ABAP/Sending+Mails+-+Home+Page
Regards
06-17-2013 4:46 AM
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
06-17-2013 1:07 PM
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.