<?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: validate data while entering on the screen in module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-while-entering-on-the-screen-in-module-pool/m-p/2791306#M651216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do validation in the PAI for the fields&lt;/P&gt;&lt;P&gt;For multiple fields validation you can use CHAIN..ENDCHAIN &lt;/P&gt;&lt;P&gt;see the sample code in PAI&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Forced Exit from the transaction&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MODULE exit AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Checking for the input fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Ship to Party&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FIELD: t_103_tc-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE check_ship3 ON CHAIN-INPUT.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Module check_ship3 INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Ship to Party on Screen 103&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE check_ship3 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT t_103_tc-kunnr IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check Ship to Party in table KNA1 and KNVP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM check_ship_to_auth USING t_103_tc-kunnr&lt;/P&gt;&lt;P&gt;x_100-vkorg&lt;/P&gt;&lt;P&gt;x_100-vtweg&lt;/P&gt;&lt;P&gt;x_100-spart&lt;/P&gt;&lt;P&gt;c_ship.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " check_ship3 INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form check_ship_to&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Ship to Party/Issuing/Notification Authorities&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;in KNA1 and KNVP tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM check_ship_to_auth USING p_kunnr TYPE kunnr&lt;/P&gt;&lt;P&gt;p_so TYPE vkorg&lt;/P&gt;&lt;P&gt;p_dc TYPE vtweg&lt;/P&gt;&lt;P&gt;p_div TYPE spart&lt;/P&gt;&lt;P&gt;p_ship TYPE parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;input = p_kunnr&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;output = p_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR v_kunnr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check Ship to/Sold to/Lic Auth person Party in table KNA1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT SINGLE kunnr&lt;/P&gt;&lt;P&gt;INTO v_kunnr&lt;/P&gt;&lt;P&gt;FROM kna1&lt;/P&gt;&lt;P&gt;WHERE kunnr = p_kunnr.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;IF p_ship = c_ship.&lt;/P&gt;&lt;P&gt;MESSAGE e051 WITH 'Invalid Ship to Entered'(008).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can see the below examples...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to se38 and give demo&lt;STRONG&gt;dynpro&lt;/STRONG&gt; and press F4.&lt;/P&gt;&lt;P&gt;YOu will get a list of demo module pool programs.&lt;/P&gt;&lt;P&gt;One more T-Code is ABAPDOCU.&lt;/P&gt;&lt;P&gt;YOu can find more examples there.&lt;/P&gt;&lt;P&gt;See the prgrams:&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement &lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/ZSAPcHAT" target="test_blank"&gt;http://www.geocities.com/ZSAPcHAT&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/files/using_table_in_screen.pdf" target="test_blank"&gt;http://www.allsaplinks.com/files/using_table_in_screen.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure that one or more PAI modules are only called when several screen fields meet a particular condition, you must combine the calls in the flow logic to form a processing chain. You define processing chains as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN....ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All flow logic statements between CHAIN and ENDCHAIN belong to a processing chain. The fields in the various FIELD statements are combined, and can be used in shared conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;FIELD: &amp;lt;f1&amp;gt;, &amp;lt;f 2&amp;gt;,... &lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod1&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;FIELD: &amp;lt;g1&amp;gt;, &amp;lt;g 2&amp;gt;,... &lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod2&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;...&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;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3335517"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this command is used, all of the fields on the screen that belong to the processing chain (all of the fields listed in the field statements) are made ready for input again. Other fields are not ready for input. Whenever the MODULE statement appears within a processing chain, even if there is only one FIELD attached to it, all of the fields in the chain (not only the affected field) are made ready for input again, allowing the user to enter new values. If the fields in the processing chain are only checked once, the PAI processing continues directly after the FIELD statement, and the preceding modules are not called again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;FIELD: &amp;lt;f1&amp;gt;, &amp;lt;f 2&amp;gt;,... &lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod1&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;FIELD: &amp;lt;g1&amp;gt;, &amp;lt;g 2&amp;gt;,... &lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod2&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this out&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/d1/801ca2454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/d1/801ca2454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2932168"&gt;&lt;/A&gt;&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;vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2007 09:40:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-18T09:40:19Z</dc:date>
    <item>
      <title>validate data while entering on the screen in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-while-entering-on-the-screen-in-module-pool/m-p/2791303#M651213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to validate the entries done on screen.How to do so plz guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Vibhuti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 09:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-while-entering-on-the-screen-in-module-pool/m-p/2791303#M651213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T09:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: validate data while entering on the screen in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-while-entering-on-the-screen-in-module-pool/m-p/2791304#M651214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can do field validations using chain--endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: CHAIN.&lt;/P&gt;&lt;P&gt;FIELD KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;MODULE USER_VAL.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 09:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-while-entering-on-the-screen-in-module-pool/m-p/2791304#M651214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T09:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: validate data while entering on the screen in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-while-entering-on-the-screen-in-module-pool/m-p/2791305#M651215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;FIELD V_MATNR.&lt;/P&gt;&lt;P&gt;FIELD QTY.&lt;/P&gt;&lt;P&gt;Module validate_data.&lt;/P&gt;&lt;P&gt;&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;Module validate_data.&lt;/P&gt;&lt;P&gt;if qty &amp;gt; 10.&lt;/P&gt;&lt;P&gt;message 'Enter qty less than 10 !' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 09:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-while-entering-on-the-screen-in-module-pool/m-p/2791305#M651215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T09:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: validate data while entering on the screen in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-while-entering-on-the-screen-in-module-pool/m-p/2791306#M651216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do validation in the PAI for the fields&lt;/P&gt;&lt;P&gt;For multiple fields validation you can use CHAIN..ENDCHAIN &lt;/P&gt;&lt;P&gt;see the sample code in PAI&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Forced Exit from the transaction&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MODULE exit AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Checking for the input fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Ship to Party&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FIELD: t_103_tc-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE check_ship3 ON CHAIN-INPUT.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Module check_ship3 INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Ship to Party on Screen 103&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE check_ship3 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT t_103_tc-kunnr IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check Ship to Party in table KNA1 and KNVP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM check_ship_to_auth USING t_103_tc-kunnr&lt;/P&gt;&lt;P&gt;x_100-vkorg&lt;/P&gt;&lt;P&gt;x_100-vtweg&lt;/P&gt;&lt;P&gt;x_100-spart&lt;/P&gt;&lt;P&gt;c_ship.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " check_ship3 INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form check_ship_to&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Ship to Party/Issuing/Notification Authorities&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;in KNA1 and KNVP tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM check_ship_to_auth USING p_kunnr TYPE kunnr&lt;/P&gt;&lt;P&gt;p_so TYPE vkorg&lt;/P&gt;&lt;P&gt;p_dc TYPE vtweg&lt;/P&gt;&lt;P&gt;p_div TYPE spart&lt;/P&gt;&lt;P&gt;p_ship TYPE parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;input = p_kunnr&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;output = p_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR v_kunnr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check Ship to/Sold to/Lic Auth person Party in table KNA1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT SINGLE kunnr&lt;/P&gt;&lt;P&gt;INTO v_kunnr&lt;/P&gt;&lt;P&gt;FROM kna1&lt;/P&gt;&lt;P&gt;WHERE kunnr = p_kunnr.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;IF p_ship = c_ship.&lt;/P&gt;&lt;P&gt;MESSAGE e051 WITH 'Invalid Ship to Entered'(008).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can see the below examples...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to se38 and give demo&lt;STRONG&gt;dynpro&lt;/STRONG&gt; and press F4.&lt;/P&gt;&lt;P&gt;YOu will get a list of demo module pool programs.&lt;/P&gt;&lt;P&gt;One more T-Code is ABAPDOCU.&lt;/P&gt;&lt;P&gt;YOu can find more examples there.&lt;/P&gt;&lt;P&gt;See the prgrams:&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement &lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/ZSAPcHAT" target="test_blank"&gt;http://www.geocities.com/ZSAPcHAT&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/files/using_table_in_screen.pdf" target="test_blank"&gt;http://www.allsaplinks.com/files/using_table_in_screen.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure that one or more PAI modules are only called when several screen fields meet a particular condition, you must combine the calls in the flow logic to form a processing chain. You define processing chains as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN....ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All flow logic statements between CHAIN and ENDCHAIN belong to a processing chain. The fields in the various FIELD statements are combined, and can be used in shared conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;FIELD: &amp;lt;f1&amp;gt;, &amp;lt;f 2&amp;gt;,... &lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod1&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;FIELD: &amp;lt;g1&amp;gt;, &amp;lt;g 2&amp;gt;,... &lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod2&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;...&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;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3335517"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this command is used, all of the fields on the screen that belong to the processing chain (all of the fields listed in the field statements) are made ready for input again. Other fields are not ready for input. Whenever the MODULE statement appears within a processing chain, even if there is only one FIELD attached to it, all of the fields in the chain (not only the affected field) are made ready for input again, allowing the user to enter new values. If the fields in the processing chain are only checked once, the PAI processing continues directly after the FIELD statement, and the preceding modules are not called again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;FIELD: &amp;lt;f1&amp;gt;, &amp;lt;f 2&amp;gt;,... &lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod1&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;FIELD: &amp;lt;g1&amp;gt;, &amp;lt;g 2&amp;gt;,... &lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod2&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this out&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/d1/801ca2454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/d1/801ca2454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2932168"&gt;&lt;/A&gt;&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;vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 09:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-while-entering-on-the-screen-in-module-pool/m-p/2791306#M651216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T09:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: validate data while entering on the screen in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-while-entering-on-the-screen-in-module-pool/m-p/2791307#M651217</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. consider ur screen has 3 input's ,  if the user enters and he presses any button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. now u can validate that one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in &amp;lt;b&amp;gt;PAI module, u have to code this first.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex :  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;      MODULE USER_COMMAND_1000.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in module user_command...&lt;/P&gt;&lt;P&gt;  write code.. &lt;/P&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt;        if field1 GT '10'..&lt;/P&gt;&lt;P&gt;    ......... like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply back...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Rgds,&lt;/P&gt;&lt;P&gt;S.Barani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 09:42:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-while-entering-on-the-screen-in-module-pool/m-p/2791307#M651217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T09:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: validate data while entering on the screen in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-while-entering-on-the-screen-in-module-pool/m-p/2791308#M651218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vibhuti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is dialog program put all the filelds in the chain endchain like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fileds : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module validatefields&lt;/P&gt;&lt;P&gt;endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module validatefilelds&lt;/P&gt;&lt;P&gt;select .....................&lt;/P&gt;&lt;P&gt;command&lt;/P&gt;&lt;P&gt;endmodule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is selection-screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection secreen&lt;/P&gt;&lt;P&gt;perform validation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form validation&lt;/P&gt;&lt;P&gt;select commands......................&lt;/P&gt;&lt;P&gt;endform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it may the answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 09:42:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-data-while-entering-on-the-screen-in-module-pool/m-p/2791308#M651218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T09:42:37Z</dc:date>
    </item>
  </channel>
</rss>

