<?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: fields disable and enable in screen, dialog program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193278#M467825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the condition in the initialization event when true use screen-input = 0 else use screen-input = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2007 15:42:00 GMT</pubDate>
    <dc:creator>amit_khare</dc:creator>
    <dc:date>2007-04-30T15:42:00Z</dc:date>
    <item>
      <title>fields disable and enable in screen, dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193276#M467823</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 two screens in my program , in first screen there r option to creat &amp;amp; modify data .on selecting modify control shoud go to second screen and all the screen fields and table control field should be disable , except for the 'customer code'  field&lt;/P&gt;&lt;P&gt;after entering a valid customer code all the fields should become editable with the current values on preesing 'enter' after entering valid 'customer code' .&lt;/P&gt;&lt;P&gt;But i am able to getting fields disable using loop at screen and making screen-input = 0, but after entering a valid code and pressing enter the all other fields r not getting editable with current values .&lt;/P&gt;&lt;P&gt;plz help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 15:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193276#M467823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T15:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: fields disable and enable in screen, dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193277#M467824</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;  Check if the customer code field is populated...Then open up the fields for input..otherwise don't..&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;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB WITH CONTROL TC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE DISABLE_FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE DISABLE_FIELDS OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     LOOP AT SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          IF NOT ITAB-CUSTOMER_CODE IS INITIAL.&lt;/P&gt;&lt;P&gt;            SCREEN-INPUT = '1'.    " Enable&lt;/P&gt;&lt;P&gt;         ELSE.&lt;/P&gt;&lt;P&gt;            SCREEN-INPUT = '0'.    " Disable&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;     ENDLOOP..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 15:40:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193277#M467824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T15:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: fields disable and enable in screen, dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193278#M467825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the condition in the initialization event when true use screen-input = 0 else use screen-input = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 15:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193278#M467825</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-04-30T15:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: fields disable and enable in screen, dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193279#M467826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narendran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have forgotten to modify the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT ITAB-CUSTOMER_CODE IS INITIAL.&lt;/P&gt;&lt;P&gt;    SCREEN-INPUT = '1'. " Enable&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    SCREEN-INPUT = '0'. " Disable&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  MODIFY SCREEN.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 15:43:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193279#M467826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T15:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: fields disable and enable in screen, dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193280#M467827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very good catch Mark...:-))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF NOT ITAB-CUSTOMER_CODE IS INITIAL.&lt;/P&gt;&lt;P&gt;      SCREEN-INPUT = '1'. " Enable&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      SCREEN-INPUT = '0'. " Disable&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    MODIFY SCREEN.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 15:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193280#M467827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T15:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: fields disable and enable in screen, dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193281#M467828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi narendran,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;but i want it enable only if that code exist in the database table, not for any other value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 16:26:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193281#M467828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T16:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: fields disable and enable in screen, dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193282#M467829</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 the PAI..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validate the value before it goes to the PBO..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD ITAB-VALUE MODULE CHECK_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE CHECK_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validating the value given in the screen..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT SINGLE * FROM ZTABLE WHERE VALUE = ITAB-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Raise an error message..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the screen field name is database structure - field name (EX..ZSCREEN_001-FIELDNAME) then you can give the check table for the corresponding field in SE11..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then sap will automatically check for the valid value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the above checks are successful then the control goes to the PBO...which has a valid value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 16:30:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193282#M467829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T16:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: fields disable and enable in screen, dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193283#M467830</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 insert a flag to manage the output characteristics:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS PBO

   MODULE LOOP_SCREEN.

PROCESS PAI

   FIELD &amp;lt;MY FIELD&amp;gt; MODULE CHECK_VALUE.

MODULE LOOP_SCREEN.
   CHECK NO_INPUT = 'X'.

   LOOP AT SCREEN.
      IF SCREEN-NAME = ......
        SCREEN-INPUT = 0.
        MODIFY SCREEN.
      ENDIF.  
   ENDLOOP. 
   
ENDMODULE.

MODULE CHECK_VALUE.
    SELECT * FROM &amp;lt;TABLE&amp;gt; WHERE .....
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      NO_INPUT = 'X'.
   ELSE.
     CLEAR NO_INPUT.
   ENDIF. 
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 16:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193283#M467830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T16:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: fields disable and enable in screen, dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193284#M467831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is you should use the chain end chain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the PAI module of the flow logic for the table control screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB WITH CONTROL TC.&lt;/P&gt;&lt;P&gt;chain.&lt;/P&gt;&lt;P&gt;field : &amp;lt;mention all the fileds of the table control which u wnt to edit&amp;gt;&lt;/P&gt;&lt;P&gt;module READ_DATA.&lt;/P&gt;&lt;P&gt;endchain.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 16:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fields-disable-and-enable-in-screen-dialog-program/m-p/2193284#M467831</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-04-30T16:48:09Z</dc:date>
    </item>
  </channel>
</rss>

