<?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: Problem in module-pool. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool/m-p/4398478#M1045641</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;You need to include ur field in between chain and end chain.&lt;/P&gt;&lt;P&gt;And use Field statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When ever an error or warning message occurs on a scree n field validation,&lt;/P&gt;&lt;P&gt;Fields automatically gets disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to make them in put enabled use Field Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax: Field field_name Module Module_name [on input or On Request]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Aug 2008 07:32:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-16T07:32:28Z</dc:date>
    <item>
      <title>Problem in module-pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool/m-p/4398476#M1045639</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 have developed a Module-pool Prg&lt;/P&gt;&lt;P&gt;in Which  i gave a error message if &lt;/P&gt;&lt;P&gt;User enters a particular Contry &amp;amp; enter the ban&lt;/P&gt;&lt;P&gt;color code  for that particular country....&lt;/P&gt;&lt;P&gt;But the problem is whenever the error message is&lt;/P&gt;&lt;P&gt;Trigger the Ban color code field is disabled..&lt;/P&gt;&lt;P&gt;I am not been able to enter new color code instead&lt;/P&gt;&lt;P&gt;of ban color or i have to refresh again...and reenter all&lt;/P&gt;&lt;P&gt;entries...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2008 07:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool/m-p/4398476#M1045639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-16T07:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in module-pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool/m-p/4398477#M1045640</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;In module pools ,do the validations in CHAIN END CHAIN only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below  eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if there are 10 fields in the screen and for 5 fields whenever the user enters wrong values u like to give some error message. You can declare that fields in the chain enchain so that only those fields will be input enabled and all other fields will disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CHAIN.
FIELD chk_connobj.
FIELD chk_inst.
FIELD chk_devloc.
FIELD ehaud-haus.
FIELD eanl-anlage.
MODULE modify_screenfields.
ENDCHAIN.
 
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Module modify_screenfields INPUT
*&amp;amp;---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
 
MODULE modify_screenfields INPUT.
CLEAR okcode.
okcode = sy-ucomm.
CASE okcode.
WHEN 'ENTER' OR 'EXECUTE'.
 
IF chk_connobj IS INITIAL AND chk_inst EQ c_x AND
chk_devloc EQ c_x.
IF ehaud-haus IS INITIAL.
SET CURSOR FIELD 'EHAUD-HAUS'.
MESSAGE e000(zo_spa) WITH text-017. " Enter Connection obj
ELSE.
PERFORM conn_obj_check.
ENDIF.
ENDIF.
 
ENDMODULE. " modify_screenfields INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anversha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2008 07:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool/m-p/4398477#M1045640</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2008-08-16T07:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in module-pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool/m-p/4398478#M1045641</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;You need to include ur field in between chain and end chain.&lt;/P&gt;&lt;P&gt;And use Field statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When ever an error or warning message occurs on a scree n field validation,&lt;/P&gt;&lt;P&gt;Fields automatically gets disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to make them in put enabled use Field Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax: Field field_name Module Module_name [on input or On Request]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2008 07:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool/m-p/4398478#M1045641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-16T07:32:28Z</dc:date>
    </item>
  </channel>
</rss>

