<?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 Synchronous RFC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-rfc/m-p/1339935#M172139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am making a synchronous RFC call passing a structure and expecting a return value like "No of records updated" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am passing a structure to XI from R/3 using RFC call. Xi has to insert this structure in a legacy database table and return the number of records inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working fine when everything is fine but when the legacy database is down it is giving me a short dump &lt;/P&gt;&lt;P&gt;"call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException:" How to handle this exception? Please send me some solution to this ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'RFC_SYSTEM_INFO' DESTINATION l_rfcdest&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;         rfcsi_export       = l_rfcsi&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           rfc_login_complete =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           dialog_user_type   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           current_resources  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           maximal_resources  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           recommended_delay  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;         communication_failure = 1 MESSAGE l_msg&lt;/P&gt;&lt;P&gt;         system_failure        = 2 MESSAGE l_msg&lt;/P&gt;&lt;P&gt;         OTHERS                = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      IF l_msg IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'Z_SAP_TO_CADB' DESTINATION l_rfcdest&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            pt_items = pt_items&lt;/P&gt;&lt;P&gt;          CHANGING&lt;/P&gt;&lt;P&gt;            return   = return1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i am checking for the RFC destination first, if RFC destination is fine then only i am making an RFC call to XI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pt_items is the structure i am passing to XI&lt;/P&gt;&lt;P&gt;return1 is where i am expecting the number of records inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2006 12:15:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-18T12:15:48Z</dc:date>
    <item>
      <title>Synchronous RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-rfc/m-p/1339935#M172139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am making a synchronous RFC call passing a structure and expecting a return value like "No of records updated" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am passing a structure to XI from R/3 using RFC call. Xi has to insert this structure in a legacy database table and return the number of records inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working fine when everything is fine but when the legacy database is down it is giving me a short dump &lt;/P&gt;&lt;P&gt;"call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException:" How to handle this exception? Please send me some solution to this ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'RFC_SYSTEM_INFO' DESTINATION l_rfcdest&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;         rfcsi_export       = l_rfcsi&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           rfc_login_complete =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           dialog_user_type   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           current_resources  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           maximal_resources  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           recommended_delay  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;         communication_failure = 1 MESSAGE l_msg&lt;/P&gt;&lt;P&gt;         system_failure        = 2 MESSAGE l_msg&lt;/P&gt;&lt;P&gt;         OTHERS                = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      IF l_msg IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'Z_SAP_TO_CADB' DESTINATION l_rfcdest&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            pt_items = pt_items&lt;/P&gt;&lt;P&gt;          CHANGING&lt;/P&gt;&lt;P&gt;            return   = return1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i am checking for the RFC destination first, if RFC destination is fine then only i am making an RFC call to XI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pt_items is the structure i am passing to XI&lt;/P&gt;&lt;P&gt;return1 is where i am expecting the number of records inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 12:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-rfc/m-p/1339935#M172139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T12:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronous RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-rfc/m-p/1339936#M172140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding the exception handling to the Z_SAP_TO_CADB function call.  So the following should be your call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_SAP_TO_CADB' DESTINATION l_rfcdest&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;pt_items = pt_items&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;return = return1&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;communication_failure = 1 MESSAGE l_msg&lt;/P&gt;&lt;P&gt;system_failure = 2 MESSAGE l_msg&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;   Your Logic.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;   Exception handling.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 13:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-rfc/m-p/1339936#M172140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T13:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronous RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-rfc/m-p/1339937#M172141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;   Try using the below FM to check the  destination and if its successful then cal FM 'Z_SAP_TO_CADB' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check RFC Destination++&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'RFC_VERIFY_DESTINATION'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      destination                      = ws_dest&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  AUTOUPDATE                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TIMEOUT                          = 60&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RFCSI_EXPORT                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RFC_LOGIN_COMPLETE               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DIALOG_USER_TYPE                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CURRENT_RESOURCES                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAXIMAL_RESOURCES                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RECOMMENDED_DELAY                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHARSIZE                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UPDATED                          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      internal_failure                 = 1&lt;/P&gt;&lt;P&gt;      timeout                          = 2&lt;/P&gt;&lt;P&gt;      dest_communication_failure       = 3&lt;/P&gt;&lt;P&gt;      dest_system_failure              = 4&lt;/P&gt;&lt;P&gt;      update_failure                   = 5&lt;/P&gt;&lt;P&gt;      no_update_authority              = 6&lt;/P&gt;&lt;P&gt;      OTHERS                           = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreejesh .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 14:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-rfc/m-p/1339937#M172141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T14:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronous RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-rfc/m-p/1339938#M172142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your inputs, Your solution works and solved my problem. Also i rewarded points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2006 14:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronous-rfc/m-p/1339938#M172142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-22T14:21:21Z</dc:date>
    </item>
  </channel>
</rss>

