<?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: Internal table delete in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-delete/m-p/1600863#M269774</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 modify your stmnt to the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at i_iflot.&lt;/P&gt;&lt;P&gt;  if i_iflot-objnr not in r_objnr.&lt;/P&gt;&lt;P&gt;   delete i_iflot index sy-tabix.&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;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Oct 2006 08:23:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-13T08:23:54Z</dc:date>
    <item>
      <title>Internal table delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-delete/m-p/1600862#M269773</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;What would be the best way to delete the records from an internal table. I am not using the primary key here.&lt;/P&gt;&lt;P&gt;I need to delete the records from the internal table which does not match the input parameter given. &lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;I have some records in an internal table. I need to delete the records whcih does not match the condition. &lt;/P&gt;&lt;P&gt;I have around 85000 records in my internal table I_iflot. The primary key here is TPLNR in IFLOT table. But I am deleting the records based on some other field which is the input parameter OBJNR. Pls see below statement and let me know how exactly we can do this. As i am doing the deletion other than the primary key its taking hell lot time to excute the single statement.&lt;/P&gt;&lt;P&gt;SORT i_iflot BY tplnr.&lt;/P&gt;&lt;P&gt;Delete i_iflot where objnr not in r_objnr. &lt;/P&gt;&lt;P&gt;This statement is taking much time as this is not the primary key. But i need t delete with this cndition nly.&lt;/P&gt;&lt;P&gt;Any solution for this...&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, 13 Oct 2006 08:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-delete/m-p/1600862#M269773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T08:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-delete/m-p/1600863#M269774</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 modify your stmnt to the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at i_iflot.&lt;/P&gt;&lt;P&gt;  if i_iflot-objnr not in r_objnr.&lt;/P&gt;&lt;P&gt;   delete i_iflot index sy-tabix.&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;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 08:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-delete/m-p/1600863#M269774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T08:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-delete/m-p/1600864#M269775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think we have too many options here.&lt;/P&gt;&lt;P&gt;What you are doing should be OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 08:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-delete/m-p/1600864#M269775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T08:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-delete/m-p/1600865#M269776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      What are you trying to delete - &lt;/P&gt;&lt;P&gt;       a)Device Location &lt;/P&gt;&lt;P&gt;       b) Connection Object.  Refer the possible values &lt;/P&gt;&lt;P&gt;         for FLTYP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add FLTYP (Functional location category) in the where condition and delete from IFLOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   You can also select TPLNR based on OBJNR entered in the parameter before deletion statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 08:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-delete/m-p/1600865#M269776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T08:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-delete/m-p/1600866#M269777</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;If possible,you can restrict the internal table by selecting only the records satisfying the parameter given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from db into table i_iflot where objnr in r_objnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 08:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-delete/m-p/1600866#M269777</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-10-13T08:33:06Z</dc:date>
    </item>
  </channel>
</rss>

