<?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: Dynamic record deletion from database table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598829#M268885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DELETE (dbtabname) FROM TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define (dbtabname) LIKE DD02L-tabname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: dbtabname LIKE dd02l-tabname.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Oct 2006 13:24:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-05T13:24:09Z</dc:date>
    <item>
      <title>Dynamic record deletion from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598826#M268882</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;I need to delete selected records from database table(dynamic names). Table names are being passed from main program with some of their field names. The record to be deleted from the database table is being decided based on the fields passed for the table and their contains passed from the main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to write dynamic where clause for DELETE statement directly.&lt;/P&gt;&lt;P&gt;So, I created a dynamic internal table and selected the records to be deleted in that internal table.&lt;/P&gt;&lt;P&gt;Now I want to use the syntax :&lt;/P&gt;&lt;P&gt;DELETE (dbtabname) FROM TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for "(dbtabname)", the system is recognising it as internal table.&lt;/P&gt;&lt;P&gt;When i use "DELETE FROM (table_name), it recognises "table_name" as database table.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;As i know &lt;/P&gt;&lt;P&gt;To specify the database table dynamically, we have to enter the following for &amp;lt;target&amp;gt;:&lt;/P&gt;&lt;P&gt;DELETE [FROM] (&amp;lt;name&amp;gt;) [CLIENT SPECIFIED] &amp;lt;lines&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help How should I delete entries from database table when i have the records to be deleted in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Surya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 13:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598826#M268882</guid>
      <dc:creator>surya_gupta3</dc:creator>
      <dc:date>2006-10-05T13:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic record deletion from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598827#M268883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DELETE (dbtabname) FROM TABLE itab.&lt;/P&gt;&lt;P&gt; will work. What error is it giving?&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>Thu, 05 Oct 2006 13:16:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598827#M268883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T13:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic record deletion from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598828#M268884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to my program logic, Insteed of "table_name" I am useing T_FLDS_AGTAB-TABNAME where T_FLDS_AGTAB containing table names and their field names (table passed from the main program).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message:&lt;/P&gt;&lt;P&gt;"T_FLDS_AGTAB" is a table without a header line and therefor no component called "TABNAME"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 13:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598828#M268884</guid>
      <dc:creator>surya_gupta3</dc:creator>
      <dc:date>2006-10-05T13:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic record deletion from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598829#M268885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DELETE (dbtabname) FROM TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define (dbtabname) LIKE DD02L-tabname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: dbtabname LIKE dd02l-tabname.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 13:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598829#M268885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T13:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic record deletion from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598830#M268886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did u check if T_FLDS_AGTAB has some data in it. May be you need to declare an internal table of type T_FLDS_AGTAB and populate it with required values and later use that delete statement. Because "DELETE dbtab FROM TABLE itab" is statement used to delete database tables only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Saikiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 13:27:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598830#M268886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T13:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic record deletion from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598831#M268887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks buddy, now the code is working.&lt;/P&gt;&lt;P&gt;There was a mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using t_flds_agtab, insteed of s_flds_agtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Still i need to test the code for its successful deletion from database table.&lt;/P&gt;&lt;P&gt;I will be back with issues soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Surya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 13:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598831#M268887</guid>
      <dc:creator>surya_gupta3</dc:creator>
      <dc:date>2006-10-05T13:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic record deletion from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598832#M268888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 13:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598832#M268888</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-10-05T13:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic record deletion from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598833#M268889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please award some points if it works...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 13:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598833#M268889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T13:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic record deletion from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598834#M268890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please let me know some more things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a subroutine to create a dynamic inter table and the reference variable is being passed to the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the calling program will get an address(as a CHANGING parameter passed while calling)&lt;/P&gt;&lt;P&gt;I want to know - after it comes out of the subroutine, will the address be meaningful. The memory area in which the dynamic internal table was created will we flushed after returning from the sub-routine ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Remember the GEETA's Quote - Do your DUTY !! without thinking of the RESULTS or PRIZES ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please dont mind buddy....just kidding...I will soon reward you with points.&lt;/P&gt;&lt;P&gt;Enjoy ABAP !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 13:48:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598834#M268890</guid>
      <dc:creator>surya_gupta3</dc:creator>
      <dc:date>2006-10-05T13:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic record deletion from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598835#M268891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That shuldn't happen ideally ( Think the value should remain intact even after coming out of the subroutine ) ..anyways if u post the exact code it will be much easier to sort out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 13:54:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-record-deletion-from-database-table/m-p/1598835#M268891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T13:54:47Z</dc:date>
    </item>
  </channel>
</rss>

