<?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: DB update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/db-update/m-p/4376023#M1041122</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;Use the Update statment :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  UPDATE ztable SET augru = vbap-mvgr1
      WHERE vbeln EQ t_vbak-vbeln.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2008 07:51:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-27T07:51:40Z</dc:date>
    <item>
      <title>DB update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/db-update/m-p/4376022#M1041121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hye Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose there are 8 colums in DB table and all are non-empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to alter only last 3 coloums, without disturbing the first 3. Only first column is the primary key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible only by using either update or modify, without a Select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want to use Select Query for fetching the data, instead have to update the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sentil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/db-update/m-p/4376022#M1041121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T07:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: DB update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/db-update/m-p/4376023#M1041122</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;Use the Update statment :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  UPDATE ztable SET augru = vbap-mvgr1
      WHERE vbeln EQ t_vbak-vbeln.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:51:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/db-update/m-p/4376023#M1041122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T07:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: DB update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/db-update/m-p/4376024#M1041123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;déjà vu...different user, same question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/db-update/m-p/4376024#M1041123</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-08-27T07:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: DB update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/db-update/m-p/4376025#M1041124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  It can be done as below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE dbtab - set_expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;    [col1 = f1 col2 = f2 ... ] &lt;/P&gt;&lt;P&gt;    [col1 = col1 + f1 col2 = col2 + f2 ...] &lt;/P&gt;&lt;P&gt;    [col1 = col1 - f1 col2 = col2 - f2 ...] &lt;/P&gt;&lt;P&gt;    [(expr_syntax1) (expr_syntax2) ...] ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;1. ... col = f &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... col = col + f &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. ... col = col - f &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. ... (expr_syntax) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Change-expressions for the addition SET for the statement UPDATE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... col = f &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Assignment of a value. For col, columns of the database table given in target or in the stated view dbtab can be specified through a column identifier comp or dbtab&lt;SUB&gt;comp. For f, data objects of the ABAP program or a column identifier dbtab&lt;/SUB&gt;comp of another column in the database table can be used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement UPDATE assigns the content of f to the columns col in all the rows defined by the WHERE condition. If the data types are not compatible, conversion is as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During the assignment of a data object, the content - if necessary - is converted according to the conversion rules into the ABAP data type that corresponds to the data type of the column. An error during conversion causes an exception that cannot be handled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During the assignment of another column, the content - if necessary - is converted in the database system. The option of conversion and the conversion rules depend on the database system concerned. An error during conversion would - in releases prior to 6.10 - cause an exception that cannot be handled. In releases after 6.10, it causes an exception CX_SY_OPEN_SQL_DB that can be handled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if, for f, a column is specified, changes to this column that are made in the same UPDATE statement are not taken into consideration during the assignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a column col appears in several change-expressions, the last corresponding change-expression takes effect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... col = col + f &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Addition of a value. For col and f, the same applies as for the assignment of a value. col must have a numeric data type, however. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement UPDATE adds - in all the rows defined by the WHERE condition - the value of f to the content of the column col. Otherwise, the same rules apply as for the assignment of a value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3 &lt;/P&gt;&lt;P&gt;... col = col - f &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Subtraction of a value. For col and f, the same applies as for the assignment of a value. However, col must have a numeric data type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement UPDATE subtracts - in all the rows defined by the WHERE condition - the value of f from the content of the column col. Otherwise, the same rules apply as for the assignment of a value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 4 &lt;/P&gt;&lt;P&gt;... (expr_syntax) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Dynamic specification of change-expressions. A change- expression can be specified as a bracketed data object expr_syntax that - at execution of the statment - either contains the syntax of one or several static change-expressions or is initial. The data object expr_syntax can be a character-type data object or an internal table with character-type data type. The syntax in expr_syntax is - as in the ABAP Editor - independent of uppercase/lowercase lettering. In the specification of an internal table, the syntax can be split up into several lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rama.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: posimsetty ramamurthy on Aug 27, 2008 2:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/db-update/m-p/4376025#M1041124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T07:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: DB update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/db-update/m-p/4376026#M1041125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps Ram liked the question so much, that he wanted to practice answering it a little bit longer.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram has been doing quite a lot of practicing lately together with his friend &lt;SPAN __jive_macro_name="user" id="3852886"&gt;&lt;/SPAN&gt; as well...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 08:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/db-update/m-p/4376026#M1041125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T08:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: DB update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/db-update/m-p/4376027#M1041126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All of them are clones derived from Guest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 10:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/db-update/m-p/4376027#M1041126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T10:35:31Z</dc:date>
    </item>
  </channel>
</rss>

