<?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: Selection Screen based on condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833775#M1316917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this link for further link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba70535c111d1829f0000e829fbfe/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you still need any more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Rajeshwar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2009 11:22:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-23T11:22:22Z</dc:date>
    <item>
      <title>Selection Screen based on condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833768#M1316910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to design selection screen based on condition. I mean , is it possible to display different selection screen based on a particlar cond ? I tried with the code below and it did not work :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF TCODE = 'ZSCPPAC1'.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;  PARAMETERS:p_var TYPE zde_variant,&lt;/P&gt;&lt;P&gt;             p_desc TYPE zde_rdesc.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN:END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN:BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;  PARAMETERS:p_var1 TYPE zde_variant.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN:END OF BLOCK b2.&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;Please suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 10:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833768#M1316910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T10:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen based on condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833769#M1316911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Design the selection screen with all the fields.&lt;/P&gt;&lt;P&gt;However in the AT SELECTION-SCREEN event ENABLE or DISABLE the required fields using LOOP at SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 10:42:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833769#M1316911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T10:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen based on condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833770#M1316912</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;Use Modif ID for all screen fields to make the process Easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 10:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833770#M1316912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T10:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen based on condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833771#M1316913</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;SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;  PARAMETERS:p_var TYPE zde_variant MODIF ID abc,&lt;/P&gt;&lt;P&gt;             p_desc TYPE zde_rdesc MODIF ID abc.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN:END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN:BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;  PARAMETERS:p_var1 TYPE zde_variant MODIF ID bcd.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN:END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  IF sy-tcode = 'ZSCPPAC1'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'ABC'.&lt;/P&gt;&lt;P&gt;        screen-active = 0.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar Bandanadham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 10:58:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833771#M1316913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T10:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen based on condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833772#M1316914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes based on condition we can able to DISABLE or ENABLE our selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define all selection fileds first with &lt;STRONG&gt;MODIF ID&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;In &lt;STRONG&gt;AT-SELECTION SCREEN EVENT&lt;/STRONG&gt; You can use &lt;STRONG&gt;LOOP AT SCREEN&lt;/STRONG&gt; to Modify our screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through ABAP Documentation then you will come to know.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833772#M1316914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T11:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen based on condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833773#M1316915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  You can modify the code as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS:p_var TYPE zde_variant &lt;STRONG&gt;modif id nnn&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;p_desc TYPE zde_rdesc &lt;STRONG&gt;modif id nnn&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN:END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN:BEGIN OF BLOCK b2 WITH FRAME TITLE text-002 &lt;STRONG&gt;modif id mmm&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;PARAMETERS:p_var1 TYPE zde_variant &lt;STRONG&gt;modif id mmm&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN:END OF BLOCK b2.&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;Now at AT SELECTION SCREEN OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF TCODE = 'ZSCPPAC1'.&lt;/P&gt;&lt;P&gt;  loop at SCREEN.&lt;/P&gt;&lt;P&gt;    if screen-group1 = 'mmm'.&lt;/P&gt;&lt;P&gt;       screen-active  = '0'.&lt;/P&gt;&lt;P&gt;       modify screen.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt; endloop.  &lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;   loop at SCREEN.&lt;/P&gt;&lt;P&gt;    if screen-group1 = 'nnn'.&lt;/P&gt;&lt;P&gt;       screen-active  = '0'.&lt;/P&gt;&lt;P&gt;       modify screen.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833773#M1316915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T11:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen based on condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833774#M1316916</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 code, its working:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS : p_var  TYPE zde_variant MODIF ID abc,
             p_desc TYPE zde_rdesc   MODIF ID abc.
SELECTION-SCREEN:END OF BLOCK b1.

SELECTION-SCREEN:BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS:p_var1 TYPE zde_variant MODIF ID def.
SELECTION-SCREEN:END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF sy-tcode = 'ZSCPPAC1'.
      IF screen-group1 = 'ABC'.
        screen-active = 1.
        screen-invisible = 0.
      ENDIF.
      IF screen-group1 = 'DEF'.
        screen-active = 0.
        screen-invisible = 1.
      ENDIF.

    ELSE.
      IF screen-group1 = 'ABC'.
        screen-active = 0.
        screen-invisible = 1.
      ENDIF.
      IF screen-group1 = 'DEF'.
        screen-active = 1.
        screen-invisible = 0.
      ENDIF.
    ENDIF.

    MODIFY SCREEN.
  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833774#M1316916</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-06-23T11:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen based on condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833775#M1316917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this link for further link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba70535c111d1829f0000e829fbfe/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you still need any more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Rajeshwar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-based-on-condition/m-p/5833775#M1316917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T11:22:22Z</dc:date>
    </item>
  </channel>
</rss>

