<?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: deleting data from internal table based on parameter selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834522#M1784473</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;With delete options u can many options like CA (contains&amp;nbsp; any) CO (contains only) CP (contains patterns etc). U can use this facility to delete entries from internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards&lt;/P&gt;&lt;P&gt;Suneesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Nov 2013 08:59:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-11-08T08:59:28Z</dc:date>
    <item>
      <title>deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834508#M1784459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after fetching the data to it_mseg ,&lt;/P&gt;&lt;P&gt;i have declared one parameter for matnr in selection screen.&lt;/P&gt;&lt;P&gt;after fetching all records i want to delet all materials&amp;nbsp; which dont match with pr_matnr .&lt;/P&gt;&lt;P&gt;how to write this statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 06:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834508#M1784459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T06:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834509#M1784460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can write it as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE it_mseg WHERE matnr NE pr_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Priyesh Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 06:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834509#M1784460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T06:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834510#M1784461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can i put this in loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 06:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834510#M1784461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T06:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834511#M1784462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i write same but it shows all the data &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 06:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834511#M1784462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T06:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834512#M1784463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can put the NE in the selection statement itself where you fetch this material...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 06:43:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834512#M1784463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T06:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834513#M1784464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;You don't need to write it in Loop's.&lt;/P&gt;&lt;P&gt;Writing DELETE statement in LOOP ... END LOOP is not a good programming Practice.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Priyesh Shah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 06:44:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834513#M1784464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T06:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834514#M1784465</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;Did you try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop into ur itab(it_mseg) into wa_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if wa_msg-matnr ne pr_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DELETE it_mseg WHERE matnr ne pr_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 06:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834514#M1784465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T06:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834515#M1784466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 06:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834515#M1784466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T06:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834516#M1784467</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;Can you post your code here ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 06:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834516#M1784467</guid>
      <dc:creator>A-J-S</dc:creator>
      <dc:date>2013-11-08T06:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834517#M1784468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manisha,&lt;/P&gt;&lt;P&gt;This is a bad programming practice.&lt;/P&gt;&lt;P&gt;Do not delete any thing inside the LOOP...ENDLOOP.&lt;/P&gt;&lt;P&gt;only after your LOOP ... ENDLOOP operation is done try to delete the contents based on MATNR.&lt;/P&gt;&lt;P&gt;SORT the Table first based on matnr in ASCending order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 06:48:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834517#M1784468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T06:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834518#M1784469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Show me your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 06:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834518#M1784469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T06:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834519#M1784470</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;Why are you fetching unwanted data and then go for deleting it later ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its better to filter the records in the SELECT query itself rite.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &amp;lt;fields&amp;gt;&lt;/P&gt;&lt;P&gt;from MSEG&lt;/P&gt;&lt;P&gt;INTO TABLE it_mseg&lt;/P&gt;&lt;P&gt;where MATNR EQ pr_matnr.&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;Ajay Bose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 06:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834519#M1784470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T06:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834520#M1784471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is only for test purpose...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 07:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834520#M1784471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T07:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834521#M1784472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can do that, but with little modification&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Don't use DELETE statement in LOOP and ENDLOOP statement, instead set a flag if the condition is met.&lt;/P&gt;&lt;P&gt;Note:- If we use DELETEstatement in LOOP,&amp;nbsp; every time the statement is executed, it has to regenerate the index, which will effect the &lt;STRONG&gt;performance&lt;/STRONG&gt; if the records are more in the internal table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Then with DELETE statement delete all the records with the flag is set outside the LOOP.&lt;/P&gt;&lt;P&gt;&amp;nbsp; you can use this code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa_itab.&lt;/P&gt;&lt;P&gt;&amp;nbsp; w_tabx = sy-tabix.&lt;/P&gt;&lt;P&gt;&amp;nbsp; READ TABLE itab2 INTO wa_itab2 WITH KEY field = wa_itab-field.&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_itab-flag = 'X'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODIFY itab INDEX w_tabx FROM wa_itab TRANSPORTING flag.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&amp;nbsp; CLEAR w_tabx.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DELETE itab WHERE flag = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 08:49:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834521#M1784472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T08:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834522#M1784473</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;With delete options u can many options like CA (contains&amp;nbsp; any) CO (contains only) CP (contains patterns etc). U can use this facility to delete entries from internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards&lt;/P&gt;&lt;P&gt;Suneesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 08:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834522#M1784473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T08:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834523#M1784474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Yovish Bissessur wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop into ur itab(it_mseg) into wa_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if wa_msg-matnr ne pr_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DELETE it_mseg WHERE matnr ne pr_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the delete even though it is inside the loop will delete all records matching the condition in first attempt. i mean if you write the same loop outside the loop also behaves in the same because it is deleting everything instead you can use index to delete. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ manisha it is not a good practice to delete records in loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 09:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834523#M1784474</guid>
      <dc:creator>former_member183073</dc:creator>
      <dc:date>2013-11-08T09:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834524#M1784475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How all records will be deleted when this comparison is being made?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Loop into ur itab(it_mseg) into wa_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if wa_msg-matnr ne pr_matnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DELETE it_mseg WHERE matnr ne pr_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead the final internal table will have all values having matnr equal to pr_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;I guess this is the requirement of the person initially.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 10:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834524#M1784475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T10:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834525#M1784476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i meant, when the control reaches DELETE statement for the first time it will delete all the Records which satisfies the condition( where matnr NE pr_matnr). next time the control will never enter IF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 10:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834525#M1784476</guid>
      <dc:creator>former_member183073</dc:creator>
      <dc:date>2013-11-08T10:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834526#M1784477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 11:50:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834526#M1784477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T11:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: deleting data from internal table based on parameter selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834527#M1784478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes damn right.&lt;/P&gt;&lt;P&gt;Only once it will be done.&lt;/P&gt;&lt;P&gt;May be, the Exit command could be used to skip the loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 12:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-data-from-internal-table-based-on-parameter-selection/m-p/9834527#M1784478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-08T12:16:09Z</dc:date>
    </item>
  </channel>
</rss>

