<?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 Problem in using ON CHANGE OF in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-on-change-of/m-p/3265682#M780415</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 ON CHANGE OF statement in a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute program from SE38, the ON CHNAGE OF command is getting executed correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute the same program again in the same session (&lt;STRONG&gt;without opening it using /nse38&lt;/STRONG&gt;), the ON CHANGE OF command is not working correctly. The program control is not going inside ON CHANGE OF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the contents of internal table field during ON CHANGE OF go into some session buffer, which is not getting refreshed when I execute the same program again in same session. But I am not sure is this the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me how I can solve this problem. I want that ON CHANGE OF executes correctly even if I execute same program multiple times without refreshing session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2008 10:14:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-14T10:14:17Z</dc:date>
    <item>
      <title>Problem in using ON CHANGE OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-on-change-of/m-p/3265682#M780415</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 ON CHANGE OF statement in a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute program from SE38, the ON CHNAGE OF command is getting executed correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute the same program again in the same session (&lt;STRONG&gt;without opening it using /nse38&lt;/STRONG&gt;), the ON CHANGE OF command is not working correctly. The program control is not going inside ON CHANGE OF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the contents of internal table field during ON CHANGE OF go into some session buffer, which is not getting refreshed when I execute the same program again in same session. But I am not sure is this the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me how I can solve this problem. I want that ON CHANGE OF executes correctly even if I execute same program multiple times without refreshing session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-on-change-of/m-p/3265682#M780415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using ON CHANGE OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-on-change-of/m-p/3265683#M780416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;surprisingly enough, but you have to debug your program... Looks like a variable is not CLEARed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:16:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-on-change-of/m-p/3265683#M780416</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-01-14T10:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using ON CHANGE OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-on-change-of/m-p/3265684#M780417</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;Read this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ON CHANGE OF is unsuitable for recognizing control levels in loops of this type because it always creates a global auxiliary field which is used to check for changes. This global auxiliary field is only changed in the relevant ON CHANGE OF statement. It is not reset when the processing enters loops or subroutines, so unwanted effects can occur if the loop or subroutine is executed again. Also, since it is set to its initial value when created (like any other field), any ON CHANGE OF processing will be executed after the first test, unless the contents of the field concerned happen to be identical to the initial value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-on-change-of/m-p/3265684#M780417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using ON CHANGE OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-on-change-of/m-p/3265685#M780418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pankaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But is there some way to refresh global auxiliary field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-on-change-of/m-p/3265685#M780418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using ON CHANGE OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-on-change-of/m-p/3265686#M780419</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 using statements like the following before start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh itab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear itab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-on-change-of/m-p/3265686#M780419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using ON CHANGE OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-on-change-of/m-p/3265687#M780420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not aware on how to refreshing global auxiliary field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if there is a way, still it can cause some problem because multiple instances of same program would be using this field and if you refresh that in one instance it would affect all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using ON CHANGE OF f; You can try with statement AT NEW f.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:38:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-on-change-of/m-p/3265687#M780420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T10:38:03Z</dc:date>
    </item>
  </channel>
</rss>

