07-23-2015 6:03 AM
Hello Experts,
I have a issue with my mail sending program.I am sending mails to two customers two different sales order details as pdf attachment.
But mail is going for 1st customer without any errors when loop comes to the 2nd customer this exception raised.
I debugged it and found a reason that SR_STATE variable is sets 'S'.
Sample code :
loop it_mail.
* Pass the document to send request
TRY.
CALL METHOD wo_send_request->set_document( wo_document ).
CATCH cx_send_req_bcs INTO bcs_error.
bcs_mess = bcs_error->get_text( ).
ENDTRY.
endloop.
07-23-2015 7:49 AM
Hi,
Do you have commit work inside the loop.
If yes may be you can try committing the work after the loop.
Hope this helps.
07-23-2015 9:28 AM
Thanks a lot for your reply gaurav,I will try and let you know.
Regards,
Venkat.
07-23-2015 9:53 AM
07-23-2015 9:59 AM
07-23-2015 10:17 AM
Hi Rudra,
The message is "Exception during processing of send request".
Thanks,
Venkat.
07-23-2015 10:30 AM
You are sure that you are passing the data in the second loop pass correctly? I mean did you check in debug mode that you are NOT passing any blank email address?
07-23-2015 10:17 AM
Hello Venkat,
Did you check SOST, can you able to see both the mails or only the first?
Regards,
TP
07-23-2015 10:18 AM
Prakash,
Only 1 mail I am able to see in SOST not the 2nd one.
Thanks,
Venkat.
07-23-2015 10:21 AM
Hello Venkat,
Was the first message is in sent status or in the queue?
Regards,
TP
07-23-2015 10:24 AM
Hello Venkat,
Submit report RSCONN01 inside the loop and check.
Regards,
TP
07-23-2015 10:40 AM
Prakash,
For 1st customer mail is going but for 2nd customer below message is coming.
"Exception during processing of send request".
Thanks,
Venkat.
07-23-2015 10:44 AM
Is there any difference in parameters which you are passing in first and second loop?
07-23-2015 11:03 AM
07-23-2015 12:04 PM