Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Dump error while scheduling a job which sends emails to all employees

$
0
0

Hi Everyone,

 

We have a requirement, by which an executable ABAP program should send emails to all employees of the organization with the PDF attachment of their salary payslips.

 

Hence I have built a program which generates the PDF document, attaches it to the email and sends to all on roll employees of the organization using CL_BCS class.

And another program which validates the user inputs, that is payroll period and year and schedules the above program in the background using JOB_OPEN and JOB_CLOSE with SUBMIT statement in between them.

 

When I tested the development for a few hundred employees, it worked but as i ran for a mass of employees, the job got canceled due to a runtime exception.

A RAISE statement in the program "CL_GUI_HTML_VIEWER============CP" raised the

  exception

condition "CNTL_ERROR".

 

Also, after a few analysis with the SOST transaction where in we can see the list of the emails sent, I have observed that on background execution initial few records of the internal table I use are going missing.

 

Please advice.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>