Skip to Content
-1

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

Mar 14, 2017 at 12:30 PM

133

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Tomas Buryanek Mar 14, 2017 at 12:51 PM
0

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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

0

Do you know what exactly takes time?

Is it e-mail in SOST, waiting for to be send? Or something else?

0
Balram Adep Mar 14, 2017 at 03:14 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Jelena Perfiljeva
Mar 14, 2017 at 08:00 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded