<?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: optimize performance on loop at screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimize-performance-on-loop-at-screen/m-p/5285537#M1219656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok the radio button is fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what about the check box &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if cb_b1 EQ 'X'.
 loop at screen 
 endloop.
endif.

if cb_b2 EQ 'X'.
 loop at screen 
 endloop.
endif.

if cb_b3 EQ 'X'.
 loop at screen 
 endloop.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Mar 2009 06:18:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-10T06:18:32Z</dc:date>
    <item>
      <title>optimize performance on loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimize-performance-on-loop-at-screen/m-p/5285534#M1219653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on my selection screen i have lot's of condition where when i select one radio button i must grey a field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my at selection screen on output i have at least 4  loop at screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise is there a way to optimise or group the loop at screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a sample of my code is as follow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  IF RB_rep_ut IS NOT INITIAL.  

    LOOP AT SCREEN.
      IF screen-group1 EQ gc_gpb.
        screen-input = gc_zero  .
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

  IF RB_rep IS NOT INITIAL.  

    LOOP AT SCREEN.
      IF screen-group1 EQ gc_gpC.
        screen-input = gc_zero  .
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

  IF s_comp[] IS NOT INITIAL.  
    LOOP AT SCREEN.
      IF screen-group1 EQ gc_gpa.
        screen-input = gc_zero.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 05:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimize-performance-on-loop-at-screen/m-p/5285534#M1219653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T05:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: optimize performance on loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimize-performance-on-loop-at-screen/m-p/5285535#M1219654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you are using radio buttons so only one of the LOOPs will be processed.&lt;/P&gt;&lt;P&gt;With the select-otion , you have to do this anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 06:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimize-performance-on-loop-at-screen/m-p/5285535#M1219654</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2009-03-10T06:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: optimize performance on loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimize-performance-on-loop-at-screen/m-p/5285536#M1219655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to do the same way how you are doing...anyway as you are separating the logic based on radio buttons it should not be aproblem as any one of the loop at screen will be executed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 06:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimize-performance-on-loop-at-screen/m-p/5285536#M1219655</guid>
      <dc:creator>former_member242255</dc:creator>
      <dc:date>2009-03-10T06:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: optimize performance on loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimize-performance-on-loop-at-screen/m-p/5285537#M1219656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok the radio button is fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what about the check box &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if cb_b1 EQ 'X'.
 loop at screen 
 endloop.
endif.

if cb_b2 EQ 'X'.
 loop at screen 
 endloop.
endif.

if cb_b3 EQ 'X'.
 loop at screen 
 endloop.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 06:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimize-performance-on-loop-at-screen/m-p/5285537#M1219656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T06:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: optimize performance on loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimize-performance-on-loop-at-screen/m-p/5285538#M1219657</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 using it this way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at screen.
  if cb_b1 = 'X'.
  endif.

  if cb_b2 = 'X'.
  endif.

  if cb_b3 = 'X'.
  endif.

  modify screen.
endloop.
&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>Tue, 10 Mar 2009 06:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimize-performance-on-loop-at-screen/m-p/5285538#M1219657</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-10T06:20:51Z</dc:date>
    </item>
  </channel>
</rss>

