<?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: Clear Static Variable of a standard program in a custom program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-static-variable-of-a-standard-program-in-a-custom-program/m-p/11279683#M1916096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using field symbols to clear the static variable, I am not sure if it will really do, but you can give it a try once.&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;field-symbols&amp;nbsp; : &amp;lt;fs_clear&amp;gt; .&lt;/P&gt;&lt;P&gt;data: arbi type char20.&lt;/P&gt;&lt;P&gt;arbi = '(MAINPROGRAM)STATICVAR'. "main program in your case functiongroup&lt;/P&gt;&lt;P&gt;assign&amp;nbsp; (arbi) to &amp;lt;fs_clear&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2015 11:39:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-08-05T11:39:40Z</dc:date>
    <item>
      <title>Clear Static Variable of a standard program in a custom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-static-variable-of-a-standard-program-in-a-custom-program/m-p/11279682#M1916095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 2 standard function modules - UWS_BW_EX_WS_QUEST_TEXT and UWS_BW_EX_WS_ANSWER_TEXT in my custom program one after the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both these function modules access the Function Module - UWS_BW_GET_SURVEYS. Here the static variable 'SD_NO_MORE_DATA' is flagged once the Function Module UWS_BW_EX_WS_QUEST_TEXT is executed. So i fetch the data and then call the Function Module UWS_BW_EX_WS_ANSWER_TEXT. At this time the variable 'SD_NO_MORE_DATA' is already flagged and hence it exits and does not provide me the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way is to clear the flag of the static variable in my custom program. How do I do this? I tried FREE MEMORY (seems obsolete), it did not work. Can anybody guide me here please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 10:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-static-variable-of-a-standard-program-in-a-custom-program/m-p/11279682#M1916095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-05T10:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Static Variable of a standard program in a custom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-static-variable-of-a-standard-program-in-a-custom-program/m-p/11279683#M1916096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using field symbols to clear the static variable, I am not sure if it will really do, but you can give it a try once.&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;field-symbols&amp;nbsp; : &amp;lt;fs_clear&amp;gt; .&lt;/P&gt;&lt;P&gt;data: arbi type char20.&lt;/P&gt;&lt;P&gt;arbi = '(MAINPROGRAM)STATICVAR'. "main program in your case functiongroup&lt;/P&gt;&lt;P&gt;assign&amp;nbsp; (arbi) to &amp;lt;fs_clear&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 11:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-static-variable-of-a-standard-program-in-a-custom-program/m-p/11279683#M1916096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-05T11:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Static Variable of a standard program in a custom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-static-variable-of-a-standard-program-in-a-custom-program/m-p/11279684#M1916097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou for responding. This method does not seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to timeline constraints, I am trying to create a copy of the standard function module UWS_BW_GET_SURVEYS and make the changes that suit my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 02:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-static-variable-of-a-standard-program-in-a-custom-program/m-p/11279684#M1916097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-06T02:54:58Z</dc:date>
    </item>
  </channel>
</rss>

