<?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: Data not available in TRFC (Debugging) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-available-in-trfc-debugging/m-p/8440104#M1648459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i changed my import parameters to changing i started geting values inside. Does not looks like a correct solution. May be i was missing something else as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Dec 2011 17:51:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-12-08T17:51:14Z</dc:date>
    <item>
      <title>Data not available in TRFC (Debugging)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-available-in-trfc-debugging/m-p/8440101#M1648456</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 using call function to create TRFC. It gets created and shows up in SM58.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i debug the FM i can not see my data which i have passed to this FM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one faced this issue before. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'ZY_LINK_FAILED_ORDERS' IN BACKGROUND TASK&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            i_s_failed_link = ls_failed_link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am passing my data in the variable i_s_failed_link. But when i go to sm58 and debug this values are not available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ansari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 14:16:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-available-in-trfc-debugging/m-p/8440101#M1648456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-08T14:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data not available in TRFC (Debugging)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-available-in-trfc-debugging/m-p/8440102#M1648457</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;Normally these back ground task RFCs will be executed by the program RSARFCSE, can u try reading the documentation available in both SM58 and this report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mahesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 15:31:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-available-in-trfc-debugging/m-p/8440102#M1648457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-08T15:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Data not available in TRFC (Debugging)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-available-in-trfc-debugging/m-p/8440103#M1648458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Functions executed in background task need to be debugged in a special way - these functions get executed by the system when a COMMIT is encountered in the calling program. Once executed there is no point in debugging them in SM58 as all values/variables are released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what you need to do so that the background function call is blocked even if COMMIT occurs so you can debug and the parameters retain values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just added a little elaboration from this wiki [link|http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP+Debugger#ABAPDebugger-HowtodebugtRFCfunctionmodule]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say program ABC calls FUNCTION 'XYZ' IN BACKGROUND TASK ..., and you want to debug XYZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Add breakpoint in ABC before the CALL FUNCTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Start ABC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. When you reach the breakpoint, select menu Settings, Display/Change debugger settings, select the flag "tRFC (In Background Task): Block Sending". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above setting is for new debugger, in classic debugger you need to do Settings -&amp;gt; Display and change all -&amp;gt; Check on In background task: Do not process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This flag means that, when the commit work occurs, the background task (FMs + parameters) is stored into database but not executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Run SM58&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Select the background task, and choose menu edit + debug LUW, the "background task" will start interactively and the debugger will stop at predefined points by sap, and in FM XYZ automatically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 16:42:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-available-in-trfc-debugging/m-p/8440103#M1648458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-08T16:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data not available in TRFC (Debugging)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-available-in-trfc-debugging/m-p/8440104#M1648459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i changed my import parameters to changing i started geting values inside. Does not looks like a correct solution. May be i was missing something else as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 17:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-available-in-trfc-debugging/m-p/8440104#M1648459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-08T17:51:14Z</dc:date>
    </item>
  </channel>
</rss>

