<?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 Delete from table type. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648114#M288168</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 a need to delete some entries from a table type where ID = some string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do it in code without loops?&lt;/P&gt;&lt;P&gt;Can you plese provide correct syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Georgy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2006 21:56:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-19T21:56:45Z</dc:date>
    <item>
      <title>Delete from table type.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648114#M288168</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 a need to delete some entries from a table type where ID = some string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do it in code without loops?&lt;/P&gt;&lt;P&gt;Can you plese provide correct syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Georgy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 21:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648114#M288168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T21:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from table type.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648115#M288169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that you have an internal table describe by a table type.  You can use the syntax below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;delete itab where ID = &amp;lt;some_value&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 21:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648115#M288169</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-19T21:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from table type.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648116#M288170</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;Use the where condition in the delete statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ITAB WHERE FIELDNAME = 'SOME STRING'..&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>Thu, 19 Oct 2006 22:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648116#M288170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T22:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from table type.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648117#M288171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;I was doing &lt;/P&gt;&lt;P&gt;delete from itab where ...&lt;/P&gt;&lt;P&gt;This is why it was not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10 points to you since you are the first one to reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerogy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 22:01:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648117#M288171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T22:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from table type.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648118#M288172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the DELETE FROM...  syntax is when working with a database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 22:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648118#M288172</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-19T22:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from table type.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648119#M288173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Georgy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It must be an internal table which might have been defined from table type.&lt;/P&gt;&lt;P&gt;Yes you can delete records from internal table. Here are few statements and use whichever suits your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- DELETE itab INDEX idx. &lt;/P&gt;&lt;P&gt;- DELETE itab FROM idx1 TO idx2. &lt;/P&gt;&lt;P&gt;- DELETE itab WHERE Field = Value. &lt;/P&gt;&lt;P&gt;- DELETE ADJACENT DUPLICATES FROM itab Comparing Field1 Field2 .... (Sort the table by Field1 Field2 .. before deleting duplicate entries)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 22:04:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648119#M288173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T22:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from table type.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648120#M288174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 22:04:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-table-type/m-p/1648120#M288174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T22:04:40Z</dc:date>
    </item>
  </channel>
</rss>

