Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Exception raised CX_SEND_REQ_BCS while sending mails.

former_member220941
Participant
0 Likes
10,515

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.

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.

14 REPLIES 14
Read only

Former Member
0 Likes
6,475

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.

Read only

0 Likes
6,475

Thanks a lot for your reply gaurav,I will try and let you know.

Regards,

Venkat.

Read only

0 Likes
6,475

Gaurav,

No it is not working.

Regards,

Venkat.

Read only

0 Likes
6,475

What is message coming in bcs_mess variable?

Read only

0 Likes
6,475

Hi Rudra,

The message is "Exception during processing of send request".


Thanks,

Venkat.

Read only

0 Likes
6,475

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?

Read only

ThangaPrakash
Active Contributor
0 Likes
6,475

Hello Venkat,

Did you check SOST, can you able to see both the mails or only the first?

Regards,

TP

Read only

0 Likes
6,475

Prakash,

Only 1 mail I am able to see in SOST not the 2nd one.

Thanks,

Venkat.

Read only

0 Likes
6,475

Hello Venkat,

Was the first message is in sent status or in the queue?

Regards,

TP

Read only

0 Likes
6,475

Hello Venkat,

Submit report RSCONN01 inside the loop and check.

Regards,

TP

Read only

0 Likes
6,475

Prakash,

For 1st customer mail is going but  for 2nd customer below message is coming.

"Exception during processing of send request".

Thanks,

Venkat.

Read only

0 Likes
6,475

Is there any difference in parameters which you are passing in first and second loop?

Read only

0 Likes
6,475

no all parameters are same.

Read only

prad_k
Explorer
0 Likes
6,475

Share the code