<?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: replacement statement for ONCHANGE OF in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175255#M1198186</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;R u looping on any table parameter in user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example or assume&lt;/STRONG&gt; if you are getting PO items in say it_items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_items into wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tabix eq 1 or wa-ebeln ne gv_ebeln.&lt;/P&gt;&lt;P&gt;******************************&lt;/P&gt;&lt;P&gt;for same ebeln 's this logic will not be executed.&lt;/P&gt;&lt;P&gt;executed only when ebeln changes.&lt;/P&gt;&lt;P&gt;******************************&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;gv_ebeln = wa-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this does not meet ur requirement, clearly explain the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dwaraka.S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dwarakanath Sankarayogi on Feb 10, 2009 2:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2009 13:34:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-10T13:34:31Z</dc:date>
    <item>
      <title>replacement statement for ONCHANGE OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175252#M1198183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing the coding in user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use the statement ON CHANGE OF .But this statement is obsolete statement.IT is not supporting in my code.It is not showing any systax error but it is not working properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What els ei can use for the statement ON CHANGE OF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 13:20:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175252#M1198183</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-02-10T13:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: replacement statement for ONCHANGE OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175253#M1198184</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;Use IF statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dwaraka.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 13:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175253#M1198184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T13:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: replacement statement for ONCHANGE OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175254#M1198185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NO,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can'use if statement.I have to use if the wa value changes only i need to add the two values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 13:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175254#M1198185</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-02-10T13:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: replacement statement for ONCHANGE OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175255#M1198186</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;R u looping on any table parameter in user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example or assume&lt;/STRONG&gt; if you are getting PO items in say it_items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_items into wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tabix eq 1 or wa-ebeln ne gv_ebeln.&lt;/P&gt;&lt;P&gt;******************************&lt;/P&gt;&lt;P&gt;for same ebeln 's this logic will not be executed.&lt;/P&gt;&lt;P&gt;executed only when ebeln changes.&lt;/P&gt;&lt;P&gt;******************************&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;gv_ebeln = wa-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this does not meet ur requirement, clearly explain the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dwaraka.S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dwarakanath Sankarayogi on Feb 10, 2009 2:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 13:34:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175255#M1198186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T13:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: replacement statement for ONCHANGE OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175256#M1198187</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 not looping the any import parameters of exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Exit i have 2 internal table with the fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have &lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;Loop at itab into wa_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading the table itab1 into wa_itab1 .&lt;/P&gt;&lt;P&gt;g_filed1 = wa_itab1-field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On CHNAGE OF wa_itab1-field1.&lt;/P&gt;&lt;P&gt;g_field1 = g_field1 + 1.&lt;/P&gt;&lt;P&gt;endon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is i have.&lt;/P&gt;&lt;P&gt;But here on change of is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 13:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175256#M1198187</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-02-10T13:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: replacement statement for ONCHANGE OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175257#M1198188</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;Here ON CHANGE works for the loop at ITAB (to check for any field value change in ITAB) but not for ITAB1&lt;/P&gt;&lt;P&gt;go through the F1 help for ON CHANGE OF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your logic u can use ON CHANGE OF if u are using LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify the statements and try the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data gv_temp type sytabix value 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab into wa_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading the table itab1 into wa_itab1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if gv_temp = 1 or g_field1 ne  wa_itab1-field1.&lt;/P&gt;&lt;P&gt;g_field1 = g_field1 + 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_filed1 = wa_itab1-field1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dwaraka.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 13:51:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175257#M1198188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T13:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: replacement statement for ONCHANGE OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175258#M1198189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarangini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Try it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:
  w_index type i value 1,
  w_lines  type i.
 
describe table itab lines w_lines.

while w_index le w_lines.

  read table itab into wa_itab index w_index.

*Loop at itab into wa_itab.
*  Reading the table itab1 into wa_itab1 .

  loop at itab1 into wa_itab1.

    g_filed1 = wa_itab1-field1.
    
    at new field1.
      g_field1 = g_field1 + 1.
    endat.
  endloop.
  w_index = w_index + 1.
endwhile.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 14:07:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-statement-for-onchange-of/m-p/5175258#M1198189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T14:07:47Z</dc:date>
    </item>
  </channel>
</rss>

