<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509838#M1066628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your replies..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i need to delete the entries which are not specified on the selection screen..not the entries equal to the clientnumbers on the selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Oct 2008 09:24:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-06T09:24:24Z</dc:date>
    <item>
      <title>delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509834#M1066624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guyz,&lt;/P&gt;&lt;P&gt;How can i delete entries in the internal table  based on the selection screen , ie, i have range of clientnumber on the selection screen..i should delete all my entries in the internal table which are not equal to the client numbers based on the selection screen.. plz advise&lt;/P&gt;&lt;P&gt;declaration:&lt;/P&gt;&lt;P&gt;select-options:&lt;/P&gt;&lt;P&gt;s_client type ztable-client&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509834#M1066624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509835#M1066625</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;&lt;/P&gt;&lt;P&gt;loop at ztable where client in s_client .&lt;/P&gt;&lt;P&gt;  delete ztable.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;delete ztable where client in s_client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509835#M1066625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509836#M1066626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at s_client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete from internal where client = s_client-low.&lt;/P&gt;&lt;P&gt;&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;MD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509836#M1066626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509837#M1066627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables: vbak.
DATA: BEGIN OF itab OCCURS 0,
  vbeln LIKE vbak-vbeln,
  END OF itab.
 
SELECT-OPTIONS s_vbeln for vbak-vbeln.
 
DELETE itab WHERE NOT vbeln IN s_vbeln.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Omkaram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:22:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509837#M1066627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509838#M1066628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your replies..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i need to delete the entries which are not specified on the selection screen..not the entries equal to the clientnumbers on the selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509838#M1066628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509839#M1066629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;There are several ways you can delete the records,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way is :&lt;/P&gt;&lt;P&gt;Loop at &amp;lt;final_table&amp;gt;&lt;/P&gt;&lt;P&gt;  if &amp;lt;final_table&amp;gt; value = selection screen value Then&lt;/P&gt;&lt;P&gt;  delete 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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chidanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509839#M1066629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509840#M1066630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brightside,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow the logic below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: st_client like s_client.

loop at &amp;lt;your_internal_table&amp;gt;.
  read s_client into st_client where client eq &amp;lt;your_internal_table&amp;gt;-client.
  if sy-subrc ne 0.
     delete &amp;lt;your_internal_table&amp;gt;.
  endif.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509840#M1066630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509841#M1066631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;delete ztable where not client in s_client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:30:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete/m-p/4509841#M1066631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:30:20Z</dc:date>
    </item>
  </channel>
</rss>

