<?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: Is a loop really needed? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-a-loop-really-needed/m-p/6468068#M1416776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry...Duplicate post&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: PRITAM MOHANTY on Jan 13, 2010 10:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jan 2010 18:56:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-13T18:56:14Z</dc:date>
    <item>
      <title>Is a loop really needed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-a-loop-really-needed/m-p/6468066#M1416774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my internal table and want to delete the rows with more less than 5 characters. I do not want to use a loop because of perfomance issues, rather I am trying to use the DELETE statement, but I am not being successful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: it_bseg type STANDARD TABLE OF bseg,
             wa_bseg type bseg.


  SELECT * FROM bseg
    INTO CORRESPONDING FIELDS OF TABLE it_bseg
    WHERE bukrs EQ pa_bukrs and
                 belnr  IN so_belnr   and
                 gjahr EQ pa_gjahr.


delete it_bseg WHERE strlen(dbmtr) &amp;gt; pa_min_value.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2010 18:32:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-a-loop-really-needed/m-p/6468066#M1416774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-13T18:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is a loop really needed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-a-loop-really-needed/m-p/6468067#M1416775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many reasons:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of dbmtr, try DMBTR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But strlen only works on characters, not currency amounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You probably want to use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;delete it_bseg WHERE DMBTR &amp;gt; pa_min_value.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it wouldn't be a performance problem anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should have added that it's really a mug's game. ABAP will have to do an internal loop anyway to read each row and decide whether or not to delete it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jan 13, 2010 2:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2010 18:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-a-loop-really-needed/m-p/6468067#M1416775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-13T18:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is a loop really needed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-a-loop-really-needed/m-p/6468068#M1416776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry...Duplicate post&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: PRITAM MOHANTY on Jan 13, 2010 10:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2010 18:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-a-loop-really-needed/m-p/6468068#M1416776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-13T18:56:14Z</dc:date>
    </item>
  </channel>
</rss>

