<?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: Validating input field in module pool screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925181#M1149124</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;Chain &lt;/P&gt;&lt;P&gt;Field field-name module Modulename,&lt;/P&gt;&lt;P&gt;Field field-name1 module Modulename,&lt;/P&gt;&lt;P&gt;Endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on Modulename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  then Module &lt;/P&gt;&lt;P&gt;            Write ur code here..[Validation ]&lt;/P&gt;&lt;P&gt;         Endmodule&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Dec 2008 09:10:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-17T09:10:11Z</dc:date>
    <item>
      <title>Validating input field in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925179#M1149122</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 have a requirement regarding screen input validation.&lt;/P&gt;&lt;P&gt;         I have 4 I/O fields. &lt;/P&gt;&lt;P&gt;         1)startdate&lt;/P&gt;&lt;P&gt;          2)end date&lt;/P&gt;&lt;P&gt;         3)available from&lt;/P&gt;&lt;P&gt;         4)available to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Now i have filled the data into available from and available to .&lt;/P&gt;&lt;P&gt;when i enter the start date and end date inputs i need to validate these from available from and available to.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;i think it can be done by chain , end chain in PAI. but i dont know exactly what should i do with chain and end chain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody guide me for this requirement if possible with sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;g.s.naidu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 08:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925179#M1149122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T08:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Validating input field in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925180#M1149123</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;Include the fields in a FIELD statement, and enclose it in a CHAIN-ENDCHAIN block statment. Eg. Screen flow logic:  CHAIN. FIELD: SPFLI-CARRID, SPFLI-CONNID. MODULE CHECK_FLIGHT. ENDCHAIN. When an error is found inside a chain, the screen is re-displayed, and all fields found anywhere in the chain are input-enabled. All non-chain fields remain disabled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 08:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925180#M1149123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T08:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Validating input field in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925181#M1149124</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;Chain &lt;/P&gt;&lt;P&gt;Field field-name module Modulename,&lt;/P&gt;&lt;P&gt;Field field-name1 module Modulename,&lt;/P&gt;&lt;P&gt;Endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on Modulename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  then Module &lt;/P&gt;&lt;P&gt;            Write ur code here..[Validation ]&lt;/P&gt;&lt;P&gt;         Endmodule&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 09:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925181#M1149124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T09:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Validating input field in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925182#M1149125</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;  chain.&lt;/P&gt;&lt;P&gt;    field: available from,&lt;/P&gt;&lt;P&gt;           available to    module Validate_data   on input.&lt;/P&gt;&lt;P&gt;  endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write all the code for Validation in module validate_data.&lt;/P&gt;&lt;P&gt;hope this helps.&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;Swati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 09:10:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925182#M1149125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T09:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Validating input field in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925183#M1149126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heres one example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chain.&lt;/P&gt;&lt;P&gt;field:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       izf39_details-placefrom module check_placefrom,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         izf39_details-consigname module check_consigname,&lt;/P&gt;&lt;P&gt;         izf39_details-addr0,&lt;/P&gt;&lt;P&gt;         izf39_details-addr1,&lt;/P&gt;&lt;P&gt;         izf39_details-addr2,&lt;/P&gt;&lt;P&gt;         izf39_details-addr3,&lt;/P&gt;&lt;P&gt;         izf39_details-city module check_city,&lt;/P&gt;&lt;P&gt;         izf39_details-lstno module check_lstno ,&lt;/P&gt;&lt;P&gt;         izf39_details-cstno module check_cstno,&lt;/P&gt;&lt;P&gt;***start of chg001 removing field izf39_details-transkey&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        izf39_details-transkey module get_trans_name on request,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***end of chg001.&lt;/P&gt;&lt;P&gt;         izf39_details-transporter module fill_trans_name,&lt;/P&gt;&lt;P&gt;         izf39_details-vehregno,&lt;/P&gt;&lt;P&gt;         izf39_details-bolnr module check_bolnr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         izf39_details-refdoctxt1 module check_refdoctxt1,&lt;/P&gt;&lt;P&gt;         izf39_details-refdoctxt2,&lt;/P&gt;&lt;P&gt;         izf39_details-itemtype module check_itemtype,&lt;/P&gt;&lt;P&gt;         izf39_details-menge module check_menge,&lt;/P&gt;&lt;P&gt;         izf39_details-value module check_value,&lt;/P&gt;&lt;P&gt;         izf39_details-pakgdesc module check_pakgdesc,&lt;/P&gt;&lt;P&gt;         izf39_details-reason module check_reason,&lt;/P&gt;&lt;P&gt;         izf39_details-destin    module check_destin,&lt;/P&gt;&lt;P&gt;         izf39_details-initiator module check_initiator.&lt;/P&gt;&lt;P&gt;endchain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 09:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925183#M1149126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T09:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Validating input field in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925184#M1149127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi G.S.Naidu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this you can use,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT.
