<?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 Screen........ in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582853#M590735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ...Raymond....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT's giving an Error Msg...." USER-COMMAND"man only occur in the first parameter of a radio button group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2007 11:48:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-03T11:48:29Z</dc:date>
    <item>
      <title>Selection Screen........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582844#M590726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Initially my selection screen should contain 2 radio buttons and 2 Parameters , none of them are  mandatory.............But once when i press execute in my ABAP Editor...den it takes to Sel screen....right...den at dat time both da parameters are not mandatory..............At dis instant if i select Radiobutton 1 den 1'st parameter shud bcum Mandatory...n no changes to 2'nd parameter...n if i select Radiobutton 2 both da parameters should bcum NON MANDATORY..........................Remember dis should happen in Selection Screen only.....without clicking EXECUTE button on Sel...screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me out !!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582844#M590726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T11:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582845#M590727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz try to stick to the board Laguage, which is english. i cant understand a word what you are trying to achieve. So i cant help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582845#M590727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T11:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582846#M590728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai&lt;/P&gt;&lt;P&gt;in my opinion when u use parameters in selection screen the value entry to those &lt;/P&gt;&lt;P&gt;parameters is mandatory. we can give select options as optional.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582846#M590728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T11:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582847#M590729</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;TABLES: SSCRFIELDS.&lt;/P&gt;&lt;P&gt;DATA : V_UCOMM TYPE SSCRFIELDS-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : R1 RADIOBUTTON GROUP G1 USER-COMMAND RB,&lt;/P&gt;&lt;P&gt;                         P_FIELD1 TYPE I, &lt;/P&gt;&lt;P&gt;                         R2 RADIOBUTTON GROUP G1,&lt;/P&gt;&lt;P&gt;                         P_FIELD1 TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;IF V_UCOMM = 'RB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF R1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'P_FIELD1'.&lt;/P&gt;&lt;P&gt;SCREEN-REQUIRED  = 1.     "mandatory field&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;ELSEIF R2 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'P_FIELD2'.&lt;/P&gt;&lt;P&gt;SCREEN-REQUIRED  = 1.     "mandatory field&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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the Above code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN .&lt;/P&gt;&lt;P&gt;V_UCOMM = SSCRFIELDS-UCOMM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582847#M590729</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-03T11:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582848#M590730</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;PARAMETERS: rad1 type c RADIOBUTTON GROUP xxx DEFAULT 'X' USER-COMMNAD 'SEL'.&lt;/P&gt;&lt;P&gt;PARAMETERS: rad2 type c RADIOBUTTON GROUP xxx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMTERS: par1(10) TYPE c,&lt;/P&gt;&lt;P&gt;                       par2(10) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&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 rad1 = 'X'.&lt;/P&gt;&lt;P&gt;loop at SCREEN.&lt;/P&gt;&lt;P&gt;if screen-name = 'PAR1'.&lt;/P&gt;&lt;P&gt;screen-required = 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;elseif rad2 = 'X'&lt;/P&gt;&lt;P&gt;if screen-name = 'PAR1' OR screen-name = 'PAR2'.&lt;/P&gt;&lt;P&gt;screen-required = 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;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582848#M590730</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-03T11:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582849#M590731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...Test this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: SSCRFIELDS.&lt;/P&gt;&lt;P&gt;DATA : V_UCOMM TYPE SSCRFIELDS-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : R1 RADIOBUTTON GROUP G1 USER-COMMAND RB,&lt;/P&gt;&lt;P&gt;P_FIELD1 TYPE I, &lt;/P&gt;&lt;P&gt;R2 RADIOBUTTON GROUP G1,&lt;/P&gt;&lt;P&gt;P_FIELD1 TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AT SELECTION-SCREEN OUTPUT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;IF V_UCOMM = 'RB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF R1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'P_FIELD1'.&lt;/P&gt;&lt;P&gt;SCREEN-REQUIRED = 1. "mandatory field&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;ELSEIF R2 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'P_FIELD2'.&lt;/P&gt;&lt;P&gt;SCREEN-REQUIRED = 1. "mandatory field&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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AT SELECTION-SCREEN .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;V_UCOMM = SSCRFIELDS-UCOMM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Try the Above code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:21:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582849#M590731</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-03T11:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582850#M590732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(1) A radio-button group is always mandatory, as one of the option should be selected, only one but one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  PARAMETERS: but1 RADIOBUTTON GROUP one,
              but2 RADIOBUTTON GROUP one.

  INITIALIZATION.
    CLEAR: but1, but2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;=&amp;gt; but1 is "ON" on the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you should have checkboxes and not radio buttons ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2)  Mandatory fields, look a the following sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Screen fields
  TABLES: sscrfields.

* Are fields mandatory
  DATA: field1_mandatory TYPE i,
        field2_mandatory TYPE i.

* Parameters
  PARAMETERS: button_1 RADIOBUTTON GROUP one USER-COMMAND one,
              button_2 RADIOBUTTON GROUP one,
              field1(10),
              field2(10).

  INITIALIZATION.
    CLEAR: field1_mandatory,
           field2_mandatory.

  AT SELECTION-SCREEN OUTPUT.

    LOOP AT SCREEN.
      CASE screen-name.
*     Field1 mandatory or not
        WHEN 'FIELD1'.
          screen-required = field1_mandatory.
*     Field2 mandatory or not
        WHEN 'FIELD2'.
          screen-required = field2_mandatory.
      ENDCASE.
      MODIFY SCREEN.
    ENDLOOP.

  AT SELECTION-SCREEN.

    IF sscrfields-ucomm = 'ONE'. " A button was selected
      IF button_1 = 'X'.
        field1_mandatory = 1.
      ELSEIF button_2 = 'X'.
        CLEAR: field1_mandatory,
               field2_mandatory.
      ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;"What is conceived well is stated clearly and the words for the statement come easily"&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582850#M590732</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-08-03T11:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582851#M590733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NO.........Noce of the code's posted is accurate....pls...help me out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:43:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582851#M590733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T11:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582852#M590734</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;Actually your requirement itself is wrong, by default at least one radio button will be selected, so by default one paramter will be mandatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think the code give should not be problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582852#M590734</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-03T11:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582853#M590735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ...Raymond....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT's giving an Error Msg...." USER-COMMAND"man only occur in the first parameter of a radio button group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582853#M590735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T11:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582854#M590736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  CHRISTOPHER  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"Here is the  program for your requirement  ....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZDSDFZX.
TABLES : S021, VBRK, VBRP.

SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME.
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.

SELECT-OPTIONS: p_year for s021-spmon obligatory modif id a1,p_vbeln FOR vbrk-vbeln .


SELECTION-SCREEN END OF BLOCK blk1.

SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.

PARAMETERS: nrw RADIOBUTTON GROUP g1 default 'X' user-command check,
standard RADIOBUTTON GROUP g1 .


SELECTION-SCREEN END OF BLOCK blk2.

SELECTION-SCREEN END OF BLOCK blk.


AT SELECTION-SCREEN OUTPUT.
IF nrw = 'X'.
loop at screen.
if screen-group1 = 'A1'    .
screen-input = 0.
CLEAR  p_year[].

modify screen.
endif.
endloop.
endif.

if standard = 'X'.
loop at screen.
if screen-group1 = 'A1'.
screen-input = 1.
modify screen.
endif.
endloop.endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward  points if it is usefull.&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582854#M590736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T11:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582855#M590737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No ...Guys !!!!!!!..None of the code is meeting my reqt..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 12:24:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2582855#M590737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T12:24:39Z</dc:date>
    </item>
  </channel>
</rss>

