<?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 Difference between in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436688#M825299</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;       can anybody say me the difference between &lt;STRONG&gt;INSERT, UPDATE, MODIFY&lt;/STRONG&gt;  commands while performing in &lt;STRONG&gt;Database Table&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Nagulan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2008 06:58:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-19T06:58:38Z</dc:date>
    <item>
      <title>Difference between</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436688#M825299</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;       can anybody say me the difference between &lt;STRONG&gt;INSERT, UPDATE, MODIFY&lt;/STRONG&gt;  commands while performing in &lt;STRONG&gt;Database Table&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Nagulan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 06:58:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436688#M825299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T06:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436689#M825300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INSERT - Add a new record into the database table. &lt;/P&gt;&lt;P&gt;MODIFY - If record is available it modifies otherwise it wont modify. &lt;/P&gt;&lt;P&gt;UPDATE - If record is available its update the record otherwise it creates a new record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if Helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 07:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436689#M825300</guid>
      <dc:creator>former_member609120</dc:creator>
      <dc:date>2008-02-19T07:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436690#M825301</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 will the add new  record into table at any position&lt;/P&gt;&lt;P&gt;update will modify the record into the table if exist if not present it will insert new record&lt;/P&gt;&lt;P&gt;modify will modify existing record only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nandini P on Feb 19, 2008 8:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 07:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436690#M825301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T07:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436691#M825302</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----u can insert anywhere in the table  by giving the index.&lt;/P&gt;&lt;P&gt;INSERT wa_knc1 INTO it_knc1 INDEX 3.&lt;/P&gt;&lt;P&gt;modify---this will modify the existing record and place the new values.&lt;/P&gt;&lt;P&gt; MODIFY it_knc1 FROM wa_knc1 INDEX 1.&lt;/P&gt;&lt;P&gt;update: this will update in the dtabase table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 07:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436691#M825302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T07:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436692#M825303</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;INSERT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Adds new records to a database table (see relational database). You can specify the name of the database table either directly in the program in the form dbtab or at runtime as the contents of the field dbtabname. In either case, the database table must be declared in the ABAP Dictionary. You can only insert data using a view if the view refers to a single table and has the maintenance status "No restriction" 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. However, if you use the CLIENT SPECIFIED addition, you can switch off the automatic client handling. This enables you to enter data for any client in a cross-client table, not just in the client in which you are logged on. In this case, the client field is treated like a normal field to which you can assign a value in the work area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE:&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Updates values in a database table (see Relational Databases ). You can specify the name of the database table either directly in the form dbtab or at runtime as contents of the field dbtabname. In both cases, the table must be known to the ABAP Dictionary. Normally, lines are updated only in the current client. Data can only be updated using a view if the view refers to a single table and was created in the ABAP Dictionary with the maintenance status "No restriction". &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;Effect &lt;/P&gt;&lt;P&gt;Inserts new lines or updates existing lines in a database table (s. relational database). If a line with the specified primary key already exists, an UPDATE is executed. Otherwise, an INSERT is performed. You can specify the name of the database table either in the program itself in the form MODIFY dbtab ... or at runtime as the contents of the field dbtabname in the form MODIFY (dbtabname) ... . In both cases, the database table must be defined in the ABAP Dictionary. Normally, records are inserted or updated only in the current client. Data can only be inserted or updated using a view, if the view refers to a single table and was created in the ABAP 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 SY-DBCNT contains the number of edited lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code is set as follows: &lt;/P&gt;&lt;P&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;Update Modify Insert stmts we use when we want to do some change / Insertion&lt;/P&gt;&lt;P&gt;(1) to database table from internal table or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) from work area to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( AA ) Update &lt;/P&gt;&lt;P&gt;If the intended record in the internal table is found in databse table means it will just update that record.&lt;/P&gt;&lt;P&gt;syntax to update database table from itab:::::&lt;/P&gt;&lt;P&gt;UPDATE dbtab FROM TABLE itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes to lines made with the UPDATE command only becomefinal after a database commit &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without using internal table we can update database table directly as shown below:::::::::::::::::::::&lt;/P&gt;&lt;P&gt;TABLES SFLIGHT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE SFLIGHT SET SEATSOCC = SEATSOCC + 3 &lt;/P&gt;&lt;P&gt;WHERE CARRID = 'LH' AND &lt;/P&gt;&lt;P&gt;CONNID = '0400' AND &lt;/P&gt;&lt;P&gt;FLDATE = '19950228'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( BB ) Modify is used to insert new record if the record doesnt exist in datbase table.system check this on primary key basis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the intended record in the internal table is found in databse table means it will just update that record.So here its equal to UPDATE stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For changes to database table we use syntax as below ::::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY DatabaseTable FROM TABLE itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For changes to Internal table we use syntax as below ::::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY itab FROM wa INDEX idx. &lt;/P&gt;&lt;P&gt;[TRANSPORTING f1 ... fn WHERE cond]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( CC ) Insert stmt is used to insert New records into databse table from internal table or to internal table from work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, data is only inserted in the current client. However, ifyou use the CLIENT SPECIFIED addition, you can switch off theautomatic client handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot insert a table line if the table alreadycontains a record with the same primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax::::::::::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO dbtab CLIENT SPECIFIED VALUES wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT (dbtabname) CLIENT SPECIFIED FROM TABLE itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Adding customer "Robinson" to client 002: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES SCUSTOM. &lt;/P&gt;&lt;P&gt;SCUSTOM-MANDT = '002'. &lt;/P&gt;&lt;P&gt;SCUSTOM-ID = '12400177'. &lt;/P&gt;&lt;P&gt;SCUSTOM-NAME = 'Robinson'. &lt;/P&gt;&lt;P&gt;SCUSTOM-POSTCODE = '69542'. &lt;/P&gt;&lt;P&gt;SCUSTOM-CITY = 'Heidelberg'. &lt;/P&gt;&lt;P&gt;SCUSTOM-CUSTTYPE = 'P'. &lt;/P&gt;&lt;P&gt;SCUSTOM-DISCOUNT = '003'. &lt;/P&gt;&lt;P&gt;SCUSTOM-TELEPHONE = '01234/56789'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO SCUSTOM CLIENT SPECIFIED VALUES SCUSTOM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 10:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436692#M825303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T10:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436693#M825304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Insert&lt;/STRONG&gt; : Inserting the new record.&lt;/P&gt;&lt;P&gt;               New data is added to the data base&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt; : Updating the already existing record&lt;/P&gt;&lt;P&gt;                  Here already some data is there, but we are doing &lt;/P&gt;&lt;P&gt;                    some updates or changes on that data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Modify&lt;/STRONG&gt; : Modifying the existing structure.&lt;/P&gt;&lt;P&gt;                  Data base table has some structure, here we are &lt;/P&gt;&lt;P&gt;                    adding or deleting or editing that structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 17:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436693#M825304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T17:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436694#M825305</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;Insert : Add a new record or new row  into the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update : If the record is available it updates the record, otherwise it creates a new record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify : If  record is available it modifies , otherwise it wont&lt;/P&gt;&lt;P&gt;modify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 07:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436694#M825305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T07:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436695#M825306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INSERT : It inserts a new record into the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE : It updates the existing record in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY: It works both like insert and update&lt;/P&gt;&lt;P&gt;              if record is not present it inserts the record&lt;/P&gt;&lt;P&gt;              if record is already there it updates it accordingly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 11:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436695#M825306</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-03-27T11:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436696#M825307</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;Insert is used to insert the records.&lt;/P&gt;&lt;P&gt;Update is to change the existing records.&lt;/P&gt;&lt;P&gt;Modify is for both insert aswellas update. if the record exists then it will update else it will create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;: You can use &lt;STRONG&gt;INSERT&lt;/STRONG&gt; ,&lt;STRONG&gt;MODIFY&lt;/STRONG&gt; for  both internal tables and database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 15:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436696#M825307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T15:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436697#M825308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai nagulan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT -&amp;gt; is used for insert new recodrds into the database.&lt;/P&gt;&lt;P&gt;UPDATE-&amp;gt; is used to update the existing records which satisfy the condition given by using SET.&lt;/P&gt;&lt;P&gt;MODIFY-&amp;gt; is working as both INSERT + UPDATE functionalities which,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ( i )   Creates a new record and insert into database table if no corresponding record exists in it and&lt;/P&gt;&lt;P&gt;      ( ii )  Change the existing record if the corresponding record exists in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards points    if it is useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANH YOU&lt;/P&gt;&lt;P&gt;PRASAD GVK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 18:08:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436697#M825308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T18:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436698#M825309</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;INSERT - It adds a new record from the internal table into the &lt;/P&gt;&lt;P&gt;               database table. &lt;/P&gt;&lt;P&gt;MODIFY - If record is available it modifies in the database       &lt;/P&gt;&lt;P&gt;               otherwise it wont modify. &lt;/P&gt;&lt;P&gt;UPDATE - If record is available its update the record otherwise it creates a new record and acts as INSERT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;AMK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if Useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 20:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between/m-p/3436698#M825309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T20:47:20Z</dc:date>
    </item>
  </channel>
</rss>

