<?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: Delete table records in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-table-records/m-p/2740311#M636620</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;For performance reasons do delete outside of the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
field-symbols &amp;lt;fs&amp;gt; like line of mytable.
loop at mytable assigning &amp;lt;fs&amp;gt;.
if &amp;lt;fs&amp;gt;-field_1 = someValue.
  append mytable_1
endif.
endloop

delete ......... from mytable_1
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Aug 2007 01:26:45 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2007-08-31T01:26:45Z</dc:date>
    <item>
      <title>Delete table records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-table-records/m-p/2740309#M636618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to loop through a table, examine each record and&lt;/P&gt;&lt;P&gt;delete the record if it meets a certain condition, all within the loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;fs&amp;gt; like line of mytable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at mytable assigning &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;fs&amp;gt;-field_1 = someValue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&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, 31 Aug 2007 01:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-table-records/m-p/2740309#M636618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T01:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Delete table records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-table-records/m-p/2740310#M636619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can not delete directly from standard SAP tables, there are some predefined tcodes or bapis or procedures to it.&lt;/P&gt;&lt;P&gt;If you are talking abt custom tables ie Z tables, you can do it by using the Delete statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 01:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-table-records/m-p/2740310#M636619</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-08-31T01:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Delete table records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-table-records/m-p/2740311#M636620</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;For performance reasons do delete outside of the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
field-symbols &amp;lt;fs&amp;gt; like line of mytable.
loop at mytable assigning &amp;lt;fs&amp;gt;.
if &amp;lt;fs&amp;gt;-field_1 = someValue.
  append mytable_1
endif.
endloop

delete ......... from mytable_1
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 01:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-table-records/m-p/2740311#M636620</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-31T01:26:45Z</dc:date>
    </item>
  </channel>
</rss>

