<?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: At selection screen output problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331903#M1228580</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;Use:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS : p_matnr TYPE vbap-matnr MODIF ID abc,
          p_werks TYPE vbap-werks MODIF ID abc.
SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS : p_rb1 RADIOBUTTON GROUP gp1 USER-COMMAND,
          p_rb2 RADIOBUTTON GROUP gp1 DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.
  IF p_rb1 = 'X'.
    LOOP AT SCREEN.
      IF screen-group1 = 'ABC'.
        screen-invisible = 1. "hide controls
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ELSEIF p_rb2 = 'X'.
    LOOP AT SCREEN.
      IF screen-group1 = 'ABC'.
        screen-invisible = 0. "display controls
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2009 07:05:19 GMT</pubDate>
    <dc:creator>I355602</dc:creator>
    <dc:date>2009-03-09T07:05:19Z</dc:date>
    <item>
      <title>At selection screen output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331900#M1228577</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;&lt;/P&gt;&lt;P&gt;I have one requirement to disable all selection fields in one output block while selecting the first radio buttona and need to enable all fields while selecting the second radio button.&lt;/P&gt;&lt;P&gt;But its not working as per the below code.&lt;/P&gt;&lt;P&gt;************************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                    Selection Screen Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************************&lt;/P&gt;&lt;P&gt;*********Radiobuttons for projects&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS :p_act RADIOBUTTON GROUP pro DEFAULT 'X',&lt;/P&gt;&lt;P&gt;            p_purch RADIOBUTTON GROUP pro .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Project definition&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT-OPTIONS: s_posid  FOR prps-posid MATCHCODE OBJECT prsm." OBLIGATORY NO INTERVALS NO-EXTENSION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WBS Element&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT-OPTIONS: s_pspnr  FOR prps-pspnr MATCHCODE OBJECT prsm.&lt;/P&gt;&lt;P&gt;*Network&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_nplnr FOR ekkn-nplnr.&lt;/P&gt;&lt;P&gt;*Activity&lt;/P&gt;&lt;P&gt;*SELECT-OPTIONS : s_vornr FOR afvc-vornr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Vendor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT-OPTIONS: s_lifnr  FOR ekko-lifnr MATCHCODE OBJECT kred.&lt;/P&gt;&lt;P&gt;*Cost centre&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_akstl FOR prps-akstl.&lt;/P&gt;&lt;P&gt;*Document Posting Date&lt;/P&gt;&lt;P&gt;*SELECT-OPTIONS: s_&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;SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_aedat  FOR ekkn-aedat MODIF ID mo1,&lt;/P&gt;&lt;P&gt;                s_ebeln  FOR ekkn-ebeln MODIF ID mo1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Orders category&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PARAMETERS: s_all     RADIOBUTTON GROUP off DEFAULT 'X' MODIF ID mo1,&lt;/P&gt;&lt;P&gt;            s_open    RADIOBUTTON GROUP off MODIF ID mo1,&lt;/P&gt;&lt;P&gt;            s_closed  RADIOBUTTON GROUP off MODIF ID mo1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-004.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_fiinvo AS CHECKBOX .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b4.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF p_act = 'X' AND&lt;/P&gt;&lt;P&gt;     screen-group1 = 'MO1'.&lt;/P&gt;&lt;P&gt;      screen-input = '0'.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    ELSEIF p_purch = 'X' AND screen-group1 &amp;lt;&amp;gt; 'MO1'.&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;  ENDLOOP.&lt;/P&gt;&lt;P&gt;I need to press enter to work it out and automatcally not working.&lt;/P&gt;&lt;P&gt;Please suggest a solution.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 06:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331900#M1228577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T06:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331901#M1228578</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;Give usercommand for radiobuttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS :p_act RADIOBUTTON GROUP pro usercommand ucomm,&lt;/P&gt;&lt;P&gt;p_purch RADIOBUTTON GROUP pro .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331901#M1228578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T07:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331902#M1228579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope u forget to use USER-COMMAND. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report ysat_at_ss_output .

parameters: male radiobutton group rb1 user-command ucomm,
            female radiobutton group rb1 default 'X' .

selection-screen skip 2.
selection-screen: begin of block blk1 with frame title  text-001.
parameters: male1(20) modif id sc1 .
selection-screen: end of block blk1.

