<?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: Dyanmically changing selection screen components in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanmically-changing-selection-screen-components/m-p/3613346#M870514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost the same, but...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES: kna1, knvv, cepc.
*____________________________________________ Selection Screen
SELECTION-SCREEN BEGIN OF  BLOCK b1 WITH FRAME TITLE text-b01.
PARAMETERS:
  rb_cus   RADIOBUTTON GROUP rbg1 DEFAULT 'X' USER-COMMAND sel,
  rb_cmp   RADIOBUTTON GROUP rbg1.
SELECTION-SCREEN BEGIN OF  BLOCK b2 WITH FRAME TITLE text-b02.
SELECT-OPTIONS:
   pcust    FOR kna1-kunnr MODIF ID cus,
   pcmpy    FOR knvv-vkorg MODIF ID cmp.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN END OF BLOCK b1.
*____________________________________________ Screen Actions
AT SELECTION-SCREEN OUTPUT.
  IF rb_cus = 'X'.
    PERFORM hide_cmpy_options.
  ELSE.
    PERFORM hide_cust_options.
  ENDIF.


START-OF-SELECTION.
  EXIT.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  hide_cmpy_options
*&amp;amp;---------------------------------------------------------------------*
FORM hide_cmpy_options.
  LOOP AT SCREEN.
    IF screen-group1 EQ 'CMP'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
ENDFORM.                    " hide_cmpy_options
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  hide_cust_options
*&amp;amp;---------------------------------------------------------------------*
FORM hide_cust_options.
  LOOP AT SCREEN.
    IF screen-group1 EQ 'CUS'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

ENDFORM.                    " hide_cust_options
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Mar 2008 13:28:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-17T13:28:05Z</dc:date>
    <item>
      <title>Dyanmically changing selection screen components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanmically-changing-selection-screen-components/m-p/3613341#M870509</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 got a requirement that i have two select-options.&lt;/P&gt;&lt;P&gt;The selection should allow me to enter data only in one select option at any cost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to send a picece of code if possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 13:05:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dyanmically-changing-selection-screen-components/m-p/3613341#M870509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T13:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dyanmically changing selection screen components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanmically-changing-selection-screen-components/m-p/3613342#M870510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT yptc_goof3 .
TABLES: kna1, knvv, cepc.
*____________________________________________ Selection Screen
SELECTION-SCREEN BEGIN OF  BLOCK b1 WITH FRAME TITLE text-b01.
PARAMETER: pasofdt       LIKE sy-datum DEFAULT sy-datum OBLIGATORY.
SELECT-OPTIONS:
   pcust    FOR kna1-kunnr,
   pcmpy    FOR knvv-vkorg.
SELECTION-SCREEN BEGIN OF  BLOCK b2 WITH FRAME TITLE text-b02.
PARAMETERS:
  cb_all   AS CHECKBOX DEFAULT 'X' MODIF ID xxx USER-COMMAND sel,
  rb_cash  RADIOBUTTON GROUP rbg1 USER-COMMAND sel MODIF ID all,
*              DEFAULT 'X',
  rb_fin   RADIOBUTTON GROUP rbg1 MODIF ID all.
SELECTION-SCREEN BEGIN OF  BLOCK b3 WITH FRAME TITLE text-b03.
PARAMETERS:
  rb_allf  RADIOBUTTON GROUP rbg2 MODIF ID fin,
  rb_free  RADIOBUTTON GROUP rbg2 MODIF ID fin,
  rb_land  RADIOBUTTON GROUP rbg2 MODIF ID fin,
  rb_subd  RADIOBUTTON GROUP rbg2 MODIF ID fin,
  rb_spec  RADIOBUTTON GROUP rbg2 MODIF ID fin.
SELECTION-SCREEN END OF BLOCK b3.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN END OF BLOCK b1.
*____________________________________________ Screen Actions
AT SELECTION-SCREEN OUTPUT.
  IF cb_all = 'X'.
    CLEAR: rb_cash,
           rb_fin,
           rb_allf,
           rb_free,
           rb_land.
    PERFORM hide_finance_options.
    PERFORM hide_options.
  ELSE.
    PERFORM unhide_options.
  ENDIF.
  IF NOT rb_fin = 'X'.
    CLEAR: rb_allf,
           rb_free,
           rb_land.
    PERFORM hide_finance_options.
  ELSE.
    PERFORM unhide_finance_options.
  ENDIF.


