<?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 validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/3644903#M877737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to add much... try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report zlocal_jc_sdn_radio_lock.

tables:
  pchdy.  "Selection Parameters for Database PCH

selection-screen begin of block blk1 with frame title text-001.
selection-screen: begin of line.

selection-screen: position 3.

*Radiobutton for task
parameters :
  rb_tas radiobutton group rbg1 default 'X' modif id pre
    user-command rb1.  "you need this trigger
selection-screen : comment 5(30) text-100 modif id pre.

*Radiobutton for Position.
parameters :
  rb_pos radiobutton group rbg1 modif id pre.
selection-screen : comment 40(12) text-101 modif id pre.

selection-screen : end of line.

selection-screen: skip 1.
*&amp;amp;---&amp;gt;selectoptions for task and position
select-options:
  s_task                for pchdy-objid_str modif id tas,
  s_objid               for pchdy-objid_seq modif id pos.
selection-screen end of block blk1.

at selection-screen output.
  perform at_selection_screen_output.  "lock screen fields before display

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  at_selection_screen_output
*&amp;amp;---------------------------------------------------------------------*
form at_selection_screen_output.

  loop at screen.
    if  screen-name cs 'S_TASK'
    and rb_tas is initial.
      screen-input = '0'.
    endif.
    if screen-name cs 'S_OBJID'
    and rb_pos is initial.
      screen-input = '0'.
    endif.
    modify screen.
  endloop.

endform.                    "at_selection_screen_output
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 07:02:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-09T07:02:05Z</dc:date>
    <item>
      <title>selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/3644902#M877736</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 am using the following code for designing the selection screen.&lt;/P&gt;&lt;P&gt;in the following code i am using RB_TAS and RB_POS for radio buttons and S_TASK AND S_OBJID as select options&lt;/P&gt;&lt;P&gt;now if i select RB_TAS then s_objid mist be in display mods and s_task must be visible mode to enter the value. in the same way if i select RB_POS then S_OBJID must be in visible mode so that i can enter some value and same time S_TASK must be in display mode so that not to enter the value.&lt;/P&gt;&lt;P&gt; I must not press enter at any point. if i select the radiobuttons the screen validatiion must happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block blk1 with frame title text-001.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : POSITION 3.&lt;/P&gt;&lt;P&gt;*Radiobutton for task&lt;/P&gt;&lt;P&gt;PARAMETERS       : RB_tas RADIOBUTTON GROUP rbg1 DEFAULT 'X' MODIF ID pre.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : COMMENT 5(30) text-100 MODIF ID pre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Radiobutton for Position.&lt;/P&gt;&lt;P&gt;PARAMETERS       : RB_pos RADIOBUTTON GROUP rbg1 MODIF ID pre.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : COMMENT 40(12) text-101 MODIF ID pre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: SKIP 1.&lt;/P&gt;&lt;P&gt;*&amp;amp;---&amp;gt;selectoptions for task and position&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_task  FOR pchdy-objid_str MODIF ID tas,&lt;/P&gt;&lt;P&gt;                s_objid FOR pchdy-objid_seq MODIF ID pos.&lt;/P&gt;&lt;P&gt;selection-screen end of block blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to do the logic in AT SELECTION SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;CAN ANY BODY SEND THE LOGIC.&lt;/P&gt;&lt;P&gt;NOTE: i must not press enter at any point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;giri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 06:46:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/3644902#M877736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T06:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/3644903#M877737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to add much... try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report zlocal_jc_sdn_radio_lock.

tables:
  pchdy.  "Selection Parameters for Database PCH

selection-screen begin of block blk1 with frame title text-001.
selection-screen: begin of line.

selection-screen: position 3.

*Radiobutton for task
parameters :
  rb_tas radiobutton group rbg1 default 'X' modif id pre
    user-command rb1.  "you need this trigger
selection-screen : comment 5(30) text-100 modif id pre.

*Radiobutton for Position.
parameters :
  rb_pos radiobutton group rbg1 modif id pre.
selection-screen : comment 40(12) text-101 modif id pre.

selection-screen : end of line.

selection-screen: skip 1.
*&amp;amp;---&amp;gt;selectoptions for task and position
select-options:
  s_task                for pchdy-objid_str modif id tas,
  s_objid               for pchdy-objid_seq modif id pos.
selection-screen end of block blk1.

at selection-screen output.
  perform at_selection_screen_output.  "lock screen fields before display

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  at_selection_screen_output
*&amp;amp;---------------------------------------------------------------------*
form at_selection_screen_output.

  loop at screen.
    if  screen-name cs 'S_TASK'
    and rb_tas is initial.
      screen-input = '0'.
    endif.
    if screen-name cs 'S_OBJID'
    and rb_pos is initial.
      screen-input = '0'.
    endif.
    modify screen.
  endloop.

endform.                    "at_selection_screen_output
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 07:02:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/3644903#M877737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T07:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/3644904#M877738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add &lt;STRONG&gt;User Command&lt;/STRONG&gt; to radiobutton declaration statement for &lt;STRONG&gt;RB_TAS&lt;/STRONG&gt; and write the logic in at selection-screen output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 08:39:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/3644904#M877738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T08:39:07Z</dc:date>
    </item>
  </channel>
</rss>

