Skip to Content
avatar image
-1
Former Member

Background job taking long time for sending email with PDF attached using CL_BCS

Hi Friends,

Background job is taking long time.

When background job is used to generate (adobe form) spool it is taking less time.

however when same background job is used to generate pdf (adobe form) and sending email with pdf attachment it is taking long time.

Class CL_BCS is used to send the email in background job.

Method lo_send_req->send

What is difference between send and SET_SEND_IMMEDIATELY method of Class CL_BCS.

Thanks,

Balram Adep

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 14, 2017 at 12:51 PM

    SET_SEND_IMMEDIATELY sets attribute which controls if e-mail has to wait for SOST (usually job in some frequency for example) or goes to SMTP server directly.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 14, 2017 at 03:14 PM

    Whether using SET_SEND_IMMEDIATELY method would reduce the time of background job....

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 14, 2017 at 08:00 PM

    Rather confused by this question... Naturally, generating output and sending it by email will take more time than just generating output. If the runtime is significantly longer (like more than twice as long) then this needs to be investigated in your system together with your Basis team. SCN members wouldn't know what's going on in your system, sorry.

    When you are sending multiple emails in background don't use "send immediately" and yes, it'll make it slower than without it.

    Add comment
    10|10000 characters needed characters exceeded