Skip to Content
avatar image
Former Member

Why use class CL_BCS for sending emails?

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jun 17, 2013 at 03: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 16, 2013 at 07:27 AM
    Add comment
    10|10000 characters needed characters exceeded

  • Jun 16, 2013 at 07:32 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 17, 2013 at 12: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.

    Add comment
    10|10000 characters needed characters exceeded