<?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 How to avoid check inside loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-check-inside-loop/m-p/1919348#M382061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here G_T_VTD1,G_T_VTD are internal tables,&lt;/P&gt;&lt;P&gt;S_TAXNUM is selection option input.&lt;/P&gt;&lt;P&gt;G_RFDYM  is a vriable.&lt;/P&gt;&lt;P&gt;S_RFDPRD is selection option input.&lt;/P&gt;&lt;P&gt;G_RFDYM is a variable&lt;/P&gt;&lt;P&gt;S_RFDPRD  is selection option input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    LOOP AT G_T_VTD1.&lt;/P&gt;&lt;P&gt;      CHECK: S_TAXNUM.&lt;/P&gt;&lt;P&gt;      MOVE G_T_VTD1-RFDMY+2(4) TO G_RFDYM(4).&lt;/P&gt;&lt;P&gt;      MOVE G_T_VTD1-RFDMY(2)   TO G_RFDYM+4(2).&lt;/P&gt;&lt;P&gt;      IF S_RFDPRD-LOW &amp;lt;&amp;gt; SPACE.&lt;/P&gt;&lt;P&gt;        CHECK: G_RFDYM GE S_RFDPRD-LOW.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      IF S_RFDPRD-HIGH &amp;lt;&amp;gt; SPACE.&lt;/P&gt;&lt;P&gt;        CHECK: G_RFDYM LE S_RFDPRD-HIGH.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      CLEAR  G_T_VTD.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING G_T_VTD1 TO G_T_VTD.&lt;/P&gt;&lt;P&gt;      APPEND G_T_VTD.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Hai All, here how to avoid the check statements inside the loop, tell me logic for that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2007 07:27:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-12T07:27:36Z</dc:date>
    <item>
      <title>How to avoid check inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-check-inside-loop/m-p/1919348#M382061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here G_T_VTD1,G_T_VTD are internal tables,&lt;/P&gt;&lt;P&gt;S_TAXNUM is selection option input.&lt;/P&gt;&lt;P&gt;G_RFDYM  is a vriable.&lt;/P&gt;&lt;P&gt;S_RFDPRD is selection option input.&lt;/P&gt;&lt;P&gt;G_RFDYM is a variable&lt;/P&gt;&lt;P&gt;S_RFDPRD  is selection option input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    LOOP AT G_T_VTD1.&lt;/P&gt;&lt;P&gt;      CHECK: S_TAXNUM.&lt;/P&gt;&lt;P&gt;      MOVE G_T_VTD1-RFDMY+2(4) TO G_RFDYM(4).&lt;/P&gt;&lt;P&gt;      MOVE G_T_VTD1-RFDMY(2)   TO G_RFDYM+4(2).&lt;/P&gt;&lt;P&gt;      IF S_RFDPRD-LOW &amp;lt;&amp;gt; SPACE.&lt;/P&gt;&lt;P&gt;        CHECK: G_RFDYM GE S_RFDPRD-LOW.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      IF S_RFDPRD-HIGH &amp;lt;&amp;gt; SPACE.&lt;/P&gt;&lt;P&gt;        CHECK: G_RFDYM LE S_RFDPRD-HIGH.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      CLEAR  G_T_VTD.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING G_T_VTD1 TO G_T_VTD.&lt;/P&gt;&lt;P&gt;      APPEND G_T_VTD.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Hai All, here how to avoid the check statements inside the loop, tell me logic for that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 07:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-check-inside-loop/m-p/1919348#M382061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T07:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid check inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-check-inside-loop/m-p/1919349#M382062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your code as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF NOT S_TAXNUM IS INITIAL.
LOOP AT G_T_VTD1.
MOVE G_T_VTD1-RFDMY+2(4) TO G_RFDYM(4).
MOVE G_T_VTD1-RFDMY(2) TO G_RFDYM+4(2).
IF S_RFDPRD-LOW &amp;lt;&amp;gt; SPACE.
CHECK: G_RFDYM GE S_RFDPRD-LOW.
ENDIF.
IF S_RFDPRD-HIGH &amp;lt;&amp;gt; SPACE.
CHECK: G_RFDYM LE S_RFDPRD-HIGH.
ENDIF.
CLEAR G_T_VTD.
MOVE-CORRESPONDING G_T_VTD1 TO G_T_VTD.
APPEND G_T_VTD.
ENDLOOP.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other two checks cannot be avoided because they are dependant on the loop values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 07:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-check-inside-loop/m-p/1919349#M382062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T07:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid check inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-check-inside-loop/m-p/1919350#M382063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use WHERE instead of CHECK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 07:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-check-inside-loop/m-p/1919350#M382063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T07:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid check inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-check-inside-loop/m-p/1919351#M382064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF NOT S_TAXNUM IS INITIAL.&lt;/P&gt;&lt;P&gt;***ur loop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 08:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-check-inside-loop/m-p/1919351#M382064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T08:03:47Z</dc:date>
    </item>
  </channel>
</rss>

