<?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/1680155#M299800</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; when you use the delete itab where werks not in s_werks, you don't need to loop the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just say:&lt;/P&gt;&lt;P&gt;delete itab where werks not in s_werks.&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>Mon, 23 Oct 2006 12:39:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-23T12:39:30Z</dc:date>
    <item>
      <title>Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680148#M299793</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 am retriving some values into an internal table from DBH table based on certain condition.After retrival i have to delete entries where werks not in Plant on the screen.here werks is a select-options field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reply&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 11:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680148#M299793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T11:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680149#M299794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assume that ITAB has the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete itab where werks in s_werks. "S_WERKS is the select option.&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>Mon, 23 Oct 2006 12:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680149#M299794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T12:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680150#M299795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DELETE ITAB WHERE NOT WERKS IN S_WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact it would be ideal if you can include the WHERE CLause to filter the plant in the SELECT statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 12:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680150#M299795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T12:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680151#M299796</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;&lt;/P&gt;&lt;P&gt;Get all Plants entered on selection screen into an internal table(ITAB1). Then loop to the actual table and check whether the Plant is falling in the internal table ITAB1. If so, then delete that entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 12:04:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680151#M299796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T12:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680152#M299797</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 pl dont select those records in the initial selection  using the following where condition &lt;/P&gt;&lt;P&gt; WHERE NOT werks in s_werks ( AND other conditions)  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or use the following for deletion :&lt;/P&gt;&lt;P&gt;&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;Pl reward if sounds good !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 12:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680152#M299797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T12:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680153#M299798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually i have looped at the internal table and placed the statement&lt;/P&gt;&lt;P&gt;delete itab where not werks in s_werks .&lt;/P&gt;&lt;P&gt;but the values are deleted even if werks = s_werks.&lt;/P&gt;&lt;P&gt;I have comented loop and checked even though it still does the same.Wht shall i do &lt;/P&gt;&lt;P&gt;Plz reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 12:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680153#M299798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T12:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680154#M299799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ganesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check that s_werks contains at leat 1 record.&lt;/P&gt;&lt;P&gt;werks = s_werks is not possible, if s_werks really is a range defined with SELECT-OPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete outside the loop!&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 12:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680154#M299799</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-10-23T12:37: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/1680155#M299800</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; when you use the delete itab where werks not in s_werks, you don't need to loop the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just say:&lt;/P&gt;&lt;P&gt;delete itab where werks not in s_werks.&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>Mon, 23 Oct 2006 12:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680155#M299800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T12:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680156#M299801</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;&lt;/P&gt;&lt;P&gt;I just dont know why output shows List contains no data.&lt;/P&gt;&lt;P&gt;when ever delete is fired though werks = s_werks it is getting deleted.and it is such a long code tht i cant post u.plz suggest wht may be the reasons why output cant be displayed if data is present in DB table.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 12:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680156#M299801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T12:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680157#M299802</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;Pl check how many records selected in the initial selection. U may use describe table command. Give break point there . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After deletion also check how many records are there , u may use describe table command. May be while deleting , its deleting all the records. Debug it.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 13:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-delete/m-p/1680157#M299802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T13:52:55Z</dc:date>
    </item>
  </channel>
</rss>

