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.