<?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: Loop break in an Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-break-in-an-internal-table/m-p/2223489#M477596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at internal table&lt;/P&gt;&lt;P&gt;if vendor_abc is "incorrect".&lt;/P&gt;&lt;P&gt;CONTINUE.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2007 17:44:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-24T17:44:31Z</dc:date>
    <item>
      <title>Loop break in an Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-break-in-an-internal-table/m-p/2223487#M477594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table with many vendors and each vendor may have multiple line items. Now if a line item has incorrect data then that vendor shudnt get created and move on to the next vendor..As i show here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v1,12,ea,3444&lt;/P&gt;&lt;P&gt;v1,12,ea,3445&lt;/P&gt;&lt;P&gt;v1,12,ea,3446&lt;/P&gt;&lt;P&gt;v2,12,ea,3448&lt;/P&gt;&lt;P&gt;v2,12,ea,3447&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If 3445 is incorrect then I shud move on to next vendor v2..How do i do this in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Viky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 17:37:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-break-in-an-internal-table/m-p/2223487#M477594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T17:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Loop break in an Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-break-in-an-internal-table/m-p/2223488#M477595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use continue ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vendor_abc is "incorrect&lt;/P&gt;&lt;P&gt;CONTINUE.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 17:39:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-break-in-an-internal-table/m-p/2223488#M477595</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-04-24T17:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Loop break in an Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-break-in-an-internal-table/m-p/2223489#M477596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at internal table&lt;/P&gt;&lt;P&gt;if vendor_abc is "incorrect".&lt;/P&gt;&lt;P&gt;CONTINUE.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 17:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-break-in-an-internal-table/m-p/2223489#M477596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T17:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Loop break in an Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-break-in-an-internal-table/m-p/2223490#M477597</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 also use CHECK statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK error_flag = 'N'.&lt;/P&gt;&lt;P&gt;&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;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 17:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-break-in-an-internal-table/m-p/2223490#M477597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T17:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Loop break in an Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-break-in-an-internal-table/m-p/2223491#M477598</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 make use of the AT control statements, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Loop at itab.

Check if the line item is ok.
IF OK.
  flag = Y.
ELSE.
  CONTINUE.
ENDIF.

AT END OF &amp;lt;vendor&amp;gt;.
 check flag = Y.
 Send vendor details.
ENDAT.

Endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sumant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 17:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-break-in-an-internal-table/m-p/2223491#M477598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T17:56:19Z</dc:date>
    </item>
  </channel>
</rss>

