<?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 Logic for Selection screen output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-selection-screen-output/m-p/1471957#M221716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have 2  blocks on my selection screen &lt;/P&gt;&lt;P&gt;First block has 3 radio buttons(a, b,c) and second block has 5 check boxes. When i select radio button 'C' 2 checks boxes of 2nd block  should be activated (enabled).if RB 'C' is not selected those 2 chck boxes should be in disabled position. an any one help me in this regard.(logic)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;P.D .Rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2006 17:25:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-04T17:25:19Z</dc:date>
    <item>
      <title>Logic for Selection screen output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-selection-screen-output/m-p/1471957#M221716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have 2  blocks on my selection screen &lt;/P&gt;&lt;P&gt;First block has 3 radio buttons(a, b,c) and second block has 5 check boxes. When i select radio button 'C' 2 checks boxes of 2nd block  should be activated (enabled).if RB 'C' is not selected those 2 chck boxes should be in disabled position. an any one help me in this regard.(logic)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;P.D .Rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 17:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-selection-screen-output/m-p/1471957#M221716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T17:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for Selection screen output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-selection-screen-output/m-p/1471958#M221717</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;Heres the logic to be placed(assuming CHK_BOX2 and CHK_BOX3 are to checked/unchecked based on radio button rb_2)&lt;/P&gt;&lt;P&gt;in &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 rb_2 = 'X'.&lt;/P&gt;&lt;P&gt;      CHK_BOX2 = 'X'.&lt;/P&gt;&lt;P&gt;      CHK_BOX3 = 'X'.  &lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      CHK_BOX2 = ' '.&lt;/P&gt;&lt;P&gt;      CHK_BOX3 = ' '.  &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;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 17:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-selection-screen-output/m-p/1471958#M221717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T17:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for Selection screen output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-selection-screen-output/m-p/1471959#M221718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ypra_sample56.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETER: p_r1 RADIOBUTTON GROUP rg1 USER-COMMAND vend DEFAULT 'X',&lt;/P&gt;&lt;P&gt;           p_r2 RADIOBUTTON GROUP rg1,&lt;/P&gt;&lt;P&gt;           p_r3 RADIOBUTTON GROUP rg1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK a1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK a2 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;PARAMETER: p_c1 TYPE c AS CHECKBOX,&lt;/P&gt;&lt;P&gt;           p_c2 TYPE c AS CHECKBOX,&lt;/P&gt;&lt;P&gt;           p_c3 TYPE c AS CHECKBOX,&lt;/P&gt;&lt;P&gt;           p_c4 TYPE c AS CHECKBOX,&lt;/P&gt;&lt;P&gt;           p_c5 TYPE c AS CHECKBOX.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK a2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           INITIALIZATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  PERFORM enable_fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           AT SELECTION SCREEN OUTPUT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  PERFORM sel_screen_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sel_screen_output&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&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;      Selection screen Output&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;FORM sel_screen_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_r1 EQ 'X' OR p_r2 EQ 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM enable_fields.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_r3 EQ 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-name EQ 'P_C4' OR screen-name = 'P_C5'.&lt;/P&gt;&lt;P&gt;        screen-active = '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;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " sel_screen_output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  enable_fields&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&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;      enable fields in 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;FORM enable_fields .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_r1 EQ 'X' OR p_r2 EQ 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-name EQ 'P_C4' OR screen-name EQ 'P_C5'.&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;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " disable_fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use  screen-input = '1' to enable and screen-input = '0' to disable the checkbox. And if u want to totally make that field disappear from screen use screen-active = '1' and '0'.&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;Prakash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Prakash Ramu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 17:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-selection-screen-output/m-p/1471959#M221718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T17:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for Selection screen output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-selection-screen-output/m-p/1471960#M221719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi prakash ramu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ur logic helped me to solve my problem.i have one more extension to the same problem. i hope u will give me solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extension: after enabling the check boxes , if i click any of the chk box , an input field in another block say "Blk3" to be poulated .where can i write code to initate values for i/o field and can i use user-command option with check boxes also  to trigger action as in case of check radio button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.D.Rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2006 10:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-selection-screen-output/m-p/1471960#M221719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-09T10:12:08Z</dc:date>
    </item>
  </channel>
</rss>

