<?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: Deletion from internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-from-internal-table/m-p/901276#M55241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SAP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have two possibilities here. Either you use a delete command from all the entries that meet the criteria (e.g. Delete from itab where field = 00000) or you have to make sure your index field has a value (it might be initial)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Feb 2005 19:03:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-02-25T19:03:01Z</dc:date>
    <item>
      <title>Deletion from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-from-internal-table/m-p/901275#M55240</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;  My requirement is that I have to delete the duplicate values before doing any manupilation of data.. so for this I have written the code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Deleting all the duplicate entries comparing group code, GL *&amp;amp; GL Suffix&lt;/P&gt;&lt;P&gt;  IT_INPUT_TEMP[] = IT_INPUT[].&lt;/P&gt;&lt;P&gt;  SORT IT_INPUT_TEMP BY GRCODE GL GLSUF.&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES&lt;/P&gt;&lt;P&gt;         FROM IT_INPUT_TEMP COMPARING GRCODE GL GLSUF.&lt;/P&gt;&lt;P&gt;Now with the remaining values in the internal table I have to check the 3rd field i.e. GLSUF &amp;amp; if it = '00000' (5 zeros)... i have to delete those entries...&lt;/P&gt;&lt;P&gt;For this I have written...&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Deleting enteries where the GL Suffix is zero.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF IT_INPUT_TEMP-GLSUF = 00000.               &lt;/P&gt;&lt;P&gt;    DELETE IT_INPUT_TEMP.                       &lt;/P&gt;&lt;P&gt;  ENDIF.                                                                                &lt;/P&gt;&lt;P&gt;It gives me a dump saying "Invalid_Table_Index"...&lt;/P&gt;&lt;P&gt;Prior to this I have also checked up by using Index function.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Deleting enteries where the GL Suffix is zero.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF IT_INPUT_TEMP-GLSUF = 00000.               &lt;/P&gt;&lt;P&gt;    DELETE IT_INPUT_TEMP index l_tabix.                       &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;Can anyone tell me where I am wrong??..&lt;/P&gt;&lt;P&gt;Thank You &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;-S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2005 18:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-from-internal-table/m-p/901275#M55240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-25T18:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Deletion from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-from-internal-table/m-p/901276#M55241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SAP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have two possibilities here. Either you use a delete command from all the entries that meet the criteria (e.g. Delete from itab where field = 00000) or you have to make sure your index field has a value (it might be initial)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2005 19:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-from-internal-table/m-p/901276#M55241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-25T19:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Deletion from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-from-internal-table/m-p/901277#M55242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi S,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code extract &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Deleting enteries where the GL Suffix is zero.
IF IT_INPUT_TEMP-GLSUF = 00000. 
  DELETE IT_INPUT_TEMP. 
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either this should be in a loop(which is unnecessary if all you are trying to achieve is deleting records), or you can try the option with 'WHERE' clause as mentioned in the above post.&lt;/P&gt;&lt;P&gt;DELETE FROM IT_INPUT_TEMP WHERE GLSUF = '00000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2005 19:24:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-from-internal-table/m-p/901277#M55242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-25T19:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Deletion from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-from-internal-table/m-p/901278#M55243</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;   The deletion is happeninn correctly now... I deleted the previous code &amp;amp; wrote..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DELETE IT_INPUT_TEMP WHERE GLSUF = 00000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's working fine now ... I hope it works the same way in production server...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;-S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2005 19:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deletion-from-internal-table/m-p/901278#M55243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-25T19:26:16Z</dc:date>
    </item>
  </channel>
</rss>

