<?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: Database Table Updation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948640#M1153989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the DB table design and find if you are using unique primary keys or not..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sandeep Kumar on Dec 10, 2008 4:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Dec 2008 10:37:04 GMT</pubDate>
    <dc:creator>Sandeep_Panghal</dc:creator>
    <dc:date>2008-12-10T10:37:04Z</dc:date>
    <item>
      <title>Database Table Updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948639#M1153988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the MODIFY statement in my program to insert/update records in the Database table. Initially it used to insert all 5 records from my excel sheet into the database table. But when i converted a key field of the database table into a non-key field, only one record ( last one ) of the Excel sheet gets updated. Kindly let me know as to why is this happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;removed_by_moderator&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;frank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Dec 10, 2008 11:47 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 10:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948639#M1153988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T10:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Database Table Updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948640#M1153989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the DB table design and find if you are using unique primary keys or not..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sandeep Kumar on Dec 10, 2008 4:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 10:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948640#M1153989</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2008-12-10T10:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Database Table Updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948641#M1153990</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 you don´t define it as an key and you have allways the same field in the excel-shield, sap identify it as the same record and update it instead of insert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 10:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948641#M1153990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T10:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Database Table Updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948642#M1153991</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;What doesn "But when i converted a key field of the database table into a non-key field" mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the problem is here, check all values of the keys: u make sure they are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 10:38:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948642#M1153991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T10:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Database Table Updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948643#M1153992</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 you have one primary key you can have only one reocrd for each unique value&lt;/P&gt;&lt;P&gt;if you have 2 primary key fields you can have n number of records for the first field as long as the value of second field is unique. and it goes on so.&lt;/P&gt;&lt;P&gt;if you have 3 primary key fields you can have n number of records for the first 2 fields as long as the value of 3 key field is unique and it goes on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check key field combination carefully&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 10:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948643#M1153992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T10:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Database Table Updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948644#M1153993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Frank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There should be two ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) MODIFY &amp;lt;table&amp;gt; from TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.)MODIFY DBTAB/ (DBTAB) FROM WA/ITAB.&lt;/P&gt;&lt;P&gt;(DBTAB) -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;represents dbtab at runtime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines. &lt;/P&gt;&lt;P&gt;System fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 10:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948644#M1153993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T10:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Database Table Updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948645#M1153994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i meant was initially the ZTABLE that i am updating had PERNR as the key field. Later on, i changed PERNR to a non-key field and this occured. What could be the problem with that??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 10:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948645#M1153994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T10:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Database Table Updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948646#M1153995</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;So now which is/are the key fields for your ZTABLE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If now there's only MANDT as key field u can store only one record: that could explain why u can update the data of the last record of your file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 10:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-updation/m-p/4948646#M1153995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T10:57:17Z</dc:date>
    </item>
  </channel>
</rss>