selection-screen: begin of block blk2 with frame title  text-002.
parameters: female1(20) modif id sc2.
selection-screen: end of block blk2.

at selection-screen output.
loop at screen.
  if male = 'X'.
  if screen-group1 = 'SC1'.
   screen-invisible = '0'.
   screen-input = '1'.
   modify screen.
  endif.
  if screen-group1 = 'SC2'.
   screen-invisible = '1'.
   screen-input = '0'.
   modify screen.
  endif.

else.
  if screen-group1 = 'SC1'.
   screen-invisible = '1'.
   screen-input = '0'.
   modify screen.
  endif.
  if screen-group1 = 'SC2'.
   screen-invisible = '0'.
   screen-input = '1'.
   modify screen.
  endif.
endif.
endloop.
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;~Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:05:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331902#M1228579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T07:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331903#M1228580</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;Use:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS : p_matnr TYPE vbap-matnr MODIF ID abc,
          p_werks TYPE vbap-werks MODIF ID abc.
SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS : p_rb1 RADIOBUTTON GROUP gp1 USER-COMMAND,
          p_rb2 RADIOBUTTON GROUP gp1 DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.
  IF p_rb1 = 'X'.
    LOOP AT SCREEN.
      IF screen-group1 = 'ABC'.
        screen-invisible = 1. "hide controls
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ELSEIF p_rb2 = 'X'.
    LOOP AT SCREEN.
      IF screen-group1 = 'ABC'.
        screen-invisible = 0. "display controls
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331903#M1228580</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-09T07:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331904#M1228581</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;Just check my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;PARAMETERS: R_SO TYPE C RADIOBUTTON GROUP R1 DEFAULT 'X' USER-COMMAND FLAG,&lt;/P&gt;&lt;P&gt;            P_SO TYPE VBELN ,&lt;/P&gt;&lt;P&gt;            R_PO TYPE C RADIOBUTTON GROUP R1,&lt;/P&gt;&lt;P&gt;            P_PO TYPE EBELN .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT."ON RADIOBUTTON GROUP r1.&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-NAME = 'P_SO' OR SCREEN-NAME = '%_P_SO_%_APP_%-TEXT'.&lt;/P&gt;&lt;P&gt;      IF R_SO EQ 'X'.&lt;/P&gt;&lt;P&gt;        SCREEN-ACTIVE = '1'.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        SCREEN-ACTIVE = '0'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF SCREEN-NAME = 'P_PO' OR SCREEN-NAME = '%_P_PO_%_APP_%-TEXT'.&lt;/P&gt;&lt;P&gt;      IF R_PO EQ 'X'.&lt;/P&gt;&lt;P&gt;        SCREEN-ACTIVE = '1'.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        SCREEN-ACTIVE = '0'.&lt;/P&gt;&lt;P&gt;      ENDIF.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proceed in this way and use the modif id for all the same elemenst for one radio button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Qamar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331904#M1228581</guid>
      <dc:creator>qamar_javed</dc:creator>
      <dc:date>2009-03-09T07:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331905#M1228582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, &lt;/P&gt;&lt;P&gt;use the folowing declaration for teh radio button&lt;/P&gt;&lt;P&gt;PARAMETERS :p_act RADIOBUTTON GROUP pro DEFAULT 'X' user-command abc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u need to assign a user command so as to enable button click.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:05:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331905#M1228582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T07:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331906#M1228583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use  &lt;/P&gt;&lt;P&gt;USER-COMMAND fcode (your any of the fcod)&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
s_open RADIOBUTTON GROUP off MODIF ID mo1 USER-COMMAND fcode ,
s_closed RADIOBUTTON GROUP off MODIF ID mo1 USER-COMMAND fcode .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrda,&lt;/P&gt;&lt;P&gt;Alpesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:08:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331906#M1228583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T07:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331907#M1228584</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;just add the user-command addition to the radio button,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS :p_act RADIOBUTTON GROUP pro DEFAULT 'X' &lt;STRONG&gt;USER-COMMAND inf&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;p_purch RADIOBUTTON GROUP pro .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:08:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331907#M1228584</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2009-03-09T07:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331908#M1228585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your early responds.&lt;/P&gt;&lt;P&gt;problem solved &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 07:21:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-output-problem/m-p/5331908#M1228585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T07:21:28Z</dc:date>
    </item>
  </channel>
</rss>

