<?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: modifying a database table from a dynamic internal table of same structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-database-table-from-a-dynamic-internal-table-of-same-structure/m-p/2288259#M498923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the database table name itself is known only at runtime. my requirement is like i need to modify one field of some 5-6 database tables. now i have two options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. create 5-6 internal tables of respective database structure types, fetch the records, modify the field, and then modify the database table from the respective internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. i want to maintain a database table having only one field as tabname which will hold the names of all the database tables for which that field is to be modified. in my program i do a select query on this table and get all the database table names into an internal table for which that field should be modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i then loop at that this itnernal table containing the names of the database tables for which that field needs to be modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for every record (which is nothing but the name of a database table) i create a dynamic internal table of this database table type, then fetch the data into this dynamic internal table, modify the field, and now i need to modify the database table from this dynamic internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using dynamic internal table because i dont want to code specifically for all the tables, this logic is a generalized one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know if any further information required.&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;AKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2007 15:38:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-15T15:38:40Z</dc:date>
    <item>
      <title>modifying a database table from a dynamic internal table of same structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-database-table-from-a-dynamic-internal-table-of-same-structure/m-p/2288255#M498919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;i have created a dynamic internal table and got some values in it.&lt;/P&gt;&lt;P&gt;i want to modity the database table from this dynamic internal table which is of the same structure as the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using the following syntax for which i am getting a dump.&lt;/P&gt;&lt;P&gt;please let me know how to fix this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify db_tablename from table &amp;lt;dynamic_int_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also can we do something like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 14:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-database-table-from-a-dynamic-internal-table-of-same-structure/m-p/2288255#M498919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T14:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a database table from a dynamic internal table of same structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-database-table-from-a-dynamic-internal-table-of-same-structure/m-p/2288256#M498920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.  I haven't found any examples where you can modify a database table directly from a dynamic table.  But I think you could try defining another internal table, moving the dynamic values to that table, and then using that to modify the database table.  So if the second internal table has the same structure as the dynamic table and the database table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab = &amp;lt;dynamic_itab&amp;gt;.&lt;/P&gt;&lt;P&gt;MODIFY db_table FROM TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt; - April King&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 15:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-database-table-from-a-dynamic-internal-table-of-same-structure/m-p/2288256#M498920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T15:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a database table from a dynamic internal table of same structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-database-table-from-a-dynamic-internal-table-of-same-structure/m-p/2288257#M498921</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;lt;b&amp;gt; Your question : i want to modity the database table from this dynamic internal table which is of the same structure as the database table.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, why is dynamic internal table required?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 15:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-database-table-from-a-dynamic-internal-table-of-same-structure/m-p/2288257#M498921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T15:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a database table from a dynamic internal table of same structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-database-table-from-a-dynamic-internal-table-of-same-structure/m-p/2288258#M498922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am sorry but the problem still remains. i cant define another internal table and then move the data from the dynamic internal table and then modify the data base table. the reason here is, i get the database table name at runtime only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its more like&lt;/P&gt;&lt;P&gt;modify (db_table) from table &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now what i have done here is after getting the data base table name at runtime i have created a dynamic table of this runtime data base table structure, and then after processing few records i want to modify the database table (which also i got at runtime) from this dynamic internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now creating an internal table of structure which is known at runtime is the same as dynamic internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know in case of more clarifications required.&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;AKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 15:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-database-table-from-a-dynamic-internal-table-of-same-structure/m-p/2288258#M498922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T15:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a database table from a dynamic internal table of same structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-database-table-from-a-dynamic-internal-table-of-same-structure/m-p/2288259#M498923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the database table name itself is known only at runtime. my requirement is like i need to modify one field of some 5-6 database tables. now i have two options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. create 5-6 internal tables of respective database structure types, fetch the records, modify the field, and then modify the database table from the respective internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. i want to maintain a database table having only one field as tabname which will hold the names of all the database tables for which that field is to be modified. in my program i do a select query on this table and get all the database table names into an internal table for which that field should be modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i then loop at that this itnernal table containing the names of the database tables for which that field needs to be modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for every record (which is nothing but the name of a database table) i create a dynamic internal table of this database table type, then fetch the data into this dynamic internal table, modify the field, and now i need to modify the database table from this dynamic internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using dynamic internal table because i dont want to code specifically for all the tables, this logic is a generalized one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know if any further information required.&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;AKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 15:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-database-table-from-a-dynamic-internal-table-of-same-structure/m-p/2288259#M498923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T15:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a database table from a dynamic internal table of same structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-database-table-from-a-dynamic-internal-table-of-same-structure/m-p/2288260#M498924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Buddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any luck???&lt;/P&gt;&lt;P&gt;I am having the same problem..can u assit me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 15:16:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-database-table-from-a-dynamic-internal-table-of-same-structure/m-p/2288260#M498924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T15:16:17Z</dc:date>
    </item>
  </channel>
</rss>

