<?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: Reg:Delete in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698672#M306362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;I have 2 db tables and based on particular conditions i am retriving data into these 2 internal tables.The selection-screen contains fields date,werks as a range.if i give only one valu in the date ie. 09/04/2006 the data preior to this date is also retrieved how does this happen.Plz clarify&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Oct 2006 09:47:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-24T09:47:47Z</dc:date>
    <item>
      <title>Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698668#M306358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have retrived data from an DB table.From the retrieved entreis deleted entries where werks not in Plant on the screen.&lt;/P&gt;&lt;P&gt;for this i have used the code &lt;/P&gt;&lt;P&gt;delete itab where werks ne s_werks.&lt;/P&gt;&lt;P&gt;is this the corect code.Bcoz even though werks = s_werks the data from itab is gettin deleted.&lt;/P&gt;&lt;P&gt;here s_werks is a select-option field.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 09:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698668#M306358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T09:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698669#M306359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt; It is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete itab where werks not in s_werks. is correct.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 09:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698669#M306359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T09:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698670#M306360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ganesh,&lt;/P&gt;&lt;P&gt; Declare it in this way in your select statement ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select * &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        where  werks &amp;lt;b&amp;gt;in &amp;lt;/b&amp;gt; s_werks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and delete statement should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt;delete it_marc where werks not in s_werks. &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 09:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698670#M306360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T09:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698671#M306361</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;If possible,it is better to take needed records.So if possible,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select the records from db table which is given in screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from marc into table itab where werks in s_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise,the code should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab type standard table of marc.&lt;/P&gt;&lt;P&gt;tables marc.&lt;/P&gt;&lt;P&gt;select-options s_werks for marc-werks.&lt;/P&gt;&lt;P&gt;select * from marc into table itab.&lt;/P&gt;&lt;P&gt;delete itab where not werks in s_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points by clicking the star on the left of reply,if it helps as per SDN policy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 09:40:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698671#M306361</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-10-24T09:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698672#M306362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;I have 2 db tables and based on particular conditions i am retriving data into these 2 internal tables.The selection-screen contains fields date,werks as a range.if i give only one valu in the date ie. 09/04/2006 the data preior to this date is also retrieved how does this happen.Plz clarify&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 09:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698672#M306362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T09:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698673#M306363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    delete itab where werks ne s_werks.&lt;/P&gt;&lt;P&gt;    change to &lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;delete itab where not werks in s_werks.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 10:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698673#M306363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T10:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698674#M306364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;  Can you show the select statement?&lt;/P&gt;&lt;P&gt;If your select statement has something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where date &amp;lt;= s_date-low. &lt;/P&gt;&lt;P&gt;Then it would get all the dates before that.&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 10:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698674#M306364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T10:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698675#M306365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No the select stm is not like tht it is as follows&lt;/P&gt;&lt;P&gt;select   zchangedt zlocid matnr werks from db table into corresponding fields of itab2 for all entries in itab1 where ZCYLBARCD = ITAB1-BARCD.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  delete int_ITAB2 where not werks in s_werks[]. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 11:05:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698675#M306365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T11:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698676#M306366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ganesh,&lt;/P&gt;&lt;P&gt;  As you can see, the where clause itself doesn't filter the data based on the date you enter in the selection screen.&lt;/P&gt;&lt;P&gt;Just entering some date in the selection screen doesn't filter the data.YOur select should have the where condition based on that date as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select zchangedt zlocid matnr werks from db table into corresponding fields of itab2 for all entries in itab1 where ZCYLBARCD = ITAB1-BARCD&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  and zchangedt in s_date.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make the highlighted change.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 11:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1698676#M306366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-24T11:09:22Z</dc:date>
    </item>
  </channel>
</rss>

