Skip to Content
0
Former Member
Mar 24, 2009 at 03:49 PM

Problem with sending e-mail

230 Views

I have a custom program which can send account statements to the user by fax or e-mail as specified on the selection screen. I am facing a problem while sending e-mail.

When I call the End_form FM, if the ITCPP-TDIMMED (Print immediately) parameter is 'X', then it sends e-mails to all the customer properly, but it will give pop-ups to save the account statement as PDF on your pc for as many times as there are customers.

If I pass the ITCPP-TDIMMED as blank, then it won't give pop-ups but it will not send e-mail to all customers. This is because, inside the End_form FM -> FM RSPO_SR_OPEN, system function C_START_SPOOL_JOB is called. If the print_immediately parameter for this function is 'X' then it generates new spool number every time and so it sends mail to all the customers. If print_immediately is blank, then it will generate only one spool ID and so it will send e-mail to only one customer.

Functionality for fax is different. Spool is not generated for fax, so it sends fax correctly and does not give pop ups for saving the account statements.

My problem is, I want to avoid the pop ups for saving and send the e-mail to all cutomers properly.

Has anyone faced the same problem? Is there any work wround this situation?