<?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: How to keep fields on module pool screen ENABLED in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096256#M1182799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CHAIN.
    FIELD :  ZSTR_MONTH-ZMONTH,
             CE1GNPL-GJAHR,
             KNVV-KUNNR,
             KNVV-VWERK.
    MODULE VALIDATE_DATA ON CHAIN-REQUEST.
  ENDCHAIN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jan 2009 14:07:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-22T14:07:38Z</dc:date>
    <item>
      <title>How to keep fields on module pool screen ENABLED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096251#M1182794</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 am designing one module pool program , which contains  2 screens&lt;/P&gt;&lt;P&gt; screen1 :- Selection data,&lt;/P&gt;&lt;P&gt; screen2 :-  Details data in Tab Con.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now from screen1 data , I populate int table and display that in screen2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirement is to block user to go to screen2 if int table is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have given message in one module in PAI of screen1 , with message type 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as soon as this condition is fulfilled i.e .int table is empty ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;message appears , and user cant go further BUT all INPUT fields turn in DISABLED (display only) Mode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and I want all inputs to be ENABLED even if MESSAGE occurs....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code in flow logic is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; PROCESS AFTER INPUT.

          MODULE GET_DATA_TABCON.

          MODULE VALIDATE_DATA.

          MODULE USER_COMMAND_8000.  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Module GET_DATA_TABCON , I get int table data and I check the same in &lt;/P&gt;&lt;P&gt;  MODULE VALIDATE_DATA as below  ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE validate_data INPUT.

IF IT_FORECAST[] IS INITIAL.
    MESSAGE 'No data found for this selection'  TYPE  'E'.
    LEAVE TO SCREEN '8000'.
  ENDIF.

ENDMODULE.                 " validate_data  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anybody suggest me the solution................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 12:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096251#M1182794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T12:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep fields on module pool screen ENABLED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096252#M1182795</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;1. Check by changing the error mesg type to 'W'&lt;/P&gt;&lt;P&gt;2. Add the error message in between CHAIN ENDCHAIN of those fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you hit enter after the error message, normally sap makes the fields editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 12:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096252#M1182795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T12:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep fields on module pool screen ENABLED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096253#M1182796</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;u should not put error message as it stops the processing.Try doin like this&lt;/P&gt;&lt;P&gt;1.In the PAI after checking the validation u dispay the error message and exit&lt;/P&gt;&lt;P&gt;2.In the second method u can call the second screen explicitl only if the internal table has values, then give a success message and dont call the screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 12:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096253#M1182796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T12:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep fields on module pool screen ENABLED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096254#M1182797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; thanks for replying,&lt;/P&gt;&lt;P&gt;I tried your way , but it does not work......one new problem has arisen bcoz of that.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it does not takes the values of fields on the first screen..even if I make entries in those...i.e. the values of ZSTR_MONTH-ZMONTH,CE1GNPL-GJAHR, KNVV-KUNNR,KNVV-VWERK are initilised.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My new Flow Logic is &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT.
  MODULE GET_DATA_TABCON.
  CHAIN.
    FIELD :  ZSTR_MONTH-ZMONTH,
             CE1GNPL-GJAHR,
             KNVV-KUNNR,
             KNVV-VWERK.
    MODULE VALIDATE_DATA.
  ENDCHAIN.

  MODULE USER_COMMAND_8000.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and  MODULE VALIDATE_DATA is as below.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF IT_FORECAST[] IS INITIAL.
    MESSAGE 'No data found for this selection' TYPE 'W'.
    EXIT.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you suggest me a solution........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanksssssssssss.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 12:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096254#M1182797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T12:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep fields on module pool screen ENABLED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096255#M1182798</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;Try doing the following way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont put chain - endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your previous code, keep the message type as 'I'.&lt;/P&gt;&lt;P&gt;Now if the itab is empty&lt;/P&gt;&lt;P&gt;   Show message [type 'I' ].&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  go to screen 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 14:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096255#M1182798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T14:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep fields on module pool screen ENABLED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096256#M1182799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CHAIN.
    FIELD :  ZSTR_MONTH-ZMONTH,
             CE1GNPL-GJAHR,
             KNVV-KUNNR,
             KNVV-VWERK.
    MODULE VALIDATE_DATA ON CHAIN-REQUEST.
  ENDCHAIN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 14:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096256#M1182799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T14:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep fields on module pool screen ENABLED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096257#M1182800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;issue resolved ...thanks for ur reply......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 06:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096257#M1182800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T06:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep fields on module pool screen ENABLED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096258#M1182801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Add the error message in between CHAIN ENDCHAIN of those fields ' This also works with message type 'E'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks prashant &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1495/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 06:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-keep-fields-on-module-pool-screen-enabled/m-p/5096258#M1182801</guid>
      <dc:creator>former_member9607</dc:creator>
      <dc:date>2013-05-28T06:14:29Z</dc:date>
    </item>
  </channel>
</rss>

