<?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 Selection-screen disabling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4989999#M1162402</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 10 selection screen fields, in that 3 date fields which r given with select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now If one date field is given, then rest of the rwo date fields should be disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do that with clear example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jan 2009 05:17:51 GMT</pubDate>
    <dc:creator>rohit_kaikala</dc:creator>
    <dc:date>2009-01-07T05:17:51Z</dc:date>
    <item>
      <title>Selection-screen disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4989999#M1162402</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 10 selection screen fields, in that 3 date fields which r given with select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now If one date field is given, then rest of the rwo date fields should be disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do that with clear example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 05:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4989999#M1162402</guid>
      <dc:creator>rohit_kaikala</dc:creator>
      <dc:date>2009-01-07T05:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990000#M1162403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will sove your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

parameters: date1 type sy-datum.
parameters: date2 type sy-datum.
parameters: date3 type sy-datum.

at selection-screen output.

if date1 is not initial.

loop at screen.
if screen-name = 'DATE2' or screen-name = 'DATE3'.
screen-input = 0.
modify screen.
endif.
endloop.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 05:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990000#M1162403</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-01-07T05:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990001#M1162404</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;Refer this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.henrikfrank.dk/abaptips/reporting/selectionscreen/disableparameter.htm" target="test_blank"&gt;http://www.henrikfrank.dk/abaptips/reporting/selectionscreen/disableparameter.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 05:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990001#M1162404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T05:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990002#M1162405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use the &lt;STRONG&gt;SCREEN&lt;/STRONG&gt; internal table logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    LOOP AT SCREEN.

     if so_date is not initila.
    then enabling that button
      IF screen-group1 = c_date. "'date.
        screen-required = c_1.                              "'1'.
        screen-output   = c_1.                              "'1'.
        screen-input    = c_1.                              "'1'.
        MODIFY SCREEN.
      ENDIF.
    endif.

     if so_date is not initial.
    then enabling that button
      IF screen-group1  = c_date1.                            "'date1'.
        screen-required = c_1.                              "'1'.
        screen-output   = c_1.                              "'1'.
        screen-input    = c_1.                              "'1'.
        MODIFY SCREEN.
      ENDIF.
     ENDIF.

     if so_date is not initila.
    then enabling that button
      IF screen-group1  = c_date2.                            "'date2'.
        screen-required = c_1.                              "1'.
        screen-output   = c_1.                              "'1'.
        screen-input    = c_1.                              "'1'.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.

    ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mention the &lt;STRONG&gt;group&lt;/STRONG&gt; properties of that filed in your screen as the DATE ,DATE1 and DATE2 as per your requiremnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 4:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 05:23:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990002#M1162405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T05:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990003#M1162406</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;if any one of the date field on the slection screen is filled with value then do it like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;if date1 = 'X'.&lt;/P&gt;&lt;P&gt;display the other 2 with no display option as given in the following format.&lt;/P&gt;&lt;P&gt;[OBLIGATORY|NO-DISPLAY] &lt;/P&gt;&lt;P&gt;    [VISIBLE LENGTH vlen] &lt;/P&gt;&lt;P&gt;    [NO-EXTENSION] &lt;/P&gt;&lt;P&gt;    [NO INTERVALS] &lt;/P&gt;&lt;P&gt;    [MODIF ID modid] ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 05:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990003#M1162406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T05:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990004#M1162407</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;PRE&gt;&lt;CODE&gt;
  AT SELECTION-SCREEN OUTPUT .
LOOP AT SCREEN.
  If screen-name = date2.
    if date1 IS NOT INITIAL.
      screen-invisible = 1.
       endif.
      endif.
     modify screen.
   If screen-name = date3.
    if date1 IS NOT INITIAL.
      screen-invisible = 1.
       endif.
      endif.
    modify screen.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 4:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 05:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990004#M1162407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T05:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990005#M1162408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz try the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT Y_WA NO STANDARD PAGE HEADING LINE-COUNT 60(5).

TABLES: BKPF.

SELECT-OPTIONS:
S_DT1 FOR BKPF-BLDAT MODIF ID M1,
S_DT2 FOR BKPF-BLDAT MODIF ID M2,
S_DT3 FOR BKPF-BLDAT MODIF ID M3.

AT SELECTION-SCREEN OUTPUT.

  PERFORM F_SUPRESS_FIELDS.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  F_SUPRESS_FIELDS
*&amp;amp;---------------------------------------------------------------------*
FORM F_SUPRESS_FIELDS .

  IF S_DT1 IS NOT INITIAL.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'M2' OR SCREEN-GROUP1 = 'M3'.
        SCREEN-INPUT = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSEIF S_DT2 IS NOT INITIAL.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'M3' OR SCREEN-GROUP1 ='M1'.
        SCREEN-INPUT = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSEIF S_DT3 IS NOT INITIAL.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'M1' OR SCREEN-GROUP1 = 'M2'.
        SCREEN-INPUT = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

ENDFORM.                    " F_SUPRESS_FIELDS
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Jan 7, 2009 6:43 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 05:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990005#M1162408</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-01-07T05:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990006#M1162409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 05:36:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990006#M1162409</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-01-07T05:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990007#M1162410</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;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS : s_date1 FOR sy-datum,
                 s_date2 FOR sy-datum,
                 s_date3 FOR sy-datum.

AT SELECTION-SCREEN OUTPUT.

    IF s_date1 IS NOT INITIAL AND s_date2 IS  INITIAL AND s_date3 IS  INITIAL.
    LOOP AT SCREEN.
      IF screen-name = 'S_DATE2-LOW' OR screen-name = 'S_DATE2-HIGH'
       OR screen-name = 'S_DATE3-LOW' OR screen-name = 'S_DATE3-HIGH'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSEIF s_date2 IS NOT INITIAL  AND s_date1 IS  INITIAL AND s_date3 IS  INITIAL.
    LOOP AT SCREEN.
      IF screen-name = 'S_DATE1-LOW' OR screen-name = 'S_DATE1-HIGH'
       OR screen-name = 'S_DATE3-LOW' OR screen-name = 'S_DATE3-HIGH'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSEIF s_date3 IS NOT INITIAL AND s_date1 IS  INITIAL AND s_date2 IS  INITIAL.
    LOOP AT SCREEN.
      IF screen-name = 'S_DATE1-LOW' OR screen-name = 'S_DATE1-HIGH'
       OR screen-name = 'S_DATE2-LOW' OR screen-name = 'S_DATE2-HIGH'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; REgards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Always Learner on Jan 7, 2009 7:07 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 05:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990007#M1162410</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-01-07T05:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990008#M1162411</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;PRE&gt;&lt;CODE&gt;
   LOOP AT SCREEN.
*Put if condition* 

              MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will work out for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fareed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 4:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 05:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990008#M1162411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T05:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990009#M1162412</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;With this, the fields will get disable only when the user press 'Enter'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If he goes with mouse click or Tab button then this will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for event, after entering one of the fields in the three dates, it should get disable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;removed_by_moderator&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Rohith.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vijay Babu Dudla on Jan 15, 2009 4:47 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 03:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990009#M1162412</guid>
      <dc:creator>rohit_kaikala</dc:creator>
      <dc:date>2009-01-08T03:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen disabling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990010#M1162413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 09:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-disabling/m-p/4990010#M1162413</guid>
      <dc:creator>rohit_kaikala</dc:creator>
      <dc:date>2009-01-15T09:13:58Z</dc:date>
    </item>
  </channel>
</rss>

