<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: catch cx_send_req_bcs. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-cx-send-req-bcs/m-p/2190768#M467049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do you mean by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"when the input is one row -&amp;gt; it work"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what input you are referring to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2007 09:20:11 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2007-05-09T09:20:11Z</dc:date>
    <item>
      <title>catch cx_send_req_bcs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-cx-send-req-bcs/m-p/2190767#M467048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a little problem with this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an other Program the coding works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Problem when the input is one row -&amp;gt; it work. When the input is more. Error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********&lt;STRONG&gt;Dokument versenden&lt;/STRONG&gt;**********&lt;/P&gt;&lt;P&gt;  try.                                 "&lt;/P&gt;&lt;P&gt;      call method                      "&lt;/P&gt;&lt;P&gt;            mail_send_request-&amp;gt;send(   " Email send&lt;/P&gt;&lt;P&gt;          exporting                    "&lt;/P&gt;&lt;P&gt;            i_with_error_screen = ' '  "&lt;/P&gt;&lt;P&gt;          receiving                    "&lt;/P&gt;&lt;P&gt;            result    = sent_to_all ). " Send_Status&lt;/P&gt;&lt;P&gt;      if sent_to_all = 'X'.            " Send succes?&lt;/P&gt;&lt;P&gt;      endif.                           "&lt;/P&gt;&lt;P&gt;    catch cx_send_req_bcs.             "&lt;/P&gt;&lt;P&gt;      write: 'Error by send'.          "&lt;/P&gt;&lt;P&gt;  endtry.                              "&lt;/P&gt;&lt;P&gt;  commit work.                         " LUW close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 08:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-cx-send-req-bcs/m-p/2190767#M467048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T08:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: catch cx_send_req_bcs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-cx-send-req-bcs/m-p/2190768#M467049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do you mean by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"when the input is one row -&amp;gt; it work"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what input you are referring to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 09:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-cx-send-req-bcs/m-p/2190768#M467049</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-05-09T09:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: catch cx_send_req_bcs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-cx-send-req-bcs/m-p/2190769#M467050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i put one one Entry in this Fm Example 100 it work&lt;/P&gt;&lt;P&gt;When i put more Entry                     Example 100, 200, 300&lt;/P&gt;&lt;P&gt;The  catch cx_send_req_bcs brings an Erorr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 09:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-cx-send-req-bcs/m-p/2190769#M467050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T09:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: catch cx_send_req_bcs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-cx-send-req-bcs/m-p/2190770#M467051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the code below :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : tl_ltext TYPE bcsy_text.&lt;/P&gt;&lt;P&gt;DATA : l_sent_to_all TYPE os_boolean,&lt;/P&gt;&lt;P&gt;l_send_request TYPE REF TO cl_bcs,&lt;/P&gt;&lt;P&gt;l_document TYPE REF TO cl_document_bcs,&lt;/P&gt;&lt;P&gt;l_recipient TYPE REF TO if_recipient_bcs,&lt;/P&gt;&lt;P&gt;l_recpt TYPE adr6-smtp_addr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;l_send_request = cl_bcs=&amp;gt;create_persistent( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH cx_send_req_bcs.&lt;/P&gt;&lt;P&gt;PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*C--&amp;gt; lines of the internal table have the error messages&lt;/P&gt;&lt;P&gt;REFRESH tl_ltext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF t_err_crchg[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;APPEND LINES OF t_err_crchg TO tl_ltext.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND LINES OF t_error TO tl_ltext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF t_error1[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;wa_error-error = text-018.&lt;/P&gt;&lt;P&gt;APPEND wa_error TO tl_ltext.&lt;/P&gt;&lt;P&gt;CLEAR wa_error.&lt;/P&gt;&lt;P&gt;APPEND LINES OF t_error1 TO tl_ltext.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*C--&amp;gt; Create the document and catch any exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;l_document = cl_document_bcs=&amp;gt;create_document( i_type = text-015&lt;/P&gt;&lt;P&gt;i_text = tl_ltext i_subject = text-006 ).&lt;/P&gt;&lt;P&gt;CATCH cx_document_bcs.&lt;/P&gt;&lt;P&gt;PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;CALL METHOD l_send_request-&amp;gt;set_document( l_document ).&lt;/P&gt;&lt;P&gt;CATCH cx_send_req_bcs.&lt;/P&gt;&lt;P&gt;PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*C--&amp;gt; Create the internet address and catch any exceptions&lt;/P&gt;&lt;P&gt;CLEAR l_recpt.&lt;/P&gt;&lt;P&gt;LOOP AT t_email INTO wa_email.&lt;/P&gt;&lt;P&gt;l_recpt = wa_email-val1.&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;l_recipient = cl_cam_address_bcs=&amp;gt;create_internet_address( l_recpt )&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;CATCH cx_address_bcs.&lt;/P&gt;&lt;P&gt;PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;CALL METHOD l_send_request-&amp;gt;add_recipient&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_recipient = l_recipient&lt;/P&gt;&lt;P&gt;i_express = c_x.&lt;/P&gt;&lt;P&gt;CATCH cx_send_req_bcs.&lt;/P&gt;&lt;P&gt;PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*C--&amp;gt; send the mail document to all the email addresses specified&lt;/P&gt;&lt;P&gt;CLEAR l_sent_to_all.&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;CALL METHOD l_send_request-&amp;gt;send&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_with_error_screen = c_x&lt;/P&gt;&lt;P&gt;RECEIVING&lt;/P&gt;&lt;P&gt;result = l_sent_to_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;CATCH cx_send_req_bcs.&lt;/P&gt;&lt;P&gt;PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if helpful :-)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 09:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-cx-send-req-bcs/m-p/2190770#M467051</guid>
      <dc:creator>sonu_p2</dc:creator>
      <dc:date>2007-05-09T09:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: catch cx_send_req_bcs.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-cx-send-req-bcs/m-p/2190771#M467052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;which FM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you mean when you send more emails its failing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 10:05:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-cx-send-req-bcs/m-p/2190771#M467052</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-05-09T10:05:56Z</dc:date>
    </item>
  </channel>
</rss>

