<?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: Function module works correctly in debugger, but hangs otherwise. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-works-correctly-in-debugger-but-hangs-otherwise/m-p/4978759#M1160220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BUT000 is a CRM table.. some where in ur code... or some FM check if you are passing all the mandatory fields of that FM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Dec 2008 22:07:08 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-12-29T22:07:08Z</dc:date>
    <item>
      <title>Function module works correctly in debugger, but hangs otherwise.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-works-correctly-in-debugger-but-hangs-otherwise/m-p/4978756#M1160217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having an issue with a standard function module that 'hangs' when ran.  If i look in sm37, the calling job will just continuously run.  If i look in SM50, there aren't any sql statements which are bringing back large results, it seems to be running a large number of sequential reads against a certain table.  The odd thing is, if i break in this function module, then press F8 to continue, the function module successfully executes and the job finishes.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module in question is ISU_DUNNING_DEACT_INSTPL_0350, which i have attached to a dunning activity.  This function module SHOULD deactivate any active installment plans for the dunned account.  The FM is odd, as it calls another FM and does a hard EXIT, even though there is code below this line that it can never access.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set a breakpoint in the function module, and run FPVB (dunning transaction), it will break into the function module.  I can then press F8, the FM completes successfully, then the job completes.  If i do NOT break it (just run in background as normal), the job just continuously runs.  SM50 reveals reads to the BUT000 table (even though i cannot find any calls to this table in the fm).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 16:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-works-correctly-in-debugger-but-hangs-otherwise/m-p/4978756#M1160217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T16:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Function module works correctly in debugger, but hangs otherwise.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-works-correctly-in-debugger-but-hangs-otherwise/m-p/4978757#M1160218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aaron,&lt;/P&gt;&lt;P&gt;Can you please have SQL Trace u2013 ST05 u2013 on Fms which shows SQL Trace i.e. all u2018selectu2018 time with index hit. This might give some hint where is maximum time used. Also a Runtime Analysis SE30 to analyze o/p graph to know whether it is consuming more ABAP, DB, SYSTEM side.&lt;/P&gt;&lt;P&gt;Referring to BUT000 table it is for business partners. During Dunning execution your code might be passing more data to BUT000 table call in execution flow.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Nishikant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 21:46:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-works-correctly-in-debugger-but-hangs-otherwise/m-p/4978757#M1160218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T21:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Function module works correctly in debugger, but hangs otherwise.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-works-correctly-in-debugger-but-hangs-otherwise/m-p/4978758#M1160219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nishikant,&lt;/P&gt;&lt;P&gt; Thanks very much for the help.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did this, and I can see where its getting stuck.  The following entries are repeated indefinitely (until i stop it )&lt;/P&gt;&lt;P&gt;      374 BUT000     FETCH       1      0&lt;/P&gt;&lt;P&gt;        3 BUT000     REOPEN             0 SELECT WHERE "CLIENT" = '120' AND "PARTNER" = '0007024125'&lt;/P&gt;&lt;P&gt;      420 BUT000     FETCH       1      0&lt;/P&gt;&lt;P&gt;        3 BUT000     REOPEN             0 SELECT WHERE "CLIENT" = '120' AND "PARTNER" = '0007024125'&lt;/P&gt;&lt;P&gt;      365 BUT000     FETCH       1      0&lt;/P&gt;&lt;P&gt;        3 BUT000     REOPEN             0 SELECT WHERE "CLIENT" = '120' AND "PARTNER" = '0007024125'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i double click the SQL statement, i see these details&lt;/P&gt;&lt;P&gt;SQL Statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT&lt;/P&gt;&lt;P&gt;    "CLIENT"&lt;/P&gt;&lt;P&gt;  FROM&lt;/P&gt;&lt;P&gt;    "BUT000"&lt;/P&gt;&lt;P&gt;  WHERE&lt;/P&gt;&lt;P&gt; "CLIENT" = :A0 AND "PARTNER" = :A1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A0(CH,3)  = 120&lt;/P&gt;&lt;P&gt;A1(CH,10) = 0007024125&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I caught it in SM50 where the read was, and it says the select exists in Function Pool SAPLBPT1.  I have done a search in this for anything containing BUT000, but have found nothing.  Any suggestions on how to find where this is occurring, or what might be going on?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 22:01:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-works-correctly-in-debugger-but-hangs-otherwise/m-p/4978758#M1160219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T22:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Function module works correctly in debugger, but hangs otherwise.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-works-correctly-in-debugger-but-hangs-otherwise/m-p/4978759#M1160220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BUT000 is a CRM table.. some where in ur code... or some FM check if you are passing all the mandatory fields of that FM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 22:07:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-works-correctly-in-debugger-but-hangs-otherwise/m-p/4978759#M1160220</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-12-29T22:07:08Z</dc:date>
    </item>
  </channel>
</rss>

