<?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: FIELD ... MODULE ... ON INPUT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742565#M322499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Field &amp;lt;field name&amp;gt; module &amp;lt;module name&amp;gt; is triggered when ever the field has non initial value. To trigger only when its value is changed, you have to write field &amp;lt;fieldname&amp;gt; module &amp;lt;module name&amp;gt; on request.&lt;/P&gt;&lt;P&gt;You write in the pai of flow logic&lt;/P&gt;&lt;P&gt; field &amp;lt;fieldname&amp;gt; module &amp;lt;module name&amp;gt; on request.&lt;/P&gt;&lt;P&gt;In se38 in the module block&lt;/P&gt;&lt;P&gt;if not &amp;lt;fieldname&amp;gt; is initial.&lt;/P&gt;&lt;P&gt;error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;Then this is triggered only when it is changed and is non initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;warm regards,&lt;/P&gt;&lt;P&gt;kamala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2007 15:13:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-27T15:13:43Z</dc:date>
    <item>
      <title>FIELD ... MODULE ... ON INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742559#M322493</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;&lt;/P&gt;&lt;P&gt;Can you answer me one question?&lt;/P&gt;&lt;P&gt;My code in the PAI:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD field MODULE on_change ON INPUT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Module on_change:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE on_change INPUT.
  MESSAGE 'The field FIELD is not empty' TYPE 'I'.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The code in this module is performed each time in the PAI. But it has to be performed only if the FIELD is not empty! What is my problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaration of the FIELD:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA field TYPE string&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavel Aleshko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 13:05:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742559#M322493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T13:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: FIELD ... MODULE ... ON INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742560#M322494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Module on_change:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE on_change INPUT.&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;if field NE space.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  MESSAGE 'The field FIELD is not empty' TYPE 'I'.&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 13:09:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742560#M322494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T13:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: FIELD ... MODULE ... ON INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742561#M322495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't understand this quote from the help then.&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;"Addition 1 ... ON INPUT&lt;/P&gt;&lt;P&gt;Effect: With this condition, module mod is called only if the screen field dynp_field is not empty."&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this module hasn't to be performed cause field is empty! What is wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavel Aleshko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 13:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742561#M322495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-26T13:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: FIELD ... MODULE ... ON INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742562#M322496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes on input only fires if you give any input to the field. i.e. not empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on request you can use it will fire when you are changing any entry .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you dont want that just ommit that on input or on request from your &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD field MODULE on_change ON INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;FIELD field MODULE on_change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will fire for the field every time in pai for that field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 04:32:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742562#M322496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T04:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: FIELD ... MODULE ... ON INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742563#M322497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; yes on input only fires if you give any input to the&lt;/P&gt;&lt;P&gt;&amp;gt; field. i.e. not empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi shiba dutta.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is the problem. If you write this code it will always perform the module &amp;lt;b&amp;gt;on_change&amp;lt;/b&amp;gt; even if &amp;lt;b&amp;gt;field&amp;lt;/b&amp;gt; is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code in the program:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA field TYPE string
MODULE on_change INPUT.
  MESSAGE 'The field FIELD is not empty' TYPE 'I'.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code in the screen flow logic:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD field MODULE on_change ON INPUT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea why this module is always performed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be awarded!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavel Aleshko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 11:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742563#M322497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T11:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: FIELD ... MODULE ... ON INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742564#M322498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I know how you create -&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA field TYPE string&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in screen painter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you use Input/Output Fields(Textbox)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 04:07:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742564#M322498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T04:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: FIELD ... MODULE ... ON INPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742565#M322499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Field &amp;lt;field name&amp;gt; module &amp;lt;module name&amp;gt; is triggered when ever the field has non initial value. To trigger only when its value is changed, you have to write field &amp;lt;fieldname&amp;gt; module &amp;lt;module name&amp;gt; on request.&lt;/P&gt;&lt;P&gt;You write in the pai of flow logic&lt;/P&gt;&lt;P&gt; field &amp;lt;fieldname&amp;gt; module &amp;lt;module name&amp;gt; on request.&lt;/P&gt;&lt;P&gt;In se38 in the module block&lt;/P&gt;&lt;P&gt;if not &amp;lt;fieldname&amp;gt; is initial.&lt;/P&gt;&lt;P&gt;error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;Then this is triggered only when it is changed and is non initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;warm regards,&lt;/P&gt;&lt;P&gt;kamala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 15:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-module-on-input/m-p/1742565#M322499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T15:13:43Z</dc:date>
    </item>
  </channel>
</rss>

