<?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 inside a loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-a-loop/m-p/4864578#M1137430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done , REFRESH for all the tables getting values and that passing values into the FM. The FM works fine for the first line item . For the second line item onwards it is not populating the required tables due to some already filled tables inside the FM . &lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT also doent work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Nov 2008 11:32:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-28T11:32:44Z</dc:date>
    <item>
      <title>Function module inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-a-loop/m-p/4864575#M1137427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;                          I am using a FM 'PRICING_SUBSCREEN_PBO'  inside a loop.&lt;/P&gt;&lt;P&gt;This FM should work for all the line items in a contract . But my issue is that this works only for the first line item and not populating  the required tables . This happens because inside the FM two internal tables are getting polpulated in the first iteration,in the second iteration there are read statements from these tables ,which will end up in exit from FM without populating the required output tables,in case of succesful read statements.&lt;/P&gt;&lt;P&gt;                       I want all the internal table inside the FM to be cleared  after first iteration. What to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to reset the FM ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2008 11:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-a-loop/m-p/4864575#M1137427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-28T11:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Function module inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-a-loop/m-p/4864576#M1137428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai i think&lt;/P&gt;&lt;P&gt;u have to use commit&lt;/P&gt;&lt;P&gt;after this FM&lt;/P&gt;&lt;P&gt;ie., BAPI_transaction_commit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2008 11:20:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-a-loop/m-p/4864576#M1137428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-28T11:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function module inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-a-loop/m-p/4864577#M1137429</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;Try refreshing the internal tables used to pass/get values to/from the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See F1 help for &lt;STRONG&gt;REFRESH&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2008 11:27:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-a-loop/m-p/4864577#M1137429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-28T11:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Function module inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-a-loop/m-p/4864578#M1137430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done , REFRESH for all the tables getting values and that passing values into the FM. The FM works fine for the first line item . For the second line item onwards it is not populating the required tables due to some already filled tables inside the FM . &lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT also doent work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2008 11:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-a-loop/m-p/4864578#M1137430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-28T11:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Function module inside a loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-a-loop/m-p/4864579#M1137431</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;Since this is a standard pricing subroutine it seems it is not approprite to use this FM .&lt;/P&gt;&lt;P&gt;Refer this link for other FM:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="783472"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2008 11:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-inside-a-loop/m-p/4864579#M1137431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-28T11:51:04Z</dc:date>
    </item>
  </channel>
</rss>