CHAIN.
FIELD : &amp;lt;field1&amp;gt;,
        &amp;lt;field2&amp;gt;,
        &amp;lt;field3&amp;gt;,
        &amp;lt;field4&amp;gt;
      MODULE &amp;lt;module_name&amp;gt;.
ENDCHAIN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the code of this &amp;lt;module_name&amp;gt;, you can compare the dates as per your requirements and then raise appropiate error messages.&lt;/P&gt;&lt;P&gt;In case of an error messages, the input fields will not be greyed out, instead you can change the input values and then again this module will be executed until success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 09:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925184#M1149127</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2008-12-17T09:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Validating input field in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925185#M1149128</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;Consider the case where you want user to enter only u2018LHu2019 and u2018SQu2019 for sflight-carrid. In this case, you are restricting value of a screen field. This cannot be achieved by automatic field check. Hence there is a need of additional validation. It can be done in flow logic by using following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI.&lt;/P&gt;&lt;P&gt;Field sflight-carrid values (u2018LHu2019).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For multiple values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI.&lt;/P&gt;&lt;P&gt;Field sflight-carrid values (u2018LHu2019 u2018SQu2019).&lt;/P&gt;&lt;P&gt;Field sflight-price values (between 1000 and 2000).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case when the user enters the value, PAI is triggered  and field is checked for  that particular value. If the value entered happens to be wrong, that field is enabled for user to enter. If you have multiple Field statements in your flow logic, it is sequential execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the following case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI.&lt;/P&gt;&lt;P&gt;Module  assign.&lt;/P&gt;&lt;P&gt;Field sflight-carrid values (u2018LHu2019 u2018SQu2019).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP/4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module  assign.&lt;/P&gt;&lt;P&gt;Data: carrid1 like sflight-carrid.&lt;/P&gt;&lt;P&gt;Carrid1 = sflight-carrid.&lt;/P&gt;&lt;P&gt;Endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, Sflight-carrid is used in the flow logic before the field statement. The system will give invalid value or some previous value as the field sflight-carrid is used in module before it is checked i.e., field statement is after the module in which sflight-carrid is being used. The field is not available to the system unless it executes the field statement. Field statement transfers the values to the program and is done only once. If you donu2019t have Field statement in your flow logic, transfer of values takes place in PAI event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider one more case where you have multiple field statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI.&lt;/P&gt;&lt;P&gt;Field Sflight-carrid values (u2018LHu2019).&lt;/P&gt;&lt;P&gt;Field Sflight-connid values (u20180400u2019 u20180500u2019).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case if the user enters only carrid wrong, then this particular field is enabled and rest of the fields are disabled for user to input. Many times if the user enters wrong value for one field, then you might want to give option to user to enter all the fields, which is not possible by using Field statement only. This functionality can be achieved by CHAIN u2013 ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chain.&lt;/P&gt;&lt;P&gt;Field sflight-carrid value (u2018LHu2019).&lt;/P&gt;&lt;P&gt;	Field sflight-connid values (between u2018200u2019 and u2018500u2019).&lt;/P&gt;&lt;P&gt;Endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field sflight-price values (u2018100u2019 u20181000u2019).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, if the user enters wrong value only for carrid, both the fields i.e. carrid and connid are enabled as they are grouped together in the Chain statement. The field price will be disabled for input. Usually, logically related fields are grouped together with Chain-Endchain statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 09:41:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925185#M1149128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T09:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Validating input field in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925186#M1149129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             I'm trying to do as you said. In chain and end chain i've put screen field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         In module and end module how should i check the dates can you tell me. exactly how to declare the data types and how to pass the input date to the validating variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Previously i have got the available from and available to dates and i have disable that dates because those should not get changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you guide me how can i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;g.s.naidu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 10:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925186#M1149129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T10:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Validating input field in module pool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925187#M1149130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  sabyasachi kar ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                     Thank you verymuch. Now i got the validation message. Your explanation worked out for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;g.s.naidu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 13:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-input-field-in-module-pool-screen/m-p/4925187#M1149130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T13:49:29Z</dc:date>
    </item>
  </channel>
</rss>

