<?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: Cannot catch RFC exception in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-catch-rfc-exception/m-p/10957824#M1893264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lanch a system trace (ST01) in ECC (in the target system), check box "Authorization check", then call the FM via RFC from BW (from the source system) system, then back to ECC, stop trace and "Aanlysis" the trace to get any aithorization problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hint: If those are your first calls with this function , check authorization object S_RFC for allowed function groups (type FUGR)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Feb 2015 08:36:28 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2015-02-27T08:36:28Z</dc:date>
    <item>
      <title>Cannot catch RFC exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-catch-rfc-exception/m-p/10957821#M1893261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running a standard transaction between ECC and BW.&lt;/P&gt;&lt;P&gt;One standard function module doesn't return the expected results&lt;BR /&gt;and I can't change the coding to catch a SYSTEM_FAILURE or COMMUNICATION_FAILURE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what happens in details: the coding that causes issue is in&lt;/P&gt;&lt;P&gt;class CL_UA_FORMULA_PDCE, method GET_CO_AREA_CURRENCY, line 51.&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;CALL FUNCTION 'RSSEM_CHA_VALUES_GET'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; DESTINATION ld_rfcdest&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; i_chanm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = cd_iobj_co_area&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; i_read_attr&amp;nbsp; = abap_true&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; TABLES&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; ith_selopt&amp;nbsp;&amp;nbsp; = lt_selopt&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; eth_chavl&amp;nbsp;&amp;nbsp;&amp;nbsp; = lt_chavl&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; EXCEPTIONS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; unknown_iobj = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With values:&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;ld_rfcdest = BICLNT100&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;cd_iobj_co_area = 0CO_AREA&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;lt_selopt = 1 line with 0CO_AREA I EQ 1000&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;lt_chavl is empty&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When run the transaction in ECC, I receive exception 2 (others).&lt;/P&gt;&lt;P&gt;When I run the RFC call in SE37 in ECC, I receive the expected values, no exception.&lt;/P&gt;&lt;P&gt;When I run the function module in SE37 in BI and with the RFC user in the debugger, I receive the expected values, no exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe there is a communication or authorization issue, which could be caught with &lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: #333333;"&gt; EXCEPTIONS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: #333333;"&gt; SYSTEM_FAILURE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1&amp;nbsp; MESSAGE L_V_RFC_MESS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: #333333;"&gt; COMMUNICATION_FAILURE = 2&amp;nbsp; MESSAGE L_V_RFC_MESS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But since this is standard coding, I can’t change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to run an RFC trace, but the content is useless.&lt;/P&gt;&lt;P&gt;I tried the System Debugging, but it won't jump into the BW system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better basis transaction to see what happens between the 2 machines?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Any other idea? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Julien&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 17:15:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-catch-rfc-exception/m-p/10957821#M1893261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-26T17:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot catch RFC exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-catch-rfc-exception/m-p/10957822#M1893262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julien,&lt;/P&gt;&lt;P&gt;I think there might be some Basis security issues due to which the system is not the way it supposed to be perform &lt;/P&gt;&lt;P&gt;Yes you can find that what happened between 2 system - Please go through the following link I think you will get your solution &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/Snippets/Show+RFC+Workload+Statistic+to+build+authorizations+for+authorization+object+S_RFC" title="http://wiki.scn.sap.com/wiki/display/Snippets/Show+RFC+Workload+Statistic+to+build+authorizations+for+authorization+object+S_RFC"&gt;Show RFC Workload Statistic to build authorizations for authorization object S_RFC - Code Gallery - SCN Wiki&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And another link &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/Security/Best+Practice+-+How+to+analyze+and+secure+RFC+connections" title="http://wiki.scn.sap.com/wiki/display/Security/Best+Practice+-+How+to+analyze+and+secure+RFC+connections"&gt;Best Practice - How to analyze and secure RFC connections - Security and Identity Management - SCN Wiki&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Saifur Rahaman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 20:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-catch-rfc-exception/m-p/10957822#M1893262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-26T20:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot catch RFC exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-catch-rfc-exception/m-p/10957823#M1893263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstly, if the RFC is working fine in SE37 but not in transaction, it could be due to conversion exits not running on exported values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Running RFC in SE37 does it automatically, so no issue there. But for e.g., &lt;/SPAN&gt;to run it through a program u need to make sure the values being exported are in SAP internal format, which could be done using conv. exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if something is missed there, possibility is least as its standard SAP, but still check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, you can debug the RFC using following 2 approaches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Approach 1 -&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Make the RFC user a &lt;STRONG&gt;Dialog user&lt;/STRONG&gt; for time being in BI. (Generally RFC users are system/service)&lt;/LI&gt;&lt;LI&gt;Go to BI system, login with your User ID.&lt;/LI&gt;&lt;LI&gt;Go to debugger settings from SE38 menus and put the RFC user id there.&lt;/LI&gt;&lt;LI&gt;Put &lt;STRONG&gt;external &lt;/STRONG&gt;&lt;STRONG&gt;break-point &lt;/STRONG&gt;inside the RFC FM, where you want to debug from.&lt;/LI&gt;&lt;LI&gt;Run the transaction in ECC. It would then stop at your break-point.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;Approach 2 -&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a new RFC Destination, say BICLNT100X, in SM59 of ECC.&lt;/LI&gt;&lt;LI&gt;Don't put a user name/password.&lt;/LI&gt;&lt;LI&gt;Just click on &lt;STRONG&gt;Logon Screen&lt;/STRONG&gt; checkbox. This will show up logon screen while running RFC, and you can enter your user name/password to debug the RFC in BI. But before that, perform the following steps.&lt;/LI&gt;&lt;LI&gt;Change the user id in debugger settings in BI back to your user.&lt;/LI&gt;&lt;LI&gt;Put &lt;STRONG&gt;external break-point &lt;/STRONG&gt;inside the RFC FM, where you want to debug from.&lt;/LI&gt;&lt;LI&gt;Also, put a session break-point in ECC at the CALL FUNCTION statement of RFC.&lt;/LI&gt;&lt;LI&gt;Run the transaction. Once it stops at CALL FUNCTION statement, change the RFC Dest name to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;BICLNT100X in the destination name variable. Execute&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;It will open BI Logon screen in a new session. Enter you user/pass and once you press enter, it will stop at the external break-point.&lt;/LI&gt;&lt;/OL&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;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 22:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-catch-rfc-exception/m-p/10957823#M1893263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-26T22:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot catch RFC exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-catch-rfc-exception/m-p/10957824#M1893264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lanch a system trace (ST01) in ECC (in the target system), check box "Authorization check", then call the FM via RFC from BW (from the source system) system, then back to ECC, stop trace and "Aanlysis" the trace to get any aithorization problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hint: If those are your first calls with this function , check authorization object S_RFC for allowed function groups (type FUGR)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 08:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-catch-rfc-exception/m-p/10957824#M1893264</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2015-02-27T08:36:28Z</dc:date>
    </item>
  </channel>
</rss>

