<?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/2690169#M622323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;  i think u can go for a radio button option.&lt;/P&gt;&lt;P&gt;if not check for if any of the fields in block 1 iare not initial then deactivate block2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2007 14:51:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-28T14:51:56Z</dc:date>
    <item>
      <title>Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2690168#M622322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two selection screen blocks b1 and b2 , b1 has 3 select options and b2 has 3 . At any time user should enter values in any one of the blocks only , how to achieve this. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 14:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2690168#M622322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T14:48: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/2690169#M622323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;  i think u can go for a radio button option.&lt;/P&gt;&lt;P&gt;if not check for if any of the fields in block 1 iare not initial then deactivate block2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 14:51:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2690169#M622323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T14:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2690170#M622324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can use below logic :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZJOINS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : ekko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         ekpo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         t685b,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         t000md.&lt;/P&gt;&lt;P&gt;&lt;/P&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;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Parameter und Select-Options&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&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;&lt;/P&gt;&lt;P&gt;selection-screen begin of block po_document with frame title text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            s_ebeln for ekko-ebeln matchcode object mekk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            s_lifnr for ekko-lifnr matchcode object kred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            s_ekorg for ekko-ekorg memory id eko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            s_ekgrp for ekko-ekgrp memory id ekg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            s_bsart for ekko-bsart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            s_bedat for ekko-bedat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen end of block po_document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block release with frame title text-003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters :    p_werks like ekpo-werks modif id rel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_berid for ekpo-berid  modif id ber,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                s_dispo for marc-dispo  modif id rel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters :    p_abart like ekek-abart modif id rel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                p_reduc type me_reduc   modif id rel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                p_norel type me_norel   modif id rel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen end of block release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block message with frame title text-002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters :     p_kappl like t681a-kappl modif id apl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:  s_kschl for t685b-kschl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:      p_vsztp like nast-vsztp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 p_vstat like nast-vstat default '0',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 p_erdat like nast-erdat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 p_eruhr like nast-eruhr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen end of block message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &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;  select single * from t000md.         " WHERE DISFG EQ 'X'.&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;    case screen-group1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      when 'REL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if p_kappl ne 'EL' and p_kappl eq space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          screen-input = '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          screen-required = '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          if screen-name eq 'P_WERKS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          screen-required = '1'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&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;        modify screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      when 'BER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if t000md-disfg is initial or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           ( p_kappl ne 'EL' and p_kappl ne space ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          screen-active    = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          screen-invisible = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          modify screen.&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;    endcase.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Enter p_kappl as EL and see the results or you can modify the code as you required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 14:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2690170#M622324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T14:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2690171#M622325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple ways to do this, here is one.  You can have a radiobutton group which will determine which set of select-options will be shown.  See this program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

parameters: p_b1 radiobutton group grp1 default 'X'
                            user-command switch,
            p_b2 radiobutton group grp1.

selection-screen begin of block b1 with frame.
select-options: s_datum1 for sy-datum modif id B1.
select-options: s_datum2 for sy-datum modif id B1.
select-options: s_datum3 for sy-datum modif id B1.
selection-screen end of block b1.

selection-screen begin of block b2 with frame.
select-options: s_datum4 for sy-datum modif id B2.
select-options: s_datum5 for sy-datum modif id B2.
select-options: s_datum6 for sy-datum modif id B2.
selection-screen end of block b2.


at selection-screen output.

loop at screen.
   if p_b1 = 'X'
      and screen-group1 = 'B2'.
   screen-active = 0.
   modify screen.
   endif.
   if p_b2 = 'X'
      and screen-group1 = 'B1'.
   screen-active = 0.
   modify screen.
   endif.

endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 14:54:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2690171#M622325</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-28T14:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2690172#M622326</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 go with two options..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  one put radio buttions for each block.. if first radio button is selected it should enable the block b1 else b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if you dont want this.. then you have to do it manually.say s1,s2s3 are select options in b1 and s4 s5 s6 are select options in b2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;clear lv_count.&lt;/P&gt;&lt;P&gt;if s1 is NOT initial OR s2 is NOT initial OR s3 is NOT initial.&lt;/P&gt;&lt;P&gt;lv_COUNT = 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF S4 IS NOT INITIAL OR S5 IS NOT INITIAL OR S6 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;LV_COUNT = LV_COUNT + 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF LV_COUNT &amp;gt; 1.&lt;/P&gt;&lt;P&gt;MESSAGE E000 (MSGCLAS) WITH 'Enter values in any one block only.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 14:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2690172#M622326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T14:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2690173#M622327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use the below logic.lets say PAR1, PAR2 and PAR3 is the first block and PAR4,PAR5 and PAR6 si for second block elements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the At sclection screen event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not PAR1 is intial or&lt;/P&gt;&lt;P&gt;  not PAR2 is initial or&lt;/P&gt;&lt;P&gt;  not PAR3 is intiai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not PAR4 is intial or&lt;/P&gt;&lt;P&gt;  not PAR5 is initial or&lt;/P&gt;&lt;P&gt;  not PAR6 is intiai. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;raise an error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 15:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2690173#M622327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T15:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2690174#M622328</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;Try this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST_SELECTION_BLOCK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : count type i value 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK part1 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: number1 TYPE i,&lt;/P&gt;&lt;P&gt;            number2 TYPE i,&lt;/P&gt;&lt;P&gt;            number3 TYPE i.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK part1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK part2 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: number4 TYPE i,&lt;/P&gt;&lt;P&gt;            number5 TYPE i,&lt;/P&gt;&lt;P&gt;            number6 TYPE i.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK part2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  if not number1 is initial or&lt;/P&gt;&lt;P&gt;    not number2 is initial or&lt;/P&gt;&lt;P&gt;    not number3 is initial.&lt;/P&gt;&lt;P&gt;    count = count + 1.&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;  if not number4 is initial or&lt;/P&gt;&lt;P&gt;    not number5 is initial or&lt;/P&gt;&lt;P&gt;    not number6 is initial.&lt;/P&gt;&lt;P&gt;  count = count + 1.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if count GT 1.&lt;/P&gt;&lt;P&gt;    message 'Any selection block has to be selected not both'(001) type 'E'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write : 'Success'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sriram Ponna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 15:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2690174#M622328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T15:06:12Z</dc:date>
    </item>
  </channel>
</rss>

