<?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: Modify a databsae table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115126#M107191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, if your table has a composite key and if one of the key paramters that you pass in the modify statement is initial/null then it will fail!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2006 21:25:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-11T21:25:40Z</dc:date>
    <item>
      <title>Modify a databsae table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115119#M107184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; If we use Modify for a row which is existing in database table, it will change the row and work as UPDATE.&lt;/P&gt;&lt;P&gt; If row is not exisitng in table , it will add to table and in this case it will work as INSERT.&lt;/P&gt;&lt;P&gt; so,both case SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt; Can you please tell me in which case SY-SUBRC = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 20:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115119#M107184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T20:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a databsae table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115120#M107185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are modifying from an internal table, it means that one or more of the lines from the internal table could not be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 20:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115120#M107185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T20:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a databsae table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115121#M107186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not internal table , Modify any Databse table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 20:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115121#M107186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T20:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a databsae table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115122#M107187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pramod,&lt;/P&gt;&lt;P&gt;  When you are modifying a Database table from internal table.&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;All lines were successfully inserted or updated. &lt;/P&gt;&lt;P&gt;SY-SUBRC = 4, &lt;/P&gt;&lt;P&gt;One or more lines could not be inserted or updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 20:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115122#M107187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T20:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a databsae table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115123#M107188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SY_SUBRC = 4 If One or more lines could not be inserted or updated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot modify a line if there is already a line in the table with identical key field values in a UNIQUE index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unique Index &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an index is marked as a UNIQUE index, the table may only contain each combination of values for the fields specified in the table once. The index fields take on key attributes in this case, i.e. they already uniquely identify each record of the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The database system automatically checks that the value combinations for the index fields are unique and outputs an error message if this is not the case (e.g. in an INSERT operation). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SAP System, it could happen that an INSERT operation is ended with a SY-SUBRC = 4 (DUPLICATE RECORD) although the table obviously does not yet contain the specified value combination of the key fields. However, inserting the record would violate the uniqueness of the fields defined in the UNIQUE index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The accessing speed is not affected by whether or not an index is defined as a Unique index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: If a UNIQUE index is defined for a client-independent table, the client field must be included in the index since the SAP System assumes that client-independent uniqueness cannot be ensured for the table contents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 20:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115123#M107188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T20:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a databsae table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115124#M107189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider this situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are trying to use modify on table Ztable which has the key K1. And key K1 has a check table Zchecktable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now from your program, when you try to modify Ztable with key-parameter which is not found in the Zchecktable then your subrc value will not be equal to 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 21:22:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115124#M107189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T21:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a databsae table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115125#M107190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant modifying a database table from an internal table. The same would hold for single updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 21:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115125#M107190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T21:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a databsae table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115126#M107191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, if your table has a composite key and if one of the key paramters that you pass in the modify statement is initial/null then it will fail!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 21:25:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-databsae-table/m-p/1115126#M107191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T21:25:40Z</dc:date>
    </item>
  </channel>
</rss>

