<?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 Debugging with several RFC hops in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-with-several-rfc-hops/m-p/6648812#M1444636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a central application on system B, which is called from system A. The application needs in addition some special data again from A, so there is an RFC jump back to A ti get the required data,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short: A calls B, B calls A back to get some data. I' able to set a breakpoint in B, and system stops. After that i'm unable to step into the rfc funcion call back to A, it always executs the FM in one step. Setting a breakpoint in A reveals the Message "Debugging not possible".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am i doing something wrong or is there really a limit regarding the RFC hops? In this case, one RFC is working, but the second back to A doesnt stop at the breakpoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Mar 2010 09:47:56 GMT</pubDate>
    <dc:creator>rainer_hbenthal</dc:creator>
    <dc:date>2010-03-19T09:47:56Z</dc:date>
    <item>
      <title>Debugging with several RFC hops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-with-several-rfc-hops/m-p/6648812#M1444636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a central application on system B, which is called from system A. The application needs in addition some special data again from A, so there is an RFC jump back to A ti get the required data,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short: A calls B, B calls A back to get some data. I' able to set a breakpoint in B, and system stops. After that i'm unable to step into the rfc funcion call back to A, it always executs the FM in one step. Setting a breakpoint in A reveals the Message "Debugging not possible".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am i doing something wrong or is there really a limit regarding the RFC hops? In this case, one RFC is working, but the second back to A doesnt stop at the breakpoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 09:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-with-several-rfc-hops/m-p/6648812#M1444636</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2010-03-19T09:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging with several RFC hops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-with-several-rfc-hops/m-p/6648813#M1444637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ruber&lt;/P&gt;&lt;P&gt;good question &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;try out like this&lt;/P&gt;&lt;P&gt;core code modification required.&lt;/P&gt;&lt;P&gt;in the standard program &lt;/P&gt;&lt;P&gt;SAPMSSY1(subroutine pool)&lt;/P&gt;&lt;P&gt;In the form you need to insert a code like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM REMOTE_FUNCTION_CALL USING VALUE(TYPE).
  DO.
    CALL 'RfcImport' ID 'Type' FIELD TYPE.
***inserted 
    perform check_for_debug in program XXXXXXXXXXXX.
***inserted
    PERFORM (SY-XFORM) IN PROGRAM (SY-XPROG).
    RSYN &amp;gt;SCONT SYSC 00011111 0.
  ENDDO.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the XXXXXXXXXX program is in turn a subroutine pool&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form check_for_debug.


  TABLES: *******.

  SY-SUBRC = 0.

  WHILE SY-SUBRC = 0.

    SELECT SINGLE *
           FROM ******
           WHERE UNAME = SY-UNAME
             AND FNAME = SY-XFORM.

    if sy-subrc = 0.
      do 1000 times.
      enddo.
    endif.

  ENDWHILE.

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And in the z table you can create a 2 fields for which you can maintain table maintenance generator and in that you can add your RFC user.&lt;/P&gt;&lt;P&gt;and in these both systems this is should be maintained&lt;/P&gt;&lt;P&gt;and for this a heavy effort was put up by me &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;is it ok 4 you&lt;/P&gt;&lt;P&gt;try out&lt;/P&gt;&lt;P&gt;all the best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 10:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-with-several-rfc-hops/m-p/6648813#M1444637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-19T10:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging with several RFC hops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-with-several-rfc-hops/m-p/6648814#M1444638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer, but at least it was a dumb question. When B is calling A again of course the remote function does not run under my origin user id but under the userid specified in system B &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 10:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-with-several-rfc-hops/m-p/6648814#M1444638</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2010-03-19T10:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging with several RFC hops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-with-several-rfc-hops/m-p/6648815#M1444639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;in both cases from B to A or from A to B the RFC user will be logging in , so in both systems the ztable should be maintained with the RFC FM name and user id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;s.janagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 10:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-with-several-rfc-hops/m-p/6648815#M1444639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-19T10:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging with several RFC hops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-with-several-rfc-hops/m-p/6648816#M1444640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i was aware that from A to B the userid changes (external breakpoint with different userid) but for any reason i didnt take care off userid change again &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i said: dumb question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 10:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-with-several-rfc-hops/m-p/6648816#M1444640</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2010-03-19T10:47:59Z</dc:date>
    </item>
  </channel>
</rss>

