<?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: update n modify in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824893#M352051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u r trying to update a recored in data base table....if the record exists with the given conditions it will updates the recod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u r trying to Modify a recored in data base table....if the record exists with the given conditions it will updates the recod if it not found any record  then it will creates(inserts) a new record..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can say MODIFY = UPDATE + INSERT   (for easy remember).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jan 2007 10:36:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-11T10:36:37Z</dc:date>
    <item>
      <title>update n modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824887#M352045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the difference between modify and update ?giv me with example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 08:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824887#M352045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T08:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: update n modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824888#M352046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Modify:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;If the value of key fields in the internal table matches with the key fields values in database table,modify will update the existing entry.Otherwise,it will insert new entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Update:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;To update db table,it is mandatory that the value of key fields in internal table should match with database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link...&lt;/P&gt;&lt;P&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="1280580"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 08:07:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824888#M352046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T08:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: update n modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824889#M352047</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;UPDAT:  just updates the non-key fields if the record already exists in table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY: will update the record if it already exists other wise add the record in the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 08:10:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824889#M352047</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2007-01-11T08:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: update n modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824890#M352048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Update will only update the record in teh database table ,depending upon the condition u specified in the updata command.&lt;/P&gt;&lt;P&gt;it will fail if the record does not exists in the table..mean to say it wil return Sy-subrc as zero then.&lt;/P&gt;&lt;P&gt;2) Modify - will do an update if record exists otherwise it wil create a new record in db table if record does not exists.&lt;/P&gt;&lt;P&gt;Press F1 in ur code on Update or MOdify ,u will find more on tht&lt;/P&gt;&lt;P&gt;amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 08:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824890#M352048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T08:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: update n modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824891#M352049</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;Please go through the followong url &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u will get  more information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify &lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/modify_d.htm"&amp;gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/modify_d.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/update.htm"&amp;gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/update.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 08:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824891#M352049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T08:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: update n modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824892#M352050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. MODIFY is SMARTER compared to update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. When we use modify,&lt;/P&gt;&lt;P&gt;    and if the records with the same key does not exist,&lt;/P&gt;&lt;P&gt;   then it AUTOMATICALLY adds the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Whereas Update, simply updates the record if found,&lt;/P&gt;&lt;P&gt;   otherwise gives error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. So, for normal usage,&lt;/P&gt;&lt;P&gt;   its always better to use MODIFY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 08:28:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824892#M352050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T08:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: update n modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824893#M352051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u r trying to update a recored in data base table....if the record exists with the given conditions it will updates the recod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u r trying to Modify a recored in data base table....if the record exists with the given conditions it will updates the recod if it not found any record  then it will creates(inserts) a new record..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can say MODIFY = UPDATE + INSERT   (for easy remember).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 10:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824893#M352051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T10:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: update n modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824894#M352052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update will update the existing records in table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify will update the existing records aswell insert the new records if the Primary key doesnt match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 10:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824894#M352052</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2007-01-11T10:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: update n modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824895#M352053</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;Update statement change the records in database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify statement will insert the records if the same does not exist[thro' primary key values,it will check whether the record exists].If the record exists,it will change the records.Modify should be used if you are not sure about the record exists in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/modify_d.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/modify_d.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 10:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824895#M352053</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-01-11T10:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: update n modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824896#M352054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PLz check &lt;/P&gt;&lt;P&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="1280580"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Update database table command will insert a new entry. But MODIFY will check if record already exist, if it exist then it will modify existing record else it will insert new record in db table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details here is screenshot from F1 help -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT - Inserting Data in Database Tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants: &lt;/P&gt;&lt;P&gt;1. 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;2. INSERT dbtab [CLIENT SPECIFIED] FROM TABLE itab. oder &lt;/P&gt;&lt;P&gt;INSERT (dbtabname) [CLIENT SPECIFIED] FROM TABLE itab. &lt;/P&gt;&lt;P&gt;3. INSERT dbtab [CLIENT SPECIFIED]. oder &lt;/P&gt;&lt;P&gt;INSERT *dbtab [CLIENT SPECIFIED]. oder &lt;/P&gt;&lt;P&gt;INSERT (dbtabname) [CLIENT SPECIFIED] ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect Adds new records to a database table (see relational &lt;/P&gt;&lt;P&gt;database). You can specify the name of the database table &lt;/P&gt;&lt;P&gt;either directly in the program in the form dbtab or at runtime &lt;/P&gt;&lt;P&gt;as the contents of the field dbtabname. In either case, the &lt;/P&gt;&lt;P&gt;database table must be declared in the ABAP Dictionary. You &lt;/P&gt;&lt;P&gt;can only insert data using a view if the view refers to a &lt;/P&gt;&lt;P&gt;single table and has the maintenance status "No restriction" &lt;/P&gt;&lt;P&gt;in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, data is only inserted in the current client. &lt;/P&gt;&lt;P&gt;However, if you use the CLIENT SPECIFIED addition, you can &lt;/P&gt;&lt;P&gt;switch off the automatic client handling. This enables you to &lt;/P&gt;&lt;P&gt;enter data for any client in a cross-client table, not just in &lt;/P&gt;&lt;P&gt;the client in which you are logged on. In this case, the &lt;/P&gt;&lt;P&gt;client field is treated like a normal field to which you can &lt;/P&gt;&lt;P&gt;assign a value in the work area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY - Change a database table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. MODIFY dbtab. or &lt;/P&gt;&lt;P&gt;MODIFY *dbtab. or &lt;/P&gt;&lt;P&gt;MODIFY (dbtabname) ... .. &lt;/P&gt;&lt;P&gt;2. MODIFY dbtab FROM TABLE itab. or &lt;/P&gt;&lt;P&gt;MODIFY (dbtabname) FROM TABLE itab. &lt;/P&gt;&lt;P&gt;3. MODIFY dbtab VERSION vers. or &lt;/P&gt;&lt;P&gt;MODIFY *dbtab VERSION vers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect Inserts new lines or updates existing lines in a database &lt;/P&gt;&lt;P&gt;table (s. relational database). If a line with the specified &lt;/P&gt;&lt;P&gt;primary key already exists, an UPDATE is executed. Otherwise, &lt;/P&gt;&lt;P&gt;an INSERT is performed. You can specify the name of the &lt;/P&gt;&lt;P&gt;database table either in the program itself in the form MODIFY &lt;/P&gt;&lt;P&gt;dbtab ... or at runtime as the contents of the field dbtabname &lt;/P&gt;&lt;P&gt;in the form MODIFY (dbtabname) ... . In both cases, the &lt;/P&gt;&lt;P&gt;database table must be defined in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;Normally, records are inserted or updated only in the current &lt;/P&gt;&lt;P&gt;client. Data can only be inserted or updated using a view, if &lt;/P&gt;&lt;P&gt;the view refers to a single table and was created in the ABAP &lt;/P&gt;&lt;P&gt;Dictionary with the maintenance status "No restriction". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY belongs to the Open SQL command set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the statement has been executed, the system field &lt;/P&gt;&lt;P&gt;SY-DBCNT contains the number of edited lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 19:14:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-n-modify/m-p/1824896#M352054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T19:14:18Z</dc:date>
    </item>
  </channel>
</rss>

