<?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: Regarding loops in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463124#M552826</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;This code is best "DELETE data_package where &amp;lt;condition&amp;gt;"&lt;/P&gt;&lt;P&gt;because it will create performance problem while using LOOP&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards all helpfull answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regrads.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jun 2007 07:52:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-22T07:52:50Z</dc:date>
    <item>
      <title>Regarding loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463115#M552817</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;please tell me if  this works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE data_package where &amp;lt;condition&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or should i have to like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at data_package&lt;/P&gt;&lt;P&gt;if &amp;lt;condition?&lt;/P&gt;&lt;P&gt;delete data_package.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 07:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463115#M552817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T07:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463116#M552818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijaya,&lt;/P&gt;&lt;P&gt;I think it should work... if not, please provide a more detailed example code. In the ABAP documentation it says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DELETE itab WHERE logexp.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Deletes all of the entries from the internal table itab that satisfy the condition logexp. The condition logexp can be almost any logical expression. The only restriction is that the first field in each comparison must be a component of the line structure of the internal table itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps. Best regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 07:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463116#M552818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T07:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463117#M552819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vijaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both of them would work the same way - including performance. To improve performance you can use SORTED Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 07:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463117#M552819</guid>
      <dc:creator>former_member214288</dc:creator>
      <dc:date>2007-06-22T07:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463118#M552820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viyaya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can use DELETE data_package where &amp;lt;logical_expression&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From ABAP Help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... WHERE log_exp &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;You can specify any logical expression log_exp after WHERE, for which the first operand of each individual comparison is a component of the internal table. This enables all logical expression with the exception of IS ASSIGNED, ISREQUESTED, and IS SUPPLIED. The dynamic specification of components using character-type data objects in parentheses is not supported here. All rows for which the logical expression is true are deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Whereas in standard tables, every row of the internal table is checked for the logical expression of the WHERE addition, in sorted tables and hashed tables (as of release 7.0), it is possible to use AND queries to optimize access by checking at least the starting component of the table key for equality with the logical expression. Access is also optimized if the logical expression contains additional queries linked with AND using any operators. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Deletes all rows of an internal table from row 4. The result is the same as in the example for APPEND ... SORTED BY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_carrid TYPE sflight-carrid, &lt;/P&gt;&lt;P&gt;            p_connid TYPE sflight-connid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF seats, &lt;/P&gt;&lt;P&gt;        fldate    TYPE sflight-fldate, &lt;/P&gt;&lt;P&gt;        seatsocc  TYPE sflight-seatsocc, &lt;/P&gt;&lt;P&gt;        seatsmax  TYPE sflight-seatsmax, &lt;/P&gt;&lt;P&gt;        seatsfree TYPE sflight-seatsocc, &lt;/P&gt;&lt;P&gt;      END OF seats. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA seats_tab LIKE STANDARD TABLE OF seats. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT fldate seatsocc seatsmax &lt;/P&gt;&lt;P&gt;       FROM sflight &lt;/P&gt;&lt;P&gt;       INTO TABLE seats_tab &lt;/P&gt;&lt;P&gt;       WHERE carrid = p_carrid AND &lt;/P&gt;&lt;P&gt;             connid = p_connid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT seats_tab INTO seats. &lt;/P&gt;&lt;P&gt;  seats-seatsfree = seats-seatsmax - seats-seatsocc. &lt;/P&gt;&lt;P&gt;  MODIFY seats_tab INDEX sy-tabix FROM seats. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT seats_tab BY seatsfree DESCENDING. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE seats_tab FROM 4. &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 07:14:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463118#M552820</guid>
      <dc:creator>Faaiez</dc:creator>
      <dc:date>2007-06-22T07:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463119#M552821</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;&lt;/P&gt;&lt;P&gt;dont use to delete the work to delete the ITAB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the syntax for correctness.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE TABLE ITAB  where condi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work faster than work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 07:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463119#M552821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T07:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463120#M552822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am concentrating mainly on this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which one would be more good with respect to performace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at data_package&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it loops at all elements and deltes wherever satisfies the if condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete data_package where &amp;lt;condition&amp;gt;--- also works in the same way but i want to ask if both the possiblities take same time to delete the entries or which one will be the best to use to achieve better performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 07:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463120#M552822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T07:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463121#M552823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for more infor please go thru this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/06/aafd54fc4011d195280000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/06/aafd54fc4011d195280000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shivakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 07:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463121#M552823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T07:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463122#M552824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first statement : DELETE data_package where &amp;lt;condition&amp;gt; is preferred instead of second one keeping PERFORMANCE in mind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hari krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 07:39:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463122#M552824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T07:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463123#M552825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya thanks but tell me the difference...both the possibilities loop through the data package or itab then how does that make difference when i use only delete statement instead of loop at data_package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how the performance is better please throw some light on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Viajya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 07:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463123#M552825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T07:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463124#M552826</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;This code is best "DELETE data_package where &amp;lt;condition&amp;gt;"&lt;/P&gt;&lt;P&gt;because it will create performance problem while using LOOP&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards all helpfull answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regrads.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 07:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loops/m-p/2463124#M552826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T07:52:50Z</dc:date>
    </item>
  </channel>
</rss>