START-OF-SELECTION.
  EXIT.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  hide_options
*&amp;amp;---------------------------------------------------------------------*
FORM hide_options.
  LOOP AT SCREEN.
    IF screen-group1 EQ 'ALL'
    OR screen-group1 EQ 'FIN'.
      screen-input = 0.
      screen-invisible = 1.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
ENDFORM.                    " hide_options
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  hide_finance_options
*&amp;amp;---------------------------------------------------------------------*
FORM hide_finance_options.
  LOOP AT SCREEN.
    IF screen-group1 EQ 'FIN'.
      screen-input = 0.
      screen-invisible = 1.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

ENDFORM.                    " hide_finance_options
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  unhide_finance_options
*&amp;amp;---------------------------------------------------------------------*
FORM unhide_finance_options.
  LOOP AT SCREEN.
    IF screen-group1 EQ 'FIN'.
      screen-input = 1.
      screen-invisible = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

ENDFORM.                    " unhide_finance_options

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  unhide_options
*&amp;amp;---------------------------------------------------------------------*
FORM unhide_options.
  LOOP AT SCREEN.
    IF screen-group1 EQ 'ALL'.
      screen-input = 1.
      screen-invisible = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

ENDFORM.                    " unhide_options


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 13:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dyanmically-changing-selection-screen-components/m-p/3613342#M870510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T13:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dyanmically changing selection screen components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanmically-changing-selection-screen-components/m-p/3613343#M870511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Do the validation in at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can check if one select option is initial when other has value.&lt;/P&gt;&lt;P&gt;If not then, throw error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if u have to restrict user from entering inself, then it may be achieved by checking if one select option is not initial, &lt;/P&gt;&lt;P&gt;then disable the other one by giving screen-input  = 0 at selection-screen output. &lt;/P&gt;&lt;P&gt;I am not sure about the second one though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 13:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dyanmically-changing-selection-screen-components/m-p/3613343#M870511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T13:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dyanmically changing selection screen components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanmically-changing-selection-screen-components/m-p/3613344#M870512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my intension is after the selection screen is displayed to user and we mused to choose a radio button based on the radio button the field should enable or disable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 13:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dyanmically-changing-selection-screen-components/m-p/3613344#M870512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T13:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dyanmically changing selection screen components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanmically-changing-selection-screen-components/m-p/3613345#M870513</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;One radio button would be default when the selection screen is displayed.  So In the AT-SELECTION SCREEN OUTPUT event you can write logic according to the defaulted radio button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give Screen group name to each of the select option and modif id to the radio button. U can do this requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 13:21:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dyanmically-changing-selection-screen-components/m-p/3613345#M870513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T13:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dyanmically changing selection screen components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanmically-changing-selection-screen-components/m-p/3613346#M870514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost the same, but...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES: kna1, knvv, cepc.
*____________________________________________ Selection Screen
SELECTION-SCREEN BEGIN OF  BLOCK b1 WITH FRAME TITLE text-b01.
PARAMETERS:
  rb_cus   RADIOBUTTON GROUP rbg1 DEFAULT 'X' USER-COMMAND sel,
  rb_cmp   RADIOBUTTON GROUP rbg1.
SELECTION-SCREEN BEGIN OF  BLOCK b2 WITH FRAME TITLE text-b02.
SELECT-OPTIONS:
   pcust    FOR kna1-kunnr MODIF ID cus,
   pcmpy    FOR knvv-vkorg MODIF ID cmp.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN END OF BLOCK b1.
*____________________________________________ Screen Actions
AT SELECTION-SCREEN OUTPUT.
  IF rb_cus = 'X'.
    PERFORM hide_cmpy_options.
  ELSE.
    PERFORM hide_cust_options.
  ENDIF.


START-OF-SELECTION.
  EXIT.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  hide_cmpy_options
*&amp;amp;---------------------------------------------------------------------*
FORM hide_cmpy_options.
  LOOP AT SCREEN.
    IF screen-group1 EQ 'CMP'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
ENDFORM.                    " hide_cmpy_options
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  hide_cust_options
*&amp;amp;---------------------------------------------------------------------*
FORM hide_cust_options.
  LOOP AT SCREEN.
    IF screen-group1 EQ 'CUS'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

ENDFORM.                    " hide_cust_options
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 13:28:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dyanmically-changing-selection-screen-components/m-p/3613346#M870514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T13:28:05Z</dc:date>
    </item>
  </channel>
</rss>

