<?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: Table control field change indicator in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858769#M47623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Serdar / Abhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just like to make a small correction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In screen flow logic, there's &amp;lt;b&amp;gt;no&amp;lt;/b&amp;gt; addition called &amp;lt;b&amp;gt;ON VALUE&amp;lt;/b&amp;gt;. What you are referring to here is the &amp;lt;u&amp;gt;&amp;lt;b&amp;gt;ON INPUT&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt; addition.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIELD &amp;lt;f&amp;gt; MODULE &amp;lt;m&amp;gt; ON INPUT.

or
CHAIN.
  FIELD: &amp;lt;f1&amp;gt;, &amp;lt;f 2&amp;gt;,... 
  MODULE &amp;lt;mod1&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.
  FIELD: &amp;lt;g1&amp;gt;, &amp;lt;g 2&amp;gt;,... 
  MODULE &amp;lt;mod2&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.
 ...
ENDCHAIN. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Dec 2004 11:51:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-12-29T11:51:31Z</dc:date>
    <item>
      <title>Table control field change indicator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858766#M47620</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;Let's say we have the following code in the PAI for a table control having filed f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD f1 MODULE mod1 ON REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to trigger this module mod1 even though it's value is not changed?  Is there any change indicator that we can set programatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually my requirement is to upload some records into the table control from a text file. After that the usual validations should take place on the table control. In this case the table control won't trigger the modules ON REQUEST. Is there any way to force this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2004 08:04:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858766#M47620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-29T08:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Table control field change indicator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858767#M47621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; FIELD &amp;lt;f&amp;gt; MODULE &amp;lt;m&amp;gt; ON REQUEST &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; is a conditional module call - it gets executed when the contents of the field &amp;lt;f&amp;gt; have been altered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, you could actually choose to omit this addition. For example: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE COMPARE INPUT.
* 1. determine the current line in the table control as per the program
* 2. compare the above line with the value I_ITAB.
* 3. If there's a difference in step 2, then the line was changed.
ENDMODULE.

PROCESS AFTER INPUT.
  LOOP AT I_ITAB.
    MODULE COMPARE.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please note that the internal table I_ITAB is the same in the program and in the screen. And that it has a header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now regarding the actual requirement, I have a few doubts. &lt;/P&gt;&lt;P&gt;1. Are you uploading the file on the same screen as the table control?  &lt;/P&gt;&lt;P&gt;2. Does the table control have any editable fields?&lt;/P&gt;&lt;P&gt;3. What is the puepose of the table control ? (are you using it only because you want some validations to be done automatically ?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2004 11:20:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858767#M47621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-29T11:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Table control field change indicator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858768#M47622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Anand mentioned in his post, &amp;lt;b&amp;gt;"ON REQUEST"&amp;lt;/b&amp;gt; addition is optional. &amp;lt;b&amp;gt;"FIELD"&amp;lt;/b&amp;gt; statement is used for making the screen field content transfered to the program variable. You can use &amp;lt;b&amp;gt;"ON REQUEST"&amp;lt;/b&amp;gt; addition to trigger the transfer if the field value is changed. The addition &amp;lt;b&amp;gt;"ON VALUE"&amp;lt;/b&amp;gt; is used to transfer the field value in case the field contains some value (i.e. not space).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For multiple field transfer, to bind multiple fields to a module, you can use &amp;lt;b&amp;gt;"CHAIN"&amp;lt;/b&amp;gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;e.g.&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CHAIN .
FIELD gs_wa-field_1 .
FIELD gs_wa-field_2 .
...
FIELD gs_wa-field_n .

MODULE module_1 
       [ON CHAIN-REQUEST / ON CHAIN-VALUE] .
...
MODULE module_n 
       [ON CHAIN-REQUEST / ON CHAIN-VALUE] .

ENDCHAIN . 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, these are dialog(screen) programming basics. So you can refer to the standard SAP course &amp;lt;b&amp;gt;BC410 (this is the old code, maybe changed) - Dialog Programming&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2004 11:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858768#M47622</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2004-12-29T11:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Table control field change indicator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858769#M47623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Serdar / Abhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just like to make a small correction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In screen flow logic, there's &amp;lt;b&amp;gt;no&amp;lt;/b&amp;gt; addition called &amp;lt;b&amp;gt;ON VALUE&amp;lt;/b&amp;gt;. What you are referring to here is the &amp;lt;u&amp;gt;&amp;lt;b&amp;gt;ON INPUT&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt; addition.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIELD &amp;lt;f&amp;gt; MODULE &amp;lt;m&amp;gt; ON INPUT.

or
CHAIN.
  FIELD: &amp;lt;f1&amp;gt;, &amp;lt;f 2&amp;gt;,... 
  MODULE &amp;lt;mod1&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.
  FIELD: &amp;lt;g1&amp;gt;, &amp;lt;g 2&amp;gt;,... 
  MODULE &amp;lt;mod2&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.
 ...
ENDCHAIN. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2004 11:51:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858769#M47623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-29T11:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Table control field change indicator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858770#M47624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much for the info guys. What I exactly need is,I want the module to be fired only when changes are made to the field (ON REQUEST). &lt;/P&gt;&lt;P&gt;But I also want to know is there a way we can fire this module even though the value was not changed? (Like in my case new rows are uploaded from text file into the table control internal table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the text file i upload the contents directly to the (editable)table control internal table. So after the internal table is filled, in the next PBO the uploaded contents are shown in the table control. SO, Now I need to fire all the ON REQUEST modules for the newly uploaded rows so that validations occur. &lt;/P&gt;&lt;P&gt;Hope u understood my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Dec 2004 03:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858770#M47624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-31T03:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Table control field change indicator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858771#M47625</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;If your program is structured in a way that in every module, you are calling a form to perform a certain task, then you can call the same forms right after you upload data from file. Its like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
//Your flow logic
CHAIN.
  FIELD: &amp;lt;f1&amp;gt;, &amp;lt;f 2&amp;gt;,... 
  MODULE &amp;lt;mod1&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.
  FIELD: &amp;lt;g1&amp;gt;, &amp;lt;g 2&amp;gt;,... 
  MODULE &amp;lt;mod2&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.
 ...
ENDCHAIN

//Your program logic
MODULE &amp;lt;mod1&amp;gt; INPUT
 PERFORM &amp;lt;form1&amp;gt;.
ENDMODULE

MODULE &amp;lt;mod2&amp;gt; INPUT
 PERFORM &amp;lt;form2&amp;gt;.
ENDMODULE
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can call &amp;lt;form1&amp;gt;, &amp;lt;form2&amp;gt;,... directly for the validations. Another way, I am not sure if it will work, need to try it out, is to check the value of system variable sy-datar. If I can recall it correctly, its value is set to 'X' as soon as a screen field is changed. As I said, I am not sure if it would work in this case as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Dec 2004 12:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858771#M47625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-31T12:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Table control field change indicator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858772#M47626</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if the issue was resolved, Could you please share your solution.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 18:01:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-change-indicator/m-p/858772#M47626</guid>
      <dc:creator>raghu1991</dc:creator>
      <dc:date>2023-07-07T18:01:58Z</dc:date>
    </item>
  </channel>
</rss>

