‎2016 Aug 18 5:34 AM
Dear Experts,
I am sending email with multiple attachments to multiple user .
The program is assigned to an output type for delivery.
User will be using tcode VL71.
if user process only single delivery, all going fine.
But if user process two or more deliveries at a time, then the email body of first email is getting appended to second email body with all attachments.
I have declared all objects locally in the subroutine(FORM..ENDFORM).
Can anyone guide how to delete the object of cl_bcs class after mail is sent, OR
clear / initialize the object every time , program is called.
Thanks in advance.
Jaspal
‎2016 Aug 18 7:02 AM
Hi Jaspal,
If you create new object of CL_BCS each time you execute your logic that problem should not occur.
Are you sure the content is not kept in your local variables?
‎2016 Aug 18 7:03 AM
If you have an object mail type ref to cl_bcs then simply clear mail.