<?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: insert and Modify in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227701#M1208517</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 are sure that no duplicate records exist in the table based on the primary keys, then &lt;STRONG&gt;INSERT&lt;/STRONG&gt; statement will be gud.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you are not sure then you should always use &lt;STRONG&gt;MODIFY&lt;/STRONG&gt; statement, else you will get a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link:-&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="1805992"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tarun Gambhir on Feb 27, 2009 3:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Feb 2009 10:00:52 GMT</pubDate>
    <dc:creator>I355602</dc:creator>
    <dc:date>2009-02-27T10:00:52Z</dc:date>
    <item>
      <title>insert and Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227700#M1208516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Is there any  different between INSERT and MODIFY in performance point .i.e. which one give the better performance if i want to insert record &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tarak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 09:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227700#M1208516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T09:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: insert and Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227701#M1208517</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 are sure that no duplicate records exist in the table based on the primary keys, then &lt;STRONG&gt;INSERT&lt;/STRONG&gt; statement will be gud.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you are not sure then you should always use &lt;STRONG&gt;MODIFY&lt;/STRONG&gt; statement, else you will get a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link:-&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="1805992"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tarun Gambhir on Feb 27, 2009 3:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 10:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227701#M1208517</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-02-27T10:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: insert and Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227702#M1208518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the deifference between Insert and Modify as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT - It inserts the record at the end.&lt;/P&gt;&lt;P&gt;MODIFY - It finds first whether there is existing record with the key fields. If yes, then it modifies key fields else it also adds the record at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to add the new record always, then you should use insert record as it is performancewwise better than modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 10:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227702#M1208518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T10:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: insert and Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227703#M1208519</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;There is no such similarity between these two:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT we use generally to insert the data at any particular index or row. if we dont specify any index than it works similar as APPEND (adding in last row).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY we use to modify the statement at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends you requirement u need to judge which one u should use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: Like uploading data in excel sheet u need to insert column heading in index 1 of you internal table, there u dont do changes in the first row by using modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the same way if ur adding leading zero in ur integer fields than u need to modify not deleting that row and inserting the same row with added leading zero in integer fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 10:25:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227703#M1208519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T10:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: insert and Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227704#M1208520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usage of any of the statements i.e. INSERT, UPDATE and MODIFY depends on the requirement. e.g. INSERT doesnt allow duplicate entry, hence it will throw an exception if you try to insert a record which already exists. Whereas, MODIFY checks for record existence then if it doesnt find any matching record then it INSERTs or it simply UPDATEs the existing record. UPDATE is used to update existing record. So, you need to decide as per your requirement which statement you are going to use. But as you can see MODIFY can perform two things i.e. either INSERT or UPDATE (based on record existence check), so it can be costly in terms of performance if you think that your requirement can be fulfilled only with INSERT or UPDATE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sambaran Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 10:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227704#M1208520</guid>
      <dc:creator>former_member755502</dc:creator>
      <dc:date>2009-02-27T10:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: insert and Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227705#M1208521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Is there any  different between INSERT and MODIFY in performance point .i.e. which one give the better performance if i want to insert record &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hard to say since you haven't said whether you are working with database tables or internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 14:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227705#M1208521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T14:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: insert and Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227706#M1208522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INSERT and MODIFY exist for Database and for internal table changes, but on he database both can insert lines/records. On internal tables MODIFY can only change the non-key fields of existing lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On database the MODIFY is a n Open SQL SQL statement and changed into an UPDATE or INSERT.&lt;/P&gt;&lt;P&gt;MODIFY is convenient for changes of a few records, when you don't know whether the reocrd is already there (must be updated) or not there (must be inserted).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For many records, i.e. performance-critical, you should use array changes i.e&lt;/P&gt;&lt;P&gt;  INSERT ... FROM TABLE itab&lt;/P&gt;&lt;P&gt;or UPDATE ... FROM TABLE itab.&lt;/P&gt;&lt;P&gt;The MODIFY is not suitable for array-changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 16:04:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227706#M1208522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T16:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: insert and Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227707#M1208523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Insert&lt;/STRONG&gt; is used if you want to &lt;STRONG&gt;add new entry&lt;/STRONG&gt; .. if you are sure that you always have new entry then use insert.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Modify&lt;/STRONG&gt; is used when you want to &lt;STRONG&gt;modify existing entry&lt;/STRONG&gt;, also it &lt;STRONG&gt;appends new entry&lt;/STRONG&gt; when entry does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of performance if you want to append new entry then use insert which will be faster because in case of modify it will first search for the entry in the table.. and then if it does not find then it will insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If requirement is only to add new entry then must use INSERT&lt;/STRONG&gt; (better performance marginally).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit Mohan Gupta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 13:45:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227707#M1208523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-09T13:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: insert and Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227708#M1208524</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;thanks for ur correction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shivraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ShivrajSinha on Apr 22, 2009 12:24 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 03:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227708#M1208524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T03:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: insert and Modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227709#M1208525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; insert statement is used to insert some data at any particular index bt modify statement is used to&lt;/P&gt;&lt;P&gt;&amp;gt;  make changes in already existing data,there is 1 more statement append wch is used to insert data &amp;gt; at d end so from performance point of view always use insert and not append.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please do me a favor, don't write about things where you know nothing, see other thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no APPEND on the database ... and the rest is also not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; insert some data at any particular index &lt;/P&gt;&lt;P&gt;actually the opposite is true,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT require workarea or tables, and can always use the primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 07:42:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-and-modify/m-p/5227709#M1208525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T07:42:30Z</dc:date>
    </item>
  </channel>
</rss>

