<?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 internal table - Urgent in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013278#M958913</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;How you want to delete ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is that using the whole record &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete table itab2 from wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2008 04:41:06 GMT</pubDate>
    <dc:creator>prasanth_kasturi</dc:creator>
    <dc:date>2008-06-19T04:41:06Z</dc:date>
    <item>
      <title>Delete internal table - Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013275#M958910</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;I have 2 int tables called it_final and it_z1log1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to delete the records from it_final using it_z1log1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;following statement is going to dump. Both table has same structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if it_z1log1[] is not initial.
delete it_final from it_z1log1.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 04:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013275#M958910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T04:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Delete internal table - Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013276#M958911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Use like this.&lt;/P&gt;&lt;P&gt;loop at itab1 into wa.&lt;/P&gt;&lt;P&gt;  delete itab2 from wa.&lt;/P&gt;&lt;P&gt;endloop.&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;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 04:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013276#M958911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T04:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Delete internal table - Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013277#M958912</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;&lt;/P&gt;&lt;P&gt; is there any field mismatch.....just check.....whats the dump which you are getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the character lenth of variables in oth the structures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 04:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013277#M958912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T04:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Delete internal table - Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013278#M958913</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;How you want to delete ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is that using the whole record &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete table itab2 from wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 04:41:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013278#M958913</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-06-19T04:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete internal table - Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013279#M958914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at it_final .
read table it_z1log1 with key xyz = it_final-xyz.
if sy-subrc = 0.
delete it_final.
continue.
endif.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vrithika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 04:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013279#M958914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T04:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Delete internal table - Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013280#M958915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_final into wa_final.
v_tabix = sy-tabix.
read table it_zlog1 into wa_zlog1 with key field1 = wa_final-field1.
if sy-subrc eq 0.
delete it_final index v_tabix.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 04:42:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013280#M958915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T04:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Delete internal table - Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013281#M958916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;Your question is quite incomplete.. What I have understood is that you want to delete the table IT_FINAL based on the table it_z1log1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you have to do is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: tabix type sy-tabix.
Loop at it_final.
tabix = sy-tabix.
Read table it_z1log1 with key = &amp;lt;key val&amp;gt;.
if sy-subrc = 0.
   delete it_final index tabix.
endif.
Endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 04:43:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013281#M958916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T04:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Delete internal table - Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013282#M958917</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;Does your internal tables have work area. If yes then it will delete only the entry present in the work area. Else write :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete it_final[] from it_z1log1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work, Give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit Kabra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 04:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013282#M958917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T04:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delete internal table - Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013283#M958918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use &lt;/P&gt;&lt;P&gt;loop at itab1 where itab1-value eq ' '.&lt;/P&gt;&lt;P&gt;  loop at itab2.&lt;/P&gt;&lt;P&gt;delete itab2 &lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nested loops &lt;/P&gt;&lt;P&gt;with where conditions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 04:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013283#M958918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T04:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Delete internal table - Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013284#M958919</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;see below example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_kna1 TYPE TABLE OF kna1 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       it_kna2 TYPE TABLE OF kna1 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM kna1 INTO TABLE it_kna1 UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt;SELECT * FROM kna1 INTO TABLE it_kna2 UP TO 30 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOOP AT it_kna1 .&lt;/STRONG&gt;  &lt;STRONG&gt;" you can use where condition also with the loop&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;DELETE TABLE it_kna2 FROM it_kna1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDLOOP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_kna1.&lt;/P&gt;&lt;P&gt;  WRITE : / it_kna1-kunnr.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : 'SECOND TABLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_kna2.&lt;/P&gt;&lt;P&gt;  WRITE  &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; it_kna2-kunnr.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 04:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013284#M958919</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-06-19T04:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Delete internal table - Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013285#M958920</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;We cannot delete internal table form other internal table , we can delete the contents on internal table from workarea.&lt;/P&gt;&lt;P&gt;Create a workarea for it_z1log1, example wa_it_z1log1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at it_final.
Read table it_z1log1 into wa_it_z1log1 with key abc = it_final-abc.
If sy-subrc eq 0.
Delete it_final from wa_it_z1log1.
Endif.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will surely work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz rewardi if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhanashri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 04:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-internal-table-urgent/m-p/4013285#M958920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T04:56:54Z</dc:date>
    </item>
  </channel>
</rss>

