<?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 regarding loop at screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-at-screen/m-p/3536713#M850976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnds,&lt;/P&gt;&lt;P&gt;               This is the code i have written , actually i have obligatory selection-options.&lt;/P&gt;&lt;P&gt;so when i m pressing second  radio-button its asking for values to be enterd in obligatory select-options.&lt;/P&gt;&lt;P&gt;so wht shuld be done.&lt;/P&gt;&lt;P&gt;as when i press second radio-button it shuld make the second select-options invisible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so wht shuld be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST_VALIDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : bsis.&lt;/P&gt;&lt;P&gt;&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;PARAMETER : sp_sel radiobutton group rad USER-COMMAND radio DEFAULT 'X',&lt;/P&gt;&lt;P&gt;            sp_all RADIOBUTTON GROUP rad,&lt;/P&gt;&lt;P&gt;            sp_all1 radiobutton group rad.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&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;SELECT-OPTIONS : so_bukrs FOR bsis-bukrs OBLIGATORY MODIF ID sp1.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : so_hkont FOR bsis-hkont OBLIGATORY MODIF ID sp2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&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;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sp_all = 'X' OR SP_ALL1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'SP2'.&lt;/P&gt;&lt;P&gt;        screen-input = '0'.&lt;/P&gt;&lt;P&gt;        screen-invisible = '1'.&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;LI level="1" type="ul"&gt;&lt;P&gt;       screen-active = '1'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&amp;lt;/code&amp;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;regards,&lt;/P&gt;&lt;P&gt;karan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2008 15:30:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-04T15:30:06Z</dc:date>
    <item>
      <title>regarding loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-at-screen/m-p/3536713#M850976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnds,&lt;/P&gt;&lt;P&gt;               This is the code i have written , actually i have obligatory selection-options.&lt;/P&gt;&lt;P&gt;so when i m pressing second  radio-button its asking for values to be enterd in obligatory select-options.&lt;/P&gt;&lt;P&gt;so wht shuld be done.&lt;/P&gt;&lt;P&gt;as when i press second radio-button it shuld make the second select-options invisible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so wht shuld be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST_VALIDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : bsis.&lt;/P&gt;&lt;P&gt;&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;PARAMETER : sp_sel radiobutton group rad USER-COMMAND radio DEFAULT 'X',&lt;/P&gt;&lt;P&gt;            sp_all RADIOBUTTON GROUP rad,&lt;/P&gt;&lt;P&gt;            sp_all1 radiobutton group rad.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&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;SELECT-OPTIONS : so_bukrs FOR bsis-bukrs OBLIGATORY MODIF ID sp1.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : so_hkont FOR bsis-hkont OBLIGATORY MODIF ID sp2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&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;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sp_all = 'X' OR SP_ALL1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'SP2'.&lt;/P&gt;&lt;P&gt;        screen-input = '0'.&lt;/P&gt;&lt;P&gt;        screen-invisible = '1'.&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;LI level="1" type="ul"&gt;&lt;P&gt;       screen-active = '1'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&amp;lt;/code&amp;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;regards,&lt;/P&gt;&lt;P&gt;karan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 15:30:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-at-screen/m-p/3536713#M850976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T15:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: regarding loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-at-screen/m-p/3536714#M850977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
type-pools: icon.

data: switch.

selection-screen begin of block b2 with frame title text-001.
parameters: radio radiobutton group rnd user-command test default 'X',
            radio2 radiobutton group rnd.
selection-screen end of block b2.

selection-screen begin of block b1 with frame title text-001.
parameters:
           test type bkpf-belnr modif id sc1.
selection-screen end of block b1.

selection-screen begin of block b3 with frame title text-001.
parameters:
           test1 type bkpf-belnr modif id sc2.
selection-screen end of block b3.

AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
  IF SCREEN-GROUP1 = 'SC1' AND RADIO EQ 'X'.
    SCREEN-ACTIVE = '0'.
    MODIFY SCREEN.
    CONTINUE.
  ELSEIF SCREEN-GROUP1 = 'SC2' AND RADIO2 EQ 'X'.
    SCREEN-ACTIVE = '0'.
    MODIFY SCREEN.
    CONTINUE.
  ENDIF.
ENDLOOP.

start-of-selection.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly stealed from Rich Heilman...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 15:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-at-screen/m-p/3536714#M850977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T15:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: regarding loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-at-screen/m-p/3536715#M850978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove the Obligatory from select-options and write the coding&lt;/P&gt;&lt;P&gt;for so_bukrs , so_hkont  if they are initial .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF sy-ucomm = 'ONLI'. &amp;lt;--  If F8 is pressed ... &lt;/P&gt;&lt;P&gt;   if so_bukrs[] is initial.&lt;/P&gt;&lt;P&gt;     message ...&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;   if  so_hkont[] is initial.&lt;/P&gt;&lt;P&gt;     message ...&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 15:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-at-screen/m-p/3536715#M850978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T15:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: regarding loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-at-screen/m-p/3536716#M850979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 06:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-at-screen/m-p/3536716#M850979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-09T06:15:43Z</dc:date>
    </item>
  </channel>
</rss>

