<?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: To make certain selection screen fields change dynamic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-make-certain-selection-screen-fields-change-dynamic/m-p/1118778#M108286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can do it in event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection screen output.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = .......&lt;/P&gt;&lt;P&gt;......&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;&lt;/P&gt;&lt;P&gt;see in dictionary, table named "SCREEN" and find its fields. u have to use those fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are many posts in forum regarding this topic, search in forum. u can find many&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2006 08:49:26 GMT</pubDate>
    <dc:creator>hymavathi_oruganti</dc:creator>
    <dc:date>2006-02-07T08:49:26Z</dc:date>
    <item>
      <title>To make certain selection screen fields change dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-make-certain-selection-screen-fields-change-dynamic/m-p/1118777#M108285</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 have a requirement as there are 2 radio buttons on selection screen,say A &amp;amp; B. &lt;/P&gt;&lt;P&gt;If A clicked,need few other selection fields to be mandatory while when B selected,need not get these fields mandatory.How can this dynamic change be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanska  lot in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Leeza.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 08:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-make-certain-selection-screen-fields-change-dynamic/m-p/1118777#M108285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T08:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: To make certain selection screen fields change dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-make-certain-selection-screen-fields-change-dynamic/m-p/1118778#M108286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can do it in event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection screen output.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = .......&lt;/P&gt;&lt;P&gt;......&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;&lt;/P&gt;&lt;P&gt;see in dictionary, table named "SCREEN" and find its fields. u have to use those fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are many posts in forum regarding this topic, search in forum. u can find many&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 08:49:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-make-certain-selection-screen-fields-change-dynamic/m-p/1118778#M108286</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2006-02-07T08:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: To make certain selection screen fields change dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-make-certain-selection-screen-fields-change-dynamic/m-p/1118779#M108287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi leeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Using OBLIGATORY&lt;/P&gt;&lt;P&gt;   at the time of parameters definition&lt;/P&gt;&lt;P&gt;   won't help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Hence, we need to&lt;/P&gt;&lt;P&gt;   EXPLICITLY &lt;/P&gt;&lt;P&gt;  use IF-ENDIF&lt;/P&gt;&lt;P&gt;  and check   parameter is INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. So if smoething is found wrong,&lt;/P&gt;&lt;P&gt;   then&lt;/P&gt;&lt;P&gt;   message s999(yhr) with 'Field is compulsory'.&lt;/P&gt;&lt;P&gt;   LEAVE LIST-PROCESSING. &amp;lt;---- IMPORTANT.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 08:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-make-certain-selection-screen-fields-change-dynamic/m-p/1118779#M108287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T08:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: To make certain selection screen fields change dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-make-certain-selection-screen-fields-change-dynamic/m-p/1118780#M108288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi leeza,&lt;/P&gt;&lt;P&gt;check this sample..&lt;/P&gt;&lt;P&gt;clicking on check1 makes the select-options mandatory..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; tables : vbap.&lt;/P&gt;&lt;P&gt;data : vbap_wa like vbap.&lt;/P&gt;&lt;P&gt;PARAMETERS : CHECK  radiobutton group rd1 user-command chk ,&lt;/P&gt;&lt;P&gt;check_1 radiobutton group rd1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_vbeln for vbap-vbeln MODIF ID B  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on radiobutton group rd1.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;  IF CHECK NE 'X' AND SCREEN-GROUP1 = 'B'.&lt;/P&gt;&lt;P&gt;    SCREEN-required = '1'.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 08:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-make-certain-selection-screen-fields-change-dynamic/m-p/1118780#M108288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T08:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: To make certain selection screen fields change dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-make-certain-selection-screen-fields-change-dynamic/m-p/1118781#M108289</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;You can do this via the event "AT SELECTION SCREEN".&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

SELECTION-SCREEN BEGIN OF BLOCK a1.
 SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
  PARAMETERS r_write RADIOBUTTON GROUP radi MODIF ID aa
            USER-COMMAND abc DEFAULT 'X'.
  PARAMETERS r_rever  RADIOBUTTON GROUP radi MODIF ID aa.

  SELECTION-SCREEN END OF BLOCK b1.

  SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE 
                                            text-002.

  PARAMETERS p_start LIKE sy-datum MODIF ID bb.
  PARAMETERS p_date  LIKE sy-datum MODIF ID cc.  
  PARAMETERS p_rever LIKE sy-datum MODIF ID dd.  

  SELECTION-SCREEN END OF BLOCK b2.

  SELECTION-SCREEN END OF BLOCK a1.

AT SELECTION-SCREEN OUTPUT.
  IF r_write EQ gc_mark.
    gv_block = 'DD'.
    PERFORM f6000_deactivate.

  ELSEIF r_rever EQ gc_mark.
    gv_block = 'CC'.
    PERFORM f6000_deactivate.
  ENDIF.

FORM f6000_deactivate.

  LOOP AT SCREEN.
    screen-active = '1'.
    IF screen-group1 = gv_block.
      screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.

ENDFORM.   

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hey Leeza, if you want the field to be mandatory, just add the keyword OBLIGATORY next to it while decalring, so that the field becomes mandatoty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is suffice. If any doubt just message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Venkat Ramanan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 09:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-make-certain-selection-screen-fields-change-dynamic/m-p/1118781#M108289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T09:32:38Z</dc:date>
    </item>
  </channel>
</rss>

