<?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 screens . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189996#M759894</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;Instead of Push buttons you can have radio options. To do &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While declaring the selection screen parameters you have mention the parameters and select-options as groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection screen output event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at screen.

if screen-group = 'Group name'.
  screen-field = 'Fieldname'  "Give the name of the fields to be hidden
screen-invisible = 0.
modify screen.
endif.

if screen-group = 'Other Group name'.
  screen-field = 'Fieldname'  "Give the name of the fields to be hidden
screen-invisible = 0.
modify screen.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2007 06:30:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-12T06:30:35Z</dc:date>
    <item>
      <title>selection screens .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189993#M759891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two blocks b1 and b2 on selections screens &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I have two push buttons .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i click one button b1 should be visible and b2 should be hided .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i push another button b2  should be visible and b1 should be hided .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Ramesh.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 06:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189993#M759891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T06:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: selection screens .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189994#M759892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To disable the parameter field you need to loop at screen table and give the "SCREEN-INPUT = 0". Which will make the field disable for the input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the scenario i have pasted here. Here i am taking two radio buttons. If the first button is selected then then the related fields of the other radio button should be disabled. &amp;lt;b&amp;gt;Replace the Radio button definition with Push buttons.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: &lt;/P&gt;&lt;P&gt;P_VAR1 TYPE C,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R1 RADIOBUTTON GROUP G1 USER_COMMAND U1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R2 RADIOBUTTON GROUP G1 DEFAULT 'X',&lt;/P&gt;&lt;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ful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 06:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189994#M759892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T06:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: selection screens .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189995#M759893</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;Instead of Push buttons you can have radio options. To do &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While declaring the selection screen parameters you have mention the parameters and select-options as groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection screen output event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at screen.

if screen-group = 'Group name'.
  screen-field = 'Fieldname'  "Give the name of the fields to be hidden
screen-invisible = 0.
modify screen.
endif.

if screen-group = 'Other Group name'.
  screen-field = 'Fieldname'  "Give the name of the fields to be hidden
screen-invisible = 0.
modify screen.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 06:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189995#M759893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T06:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: selection screens .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189996#M759894</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;Instead of Push buttons you can have radio options. To do &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While declaring the selection screen parameters you have mention the parameters and select-options as groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection screen output event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at screen.

if screen-group = 'Group name'.
  screen-field = 'Fieldname'  "Give the name of the fields to be hidden
screen-invisible = 0.
modify screen.
endif.

if screen-group = 'Other Group name'.
  screen-field = 'Fieldname'  "Give the name of the fields to be hidden
screen-invisible = 0.
modify screen.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 06:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189996#M759894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T06:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: selection screens .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189997#M759895</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;Instead of Push buttons you can have radio options. To do &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While declaring the selection screen parameters you have mention the parameters and select-options as groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection screen output event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at screen.

if screen-group = 'Group name'.
  screen-field = 'Fieldname'  "Give the name of the fields to be hidden
screen-invisible = 0.
modify screen.
endif.

if screen-group = 'Other Group name'.
  screen-field = 'Fieldname'  "Give the name of the fields to be hidden
screen-invisible = 0.
modify screen.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 06:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189997#M759895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T06:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: selection screens .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189998#M759896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have push buttons on application tool bar not on screen to replace pushbuttons with radio buttons&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 07:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189998#M759896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T07:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: selection screens .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189999#M759897</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;&lt;/P&gt;&lt;P&gt;   Refer this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                  PARAMETERS &amp;amp;  SELECT-OPTIONS                       *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&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-011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_pay1 RADIOBUTTON GROUP grp USER-COMMAND fc DEFAULT 'X',&lt;/P&gt;&lt;P&gt;             p_pay2 RADIOBUTTON GROUP grp.&lt;/P&gt;&lt;P&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-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_pernr FOR  pa0000-pernr.            "Personnel Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT (31) text-018.&lt;/P&gt;&lt;P&gt;PARAMETERS     : p_begda LIKE pa0000-begda OBLIGATORY. "Start Date&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 52(05) text-019.&lt;/P&gt;&lt;P&gt;PARAMETERS     : p_endda LIKE pa0000-endda OBLIGATORY. "End Date&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_stat2  FOR pa0000-stat2,               "Status&lt;/P&gt;&lt;P&gt;                 s_werks  FOR pa0001-werks,               "Personnel Area&lt;/P&gt;&lt;P&gt;                 s_raufnr FOR catsdb-raufnr MODIF ID md1. "Internal Order Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                  AT SELECTION-SCREEN                                *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_pay1 EQ 'X'.&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 screen-group1 = 'MD1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        screen-active = '1'.&lt;/P&gt;&lt;P&gt;        screen-input  = '0'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&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;  ELSEIF p_pay2 EQ 'X'.&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 screen-group1 = 'MD1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        screen-active = '1'.&lt;/P&gt;&lt;P&gt;        screen-input  = '1'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&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;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 07:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3189999#M759897</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-12-12T07:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: selection screens .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3190000#M759898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dont use different blocks&lt;/P&gt;&lt;P&gt;use same one block BLOCK_1&lt;/P&gt;&lt;P&gt;add select options and parameters of first block b1 with modif id sb1 in BLOCK_1&lt;/P&gt;&lt;P&gt;add select options and parameters of second block b2 with modif id sb2 in BLOCK_1&lt;/P&gt;&lt;P&gt;add both of above in same block&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pai use ok_code&lt;/P&gt;&lt;P&gt;&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 ok_code eq 'Button_1'.&lt;/P&gt;&lt;P&gt;Loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group = 'sb2'.&lt;/P&gt;&lt;P&gt;  screen-field = 'Fieldname'  "Give the name of the fields to be hidden&lt;/P&gt;&lt;P&gt;screen-invisible = 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;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ok_code eq 'Button_2'.&lt;/P&gt;&lt;P&gt;Loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group = 'sb1'.&lt;/P&gt;&lt;P&gt;  screen-field = 'Fieldname'  "Give the name of the fields to be hidden&lt;/P&gt;&lt;P&gt;screen-invisible = 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;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 09:00:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screens/m-p/3190000#M759898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T09:00:45Z</dc:date>
    </item>
  </channel>
</rss>

