<?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: Select- options query...? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770442#M645511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Rich....Let me try this....&lt;/P&gt;&lt;P&gt;is there any thing else that i can try or if you have any other suggestions for me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Truly appreciate ur time and effort...I am new to ABAP and in the learning phase...&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;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2007 20:31:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-06T20:31:29Z</dc:date>
    <item>
      <title>Select- options query...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770440#M645509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have used dynamic subscreen for select options. &lt;/P&gt;&lt;P&gt;For one transaction i.e. cycle in display mode, as this element is dynamically coming on the screen, we can not change its property using loop at screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way by which we can change property of that select option to disable it for input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers: Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 20:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770440#M645509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T20:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select- options query...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770441#M645510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you are embedding your selection-screen into a subscreen area on a dynpro, if that is the case, you can manipulate the selection-screen elements like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice here, that you should be handling the PBO for the selection screen in the AT SELECTION-SCREEN OUTPUT event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0001 .

tables: mara.

* Custom Selection Screen 1010
selection-screen begin of screen 1010 as subscreen.
selection-screen begin of block b1 with frame title text-001.
parameters: p_rad1 radiobutton group grp1 default 'X',
            p_rad2 radiobutton group grp1,
            p_rad3 radiobutton group grp1.
select-options: s_matnr for  mara-matnr,
                s_matkl for  mara-matkl,
                s_mtart for  mara-mtart.
selection-screen end of block b1.
selection-screen end of screen 1010.

at selection-screen output.
  check sy-dynnr = '1010'.
  loop at screen.
    if screen-name = 'P_RAD3'.
      screen-input = '0'.
      modify screen.
    endif.
  endloop.

start-of-selection.

  call screen 100.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
module status_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.


endmodule.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
module user_command_0100 input.

endmodule.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 20:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770441#M645510</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-09-06T20:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select- options query...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770442#M645511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Rich....Let me try this....&lt;/P&gt;&lt;P&gt;is there any thing else that i can try or if you have any other suggestions for me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Truly appreciate ur time and effort...I am new to ABAP and in the learning phase...&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;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 20:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770442#M645511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T20:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select- options query...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770443#M645512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gurus, Please suggest....the screen is coming dynamically so we cannot use loop at screen...what else can i try....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers: Sam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sam williams&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 20:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770443#M645512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T20:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select- options query...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770444#M645513</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 am not sure 100% about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you create 2 subscreens 1 with all fields and other one without field you want to disable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then call the subscreen according to your condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 22:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770444#M645513</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-09-06T22:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select- options query...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770445#M645514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey a@s,&lt;/P&gt;&lt;P&gt;can u provide me some example to do this.....&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;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 22:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770445#M645514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T22:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select- options query...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770446#M645515</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 this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF SCREEN 1020 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 3(5) TEXT-009.
SELECTION-SCREEN POSITION 10.
SELECT-OPTIONS : S_CORR  FOR Table-field MATCHCODE OBJECT mcd.
SELECT-OPTIONS : S_werks FOR T001w-werks.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 1020.

SELECTION-SCREEN BEGIN OF SCREEN 1030 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 3(5) TEXT-009.
SELECTION-SCREEN POSITION 10.
SELECT-OPTIONS : S_CORR FOR Table-field MATCHCODE OBJECT mcd.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 1030.


In module pool declare subscreen area and do the below.

PROCESS BEFORE OUTPUT.
MODULE STATUS_100.


if &amp;lt;your condition &amp;gt; = 1.     "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;
 CALL SUBSCREEN ANA_SCA INCLUDING 'YHPRMAIN' '1020'.
else.
 CALL SUBSCREEN ANA_SCA INCLUDING 'YHPRMAIN' '1030'.
endif.


PROCESS AFTER INPUT.
CALL SUBSCREEN ANA_SCA.

MODULE USER_COMMAND_100.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the syntax , I am not near to my system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 22:28:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770446#M645515</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-09-06T22:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select- options query...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770447#M645516</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 it giving any syntax error the s_werks not found something then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF SCREEN 1030 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 3(5) TEXT-009.
SELECTION-SCREEN POSITION 10.
SELECT-OPTIONS : S_CORR FOR Table-field MATCHCODE OBJECT mcd.
SELECT-OPTIONS : S_werks FOR T001w-werks no-display "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; check this NO DISPLAY.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 1030.
 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 22:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-query/m-p/2770447#M645516</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-09-06T22:32:23Z</dc:date>
    </item>
  </channel>
</rss>

