Application Development 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: 

Exception raised CX_SEND_REQ_BCS while sending mails.

former_member220941
Participant
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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

Regards,

Venkat.

0 Kudos

Gaurav,

No it is not working.

Regards,

Venkat.

0 Kudos

What is message coming in bcs_mess variable?

0 Kudos

Hi Rudra,

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


Thanks,

Venkat.

0 Kudos

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?

thanga_prakash
Active Contributor
0 Kudos

Hello Venkat,

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

Regards,

TP

0 Kudos

Prakash,

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

Thanks,

Venkat.

0 Kudos

Hello Venkat,

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

Regards,

TP

0 Kudos

Hello Venkat,

Submit report RSCONN01 inside the loop and check.

Regards,

TP

0 Kudos

Prakash,

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

"Exception during processing of send request".

Thanks,

Venkat.

0 Kudos

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

0 Kudos

no all parameters are same.

prad_k
Explorer
0 Kudos

Share the code