<?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: diff b/w Insert, Update, Modify in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-insert-update-modify/m-p/2303624#M503732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx all, all useful answered has been rewarded......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2007 11:01:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-31T11:01:06Z</dc:date>
    <item>
      <title>diff b/w Insert, Update, Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-insert-update-modify/m-p/2303619#M503727</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;    can anyone give me a detailed differences b/w Update, Insert n Modify commands in Databs Tables along with the use of commit statement in all ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 05:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-insert-update-modify/m-p/2303619#M503727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T05:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w Insert, Update, Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-insert-update-modify/m-p/2303620#M503728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;MODIFY&lt;/P&gt;&lt;P&gt;... FROM { {wa} | {TABLE itab} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... FROM wa &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... FROM TABLE itab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A wa data object that is not table-type or an itab internal table can be specified after FROM. On the one hand the content of the data objects determines whether the line(s) are inserted or changed, and on the other hand, which values are inserted or used for changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT&lt;/P&gt;&lt;P&gt;... { {VALUES wa} &lt;/P&gt;&lt;P&gt;    | {FROM wa|{TABLE itab [ACCEPTING DUPLICATE KEYS]}} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... {VALUES wa} | {FROM wa} ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... FROM TABLE itab [ACCEPTING DUPLICATE KEYS] ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After FROM and VALUES, you can specify a non-table-type data object wa. After FROM, you can also specify an internal table itab. The contents of the row(s) to be inserted are taken from these data objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE&lt;/P&gt;&lt;P&gt;... { {SET set_expression [WHERE sql_cond]} &lt;/P&gt;&lt;P&gt;    | {FROM wa|{TABLE itab}} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... SET set_expression [WHERE sql_cond] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... FROM wa &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. ... FROM TABLE itab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The specifications in source define which rows and columns are changed. Either individual columns are changed using the addition SET or entire rows are overwritten using the addition FROM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After FROM, either a non-table-type data object wa or an internal table itab can be specified. The content of these objects determines - on the one hand - which row(s) is/are changed, and - on the other hand - which values are used to overwrite the row(s). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out these related threads&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3254405"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="292577"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 05:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-insert-update-modify/m-p/2303620#M503728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T05:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w Insert, Update, Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-insert-update-modify/m-p/2303621#M503729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit , &lt;/P&gt;&lt;P&gt; The diffrence is as below.&lt;/P&gt;&lt;P&gt;1. Update : Tries to update a record in the database , if such a record is not found an error is generated.&lt;/P&gt;&lt;P&gt;2. Insert : Inserts a new record in the database.&lt;/P&gt;&lt;P&gt;3. Modify : Tries to modify a records in the database , if such a record is not found then a new records is inserted into the databse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Commit statement is used to commit the work and finsh the Logical Unit of Work(LuW) and hence update the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 05:54:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-insert-update-modify/m-p/2303621#M503729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T05:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w Insert, Update, Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-insert-update-modify/m-p/2303622#M503730</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;&amp;lt;b&amp;gt;Upadte&amp;lt;/b&amp;gt;: If the key record is existing in the DBtable the key record will update success fully then sy-subrc will eq 0 or else update fails and sy-subrc will non-zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Modify&amp;lt;/b&amp;gt;: if the key record is existing in the DBtable then the the record will update/modify else if the key record is not existing then it will insert the new record&lt;/P&gt;&lt;P&gt;in dbtable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;'Insert'&amp;lt;/b&amp;gt; will add a new record or a new row into the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;A COMMIT statement&amp;lt;/b&amp;gt; ( commit_statement) terminates the current transaction and starts a new one &amp;lt;commit_statement&amp;gt; ::= COMMIT [WORK] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The commit statement terminates the current transaction. This means that the modifications executed within the transaction are recorded and are thus visible to concurrent users as well.&lt;/P&gt;&lt;P&gt;The COMMIT statement implicitly opens a new transaction. Any locks set within the new transaction are assigned to this transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check these links&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1729566"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1280539"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 05:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-insert-update-modify/m-p/2303622#M503730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T05:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w Insert, Update, Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-insert-update-modify/m-p/2303623#M503731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Insert: inserts new record in the database&lt;/P&gt;&lt;P&gt;update :  updates the existing record int he database, if that particular record is not there it give error.&lt;/P&gt;&lt;P&gt;Modify : modifies a record in the database , if that particular record is not there  then a new record is added into the databse.&lt;/P&gt;&lt;P&gt;use of Insert in different ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert into a database table &lt;/P&gt;&lt;P&gt;- INSERT INTO dbtab [CLIENT SPECIFIED] VALUES wa. &lt;/P&gt;&lt;P&gt;INSERT INTO (dbtabname) [CLIENT SPECIFIED] VALUES wa. &lt;/P&gt;&lt;P&gt;- INSERT dbtab [CLIENT SPECIFIED]. &lt;/P&gt;&lt;P&gt;INSERT *dbtab [CLIENT SPECIFIED]. &lt;/P&gt;&lt;P&gt;INSERT (dbtabname) [CLIENT SPECIFIED] ... . &lt;/P&gt;&lt;P&gt;- INSERT dbtab [CLIENT SPECIFIED] FROM TABLE itab. &lt;/P&gt;&lt;P&gt;INSERT (dbtabname) [CLIENT SPECIFIED] FROM TABLE itab. &lt;/P&gt;&lt;P&gt;Insert into an internal table &lt;/P&gt;&lt;P&gt;- INSERT [wa INTO|INITIAL LINE INTO] itab [INDEX idx]. &lt;/P&gt;&lt;P&gt;INSERT LINES OF itab1 [FROM idx1] [TO idx2] INTO itab2 &lt;/P&gt;&lt;P&gt;[INDEX idx3]. &lt;/P&gt;&lt;P&gt;Insert into a field group &lt;/P&gt;&lt;P&gt;- INSERT f1 f2 ... INTO fg. &lt;/P&gt;&lt;P&gt;Insert a program &lt;/P&gt;&lt;P&gt;- INSERT REPORT prog FROM itab. &lt;/P&gt;&lt;P&gt;Insert text elements &lt;/P&gt;&lt;P&gt;- INSERT TEXTPOOL prog ...FROM itab ...LANGUAGE lg. &lt;/P&gt;&lt;P&gt;Modify:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change a database table &lt;/P&gt;&lt;P&gt;- MODIFY dbtab. &lt;/P&gt;&lt;P&gt;MODIFY *dbtab. &lt;/P&gt;&lt;P&gt;MODIFY (dbtabname) ... . &lt;/P&gt;&lt;P&gt;- MODIFY dbtab FROM TABLE itab. &lt;/P&gt;&lt;P&gt;MODIFY (dbtabname) FROM TABLE itab. &lt;/P&gt;&lt;P&gt;- MODIFY dbtab VERSION vers. &lt;/P&gt;&lt;P&gt;MODIFY *dbtab VERSION vers. &lt;/P&gt;&lt;P&gt;Change an internal table &lt;/P&gt;&lt;P&gt;- MODIFY itab [FROM wa] [INDEX idx]. &lt;/P&gt;&lt;P&gt;Change a list line &lt;/P&gt;&lt;P&gt;- MODIFY LINE n. &lt;/P&gt;&lt;P&gt;- MODIFY LINE n OF CURRENT PAGE. &lt;/P&gt;&lt;P&gt;- MODIFY LINE n OF PAGE m. &lt;/P&gt;&lt;P&gt;- MODIFY CURRENT LINE. &lt;/P&gt;&lt;P&gt;Change the attributes of a screen field &lt;/P&gt;&lt;P&gt;- MODIFY SCREEN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. UPDATE dbtab SET s1 ... sn. &lt;/P&gt;&lt;P&gt;2. UPDATE dbtab. or &lt;/P&gt;&lt;P&gt;UPDATE *dbtab. or &lt;/P&gt;&lt;P&gt;UPDATE (dbtabname) ... . &lt;/P&gt;&lt;P&gt;3. UPDATE dbtab FROM TABLE itab. or &lt;/P&gt;&lt;P&gt;UPDATE (dbtabname) FROM TABLE itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 06:02:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-insert-update-modify/m-p/2303623#M503731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T06:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: diff b/w Insert, Update, Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-insert-update-modify/m-p/2303624#M503732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx all, all useful answered has been rewarded......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 11:01:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-insert-update-modify/m-p/2303624#M503732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T11:01:06Z</dc:date>
    </item>
  </channel>
</rss>

