<?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 entries from internal table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550519#M1429479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have 2 internal tables ITAB1 and ITAB2 with different entries.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data: ITAB2 type table of TAB2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TAB2&lt;/STRONG&gt; is standard database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to delete entries from &lt;STRONG&gt;ITAB1&lt;/STRONG&gt; where &lt;STRONG&gt;TAB2-FIELD&lt;/STRONG&gt; is not blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAB2-FIELD is not present in TAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jan 2010 05:32:08 GMT</pubDate>
    <dc:creator>Rushikesh_Yeole</dc:creator>
    <dc:date>2010-01-29T05:32:08Z</dc:date>
    <item>
      <title>delete entries from internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550517#M1429477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have 2 internal tables ITAB1 and ITAB2 with different entries.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data: ITAB2 type table of TAB2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TAB2&lt;/STRONG&gt; is standard database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to delete entries from &lt;STRONG&gt;ITAB1&lt;/STRONG&gt; where &lt;STRONG&gt;TAB2-FIELD&lt;/STRONG&gt; is not blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 05:29:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550517#M1429477</guid>
      <dc:creator>Rushikesh_Yeole</dc:creator>
      <dc:date>2010-01-29T05:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: delete entries from internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550518#M1429478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Press F1 on Delete syntax&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 05:30:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550518#M1429478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-29T05:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: delete entries from internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550519#M1429479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have 2 internal tables ITAB1 and ITAB2 with different entries.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data: ITAB2 type table of TAB2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TAB2&lt;/STRONG&gt; is standard database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to delete entries from &lt;STRONG&gt;ITAB1&lt;/STRONG&gt; where &lt;STRONG&gt;TAB2-FIELD&lt;/STRONG&gt; is not blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAB2-FIELD is not present in TAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 05:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550519#M1429479</guid>
      <dc:creator>Rushikesh_Yeole</dc:creator>
      <dc:date>2010-01-29T05:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: delete entries from internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550520#M1429480</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;there has to be atleast something common.&lt;/P&gt;&lt;P&gt;the 2 database tables fromm where you populated the internal table has to have something common betweeen them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 05:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550520#M1429480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-29T05:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: delete entries from internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550521#M1429481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DELETE ADJACENT DUPLICATE ENTRIES FROM TAB1 COMPARING&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 05:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550521#M1429481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-29T05:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: delete entries from internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550522#M1429482</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 will need common fields in table itab1 and itab2. As per my understanding, table itab2 is having structure of standard tble tab2. And internal table itab1 is of some different structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in order to delete entries from itab1 based on itab2-field i.e. tab2-field, you need releation between two tables. There must be some common fields in itab1 and itab2. You will have to loop at table itab2 and read table itab1 with the key fields and then use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab2-field is blank.&lt;/P&gt;&lt;P&gt; delete itab1 index sy-tabix.&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;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 05:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550522#M1429482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-29T05:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: delete entries from internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550523#M1429483</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;There must be some link between the two tables..&lt;/P&gt;&lt;P&gt;If primary key of table TAB2 is present in TAB1&lt;/P&gt;&lt;P&gt;Then you can go ahead like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  common_field&amp;lt;preferably primary key&amp;gt; INTO&lt;/P&gt;&lt;P&gt;	table itab3 FROM TAB2&lt;/P&gt;&lt;P&gt;	WHERE TAB2-FIELD NE space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB3 into wa_itab3.&lt;/P&gt;&lt;P&gt;DELETE ITAB1 WHERE common_field EQ wa_itab1-common_field.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 06:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-internal-table/m-p/6550523#M1429483</guid>
      <dc:creator>Rocky1</dc:creator>
      <dc:date>2010-01-29T06:03:11Z</dc:date>
    </item>
  </channel>
</rss>

