<?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: Reg: Modify,Insert and Update. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523670#M847553</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;&lt;/P&gt;&lt;P&gt;MODIFY for Database Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts or changes lines in database tables.&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;MODIFY &amp;lt;dbtab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;dbtab&amp;gt; FROM TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works like INSERT for database tables, if there is not yet a line in the table with the same primary key. Works like UPDATE if a line already exists with the same primary key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY for any Internal Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes the content of lines in internal tables of any type.&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;MODIFY TABLE &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt; [TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt;...] &lt;/P&gt;&lt;P&gt;                              [ASSIGNING &amp;lt;FS&amp;gt; | REFERENCE INTO &amp;lt;dref&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copies the work area &amp;lt;wa&amp;gt; into the line of the internal table with the same table key as &amp;lt;wa&amp;gt;. If you use ASSIGNING or INTO REFERENCE, field symbol &amp;lt;FS&amp;gt; refers to the modified line or the relevant data reference is stored in &amp;lt;dref&amp;gt; after the statement. You can use the TRANSPORTING addition to specify the exact components that you want to change. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt; TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt;... WHERE &amp;lt;logexp&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copies the work area &amp;lt;wa&amp;gt; into the line of the internal table for which the logical expression is true. In each comparison of the logical expression, the first operand must be a component of the line structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY for Index Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes the content of lines in index tables.&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;MODIFY &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt; [INDEX &amp;lt;idx&amp;gt;] [TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt;...] &lt;/P&gt;&lt;P&gt;                        [ASSIGNING &amp;lt;FS&amp;gt; | REFERENCE INTO &amp;lt;dref&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copies the work area &amp;lt;wa&amp;gt; into the line of the internal table with the index &amp;lt;idx&amp;gt;. If you omit the INDEX addition, you can only use the statement within a LOOP. In this case, you change the current loop line If you use ASSIGNING or INTO REFERENCE, field symbol &amp;lt;FS&amp;gt; refers to the modified line or the relevant data reference is stored in &amp;lt;dref&amp;gt; after the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY for Lists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes a list line.&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;MODIFY LINE &amp;lt;n&amp;gt; [INDEX &amp;lt;idx&amp;gt;] [OF CURRENT PAGE|OF PAGE &amp;lt;p&amp;gt;]&lt;/P&gt;&lt;P&gt;      |CURRENT LINE&lt;/P&gt;&lt;P&gt;      LINE FORMAT &amp;lt;option1&amp;gt; &amp;lt;option2&amp;gt;... &lt;/P&gt;&lt;P&gt;      FIELD VALUE &amp;lt;f1&amp;gt; [FROM &amp;lt;g1&amp;gt;] &amp;lt;f2&amp;gt; [FROM &amp;lt;g2&amp;gt;]... &lt;/P&gt;&lt;P&gt;      FIELD FORMAT &amp;lt;f1&amp;gt; &amp;lt;options1&amp;gt; &amp;lt;f2&amp;gt; &amp;lt;options2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes either line &amp;lt;n&amp;gt; on the current or specified list (or page), or the last line to be chosen. The exact nature of the change is specified in the additions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes the SCREEN table.&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;MODIFY SCREEN...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like changing an internal table. The system table SCREEN contains the names and attributes of all of the fields on the current 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;Changes entries in database tables.&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;UPDATE &amp;lt;dbtab&amp;gt; SET  &amp;lt;si&amp;gt; = &amp;lt;f&amp;gt; &lt;/P&gt;&lt;P&gt;                   |&amp;lt;si&amp;gt; = &amp;lt;s i&amp;gt; + &amp;lt;f&amp;gt; &lt;/P&gt;&lt;P&gt;                   |&amp;lt;si&amp;gt; = &amp;lt;s i&amp;gt; - &amp;lt;f&amp;gt; [WHERE &amp;lt;cond&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value in the column &amp;lt;si&amp;gt; is set to the value &amp;lt;f&amp;gt;, increases it by &amp;lt;f&amp;gt;, or decreases it by &amp;lt;f&amp;gt; for all lines selected. The WHERE clause specifies the lines that are changed. If you omit the WHERE clause, all lines are changed. &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;UPDATE &amp;lt;dbtab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;dbtab&amp;gt; FROM TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This deletes the line that has the same primary key as the work area &amp;lt;wa&amp;gt;, or deletes all the lines in the database that have the same primary key as a line in the internal table &amp;lt;itab&amp;gt;. The work area &amp;lt;wa&amp;gt; or the lines of the internal table &amp;lt;itab&amp;gt; must have at least the same length and alignment as the lines of the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT for Database Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts entries from database tables.&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 &amp;lt;dbtab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;dbtab&amp;gt; FROM TABLE &amp;lt;itab&amp;gt; [ACCEPTING DUPLICATE KEYS].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts one line from the work area &amp;lt;wa&amp;gt; or several lines from the internal table &amp;lt;itab&amp;gt; into the database table &amp;lt;dbtab&amp;gt;. The ACCEPTING DUPLICATE KEYS addition prevents a runtime error from occurring if two entries have the same primary key. Instead, it merely discards the duplicate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT for Field Groups&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defines the structure of field groups for extract datasets. &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 &amp;lt;f1&amp;gt;... &amp;lt;f n&amp;gt; INTO &amp;lt;fg&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Includes the fields &amp;lt;fi&amp;gt; in the field group &amp;lt;fg&amp;gt;, thus defining a line structure for an extract dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT for any Internal Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts lines from internal tables of any type.&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 &amp;lt;line&amp;gt;|LINES OF &amp;lt;jtab&amp;gt; [FROM &amp;lt;n1&amp;gt;] [TO &amp;lt;n 2&amp;gt;] &lt;/P&gt;&lt;P&gt;       INTO TABLE &amp;lt;itab&amp;gt;&lt;/P&gt;&lt;P&gt;       [ASSIGNING &amp;lt;FS&amp;gt; | REFERENCE INTO &amp;lt;dref&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts a line &amp;lt;line&amp;gt; or a set of lines from the internal table &amp;lt;jtab&amp;gt; into the internal table &amp;lt;itab&amp;gt;. If &amp;lt;jtab&amp;gt; is an index table, you can use the FROM and TO additions to restrict the lines inserted. If you use ASSIGNING or INTO REFERENCE, field symbol &amp;lt;FS&amp;gt; refers to the inserted line or the relevant data reference is stored in &amp;lt;dref&amp;gt; after the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT for Index Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts entries in index tables.&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 &amp;lt;line&amp;gt;|LINES OF &amp;lt;jtab&amp;gt; [FROM &amp;lt;n1&amp;gt;] [TO &amp;lt;n 2&amp;gt;] &lt;/P&gt;&lt;P&gt;  INTO &amp;lt;itab&amp;gt; [INDEX &amp;lt;idx&amp;gt;]&lt;/P&gt;&lt;P&gt;  [ASSIGNING &amp;lt;FS&amp;gt; | REFERENCE INTO &amp;lt;dref&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts a line &amp;lt;line&amp;gt; or a set of lines from the internal table &amp;lt;jtab&amp;gt; into the internal table &amp;lt;itab&amp;gt;before the line with the index &amp;lt;idx&amp;gt;. If &amp;lt;jtab&amp;gt; is an index table, you can use the FROM and TO additions to restrict the lines inserted. If you omit the INDEX addition, you can only use the statement within a LOOP. A new line containing values is inserted before the current line. If you use ASSIGNING or INTO REFERENCE, field symbol &amp;lt;FS&amp;gt; refers to the inserted line or the relevant data reference is stored in &amp;lt;dref&amp;gt; after the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT for Programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts ABAP programs into the program library. &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 REPORT &amp;lt;prog&amp;gt; FROM &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lines of the internal table &amp;lt;itab&amp;gt; are added to the program library as the program &amp;lt;prog&amp;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;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2008 04:09:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-03T04:09:21Z</dc:date>
    <item>
      <title>Reg: Modify,Insert and Update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523666#M847549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I want excact  Purpose of  Modify, Insert and Update . Rewards are helpful.&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;Narasimha Rao.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 03:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523666#M847549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T03:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Modify,Insert and Update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523667#M847550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;MODIFY&lt;/STRONG&gt; - Will update the table, if the data already exists, if NOT inserts new rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt; - Will update the table, errors out if the data is not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of MODIFY the sy-subrc is always 0 so you would't know whether the data is actually updated or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INSERT&lt;/STRONG&gt; - Inserting Data in Database Tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 03:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523667#M847550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T03:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Modify,Insert and Update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523668#M847551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALso check these 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="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;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 03:51:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523668#M847551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T03:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Modify,Insert and Update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523669#M847552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4609771"&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="4675463"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/message/4622903#4622903 &lt;B&gt;[original link is broken]&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 03:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523669#M847552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T03:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Modify,Insert and Update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523670#M847553</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;&lt;/P&gt;&lt;P&gt;MODIFY for Database Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts or changes lines in database tables.&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;MODIFY &amp;lt;dbtab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;dbtab&amp;gt; FROM TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works like INSERT for database tables, if there is not yet a line in the table with the same primary key. Works like UPDATE if a line already exists with the same primary key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY for any Internal Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes the content of lines in internal tables of any type.&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;MODIFY TABLE &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt; [TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt;...] &lt;/P&gt;&lt;P&gt;                              [ASSIGNING &amp;lt;FS&amp;gt; | REFERENCE INTO &amp;lt;dref&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copies the work area &amp;lt;wa&amp;gt; into the line of the internal table with the same table key as &amp;lt;wa&amp;gt;. If you use ASSIGNING or INTO REFERENCE, field symbol &amp;lt;FS&amp;gt; refers to the modified line or the relevant data reference is stored in &amp;lt;dref&amp;gt; after the statement. You can use the TRANSPORTING addition to specify the exact components that you want to change. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt; TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt;... WHERE &amp;lt;logexp&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copies the work area &amp;lt;wa&amp;gt; into the line of the internal table for which the logical expression is true. In each comparison of the logical expression, the first operand must be a component of the line structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY for Index Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes the content of lines in index tables.&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;MODIFY &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt; [INDEX &amp;lt;idx&amp;gt;] [TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt;...] &lt;/P&gt;&lt;P&gt;                        [ASSIGNING &amp;lt;FS&amp;gt; | REFERENCE INTO &amp;lt;dref&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copies the work area &amp;lt;wa&amp;gt; into the line of the internal table with the index &amp;lt;idx&amp;gt;. If you omit the INDEX addition, you can only use the statement within a LOOP. In this case, you change the current loop line If you use ASSIGNING or INTO REFERENCE, field symbol &amp;lt;FS&amp;gt; refers to the modified line or the relevant data reference is stored in &amp;lt;dref&amp;gt; after the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY for Lists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes a list line.&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;MODIFY LINE &amp;lt;n&amp;gt; [INDEX &amp;lt;idx&amp;gt;] [OF CURRENT PAGE|OF PAGE &amp;lt;p&amp;gt;]&lt;/P&gt;&lt;P&gt;      |CURRENT LINE&lt;/P&gt;&lt;P&gt;      LINE FORMAT &amp;lt;option1&amp;gt; &amp;lt;option2&amp;gt;... &lt;/P&gt;&lt;P&gt;      FIELD VALUE &amp;lt;f1&amp;gt; [FROM &amp;lt;g1&amp;gt;] &amp;lt;f2&amp;gt; [FROM &amp;lt;g2&amp;gt;]... &lt;/P&gt;&lt;P&gt;      FIELD FORMAT &amp;lt;f1&amp;gt; &amp;lt;options1&amp;gt; &amp;lt;f2&amp;gt; &amp;lt;options2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes either line &amp;lt;n&amp;gt; on the current or specified list (or page), or the last line to be chosen. The exact nature of the change is specified in the additions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes the SCREEN table.&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;MODIFY SCREEN...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like changing an internal table. The system table SCREEN contains the names and attributes of all of the fields on the current 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;Changes entries in database tables.&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;UPDATE &amp;lt;dbtab&amp;gt; SET  &amp;lt;si&amp;gt; = &amp;lt;f&amp;gt; &lt;/P&gt;&lt;P&gt;                   |&amp;lt;si&amp;gt; = &amp;lt;s i&amp;gt; + &amp;lt;f&amp;gt; &lt;/P&gt;&lt;P&gt;                   |&amp;lt;si&amp;gt; = &amp;lt;s i&amp;gt; - &amp;lt;f&amp;gt; [WHERE &amp;lt;cond&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value in the column &amp;lt;si&amp;gt; is set to the value &amp;lt;f&amp;gt;, increases it by &amp;lt;f&amp;gt;, or decreases it by &amp;lt;f&amp;gt; for all lines selected. The WHERE clause specifies the lines that are changed. If you omit the WHERE clause, all lines are changed. &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;UPDATE &amp;lt;dbtab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE &amp;lt;dbtab&amp;gt; FROM TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This deletes the line that has the same primary key as the work area &amp;lt;wa&amp;gt;, or deletes all the lines in the database that have the same primary key as a line in the internal table &amp;lt;itab&amp;gt;. The work area &amp;lt;wa&amp;gt; or the lines of the internal table &amp;lt;itab&amp;gt; must have at least the same length and alignment as the lines of the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT for Database Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts entries from database tables.&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 &amp;lt;dbtab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;dbtab&amp;gt; FROM TABLE &amp;lt;itab&amp;gt; [ACCEPTING DUPLICATE KEYS].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts one line from the work area &amp;lt;wa&amp;gt; or several lines from the internal table &amp;lt;itab&amp;gt; into the database table &amp;lt;dbtab&amp;gt;. The ACCEPTING DUPLICATE KEYS addition prevents a runtime error from occurring if two entries have the same primary key. Instead, it merely discards the duplicate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT for Field Groups&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defines the structure of field groups for extract datasets. &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 &amp;lt;f1&amp;gt;... &amp;lt;f n&amp;gt; INTO &amp;lt;fg&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Includes the fields &amp;lt;fi&amp;gt; in the field group &amp;lt;fg&amp;gt;, thus defining a line structure for an extract dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT for any Internal Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts lines from internal tables of any type.&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 &amp;lt;line&amp;gt;|LINES OF &amp;lt;jtab&amp;gt; [FROM &amp;lt;n1&amp;gt;] [TO &amp;lt;n 2&amp;gt;] &lt;/P&gt;&lt;P&gt;       INTO TABLE &amp;lt;itab&amp;gt;&lt;/P&gt;&lt;P&gt;       [ASSIGNING &amp;lt;FS&amp;gt; | REFERENCE INTO &amp;lt;dref&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts a line &amp;lt;line&amp;gt; or a set of lines from the internal table &amp;lt;jtab&amp;gt; into the internal table &amp;lt;itab&amp;gt;. If &amp;lt;jtab&amp;gt; is an index table, you can use the FROM and TO additions to restrict the lines inserted. If you use ASSIGNING or INTO REFERENCE, field symbol &amp;lt;FS&amp;gt; refers to the inserted line or the relevant data reference is stored in &amp;lt;dref&amp;gt; after the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT for Index Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts entries in index tables.&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 &amp;lt;line&amp;gt;|LINES OF &amp;lt;jtab&amp;gt; [FROM &amp;lt;n1&amp;gt;] [TO &amp;lt;n 2&amp;gt;] &lt;/P&gt;&lt;P&gt;  INTO &amp;lt;itab&amp;gt; [INDEX &amp;lt;idx&amp;gt;]&lt;/P&gt;&lt;P&gt;  [ASSIGNING &amp;lt;FS&amp;gt; | REFERENCE INTO &amp;lt;dref&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts a line &amp;lt;line&amp;gt; or a set of lines from the internal table &amp;lt;jtab&amp;gt; into the internal table &amp;lt;itab&amp;gt;before the line with the index &amp;lt;idx&amp;gt;. If &amp;lt;jtab&amp;gt; is an index table, you can use the FROM and TO additions to restrict the lines inserted. If you omit the INDEX addition, you can only use the statement within a LOOP. A new line containing values is inserted before the current line. If you use ASSIGNING or INTO REFERENCE, field symbol &amp;lt;FS&amp;gt; refers to the inserted line or the relevant data reference is stored in &amp;lt;dref&amp;gt; after the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT for Programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts ABAP programs into the program library. &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 REPORT &amp;lt;prog&amp;gt; FROM &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lines of the internal table &amp;lt;itab&amp;gt; are added to the program library as the program &amp;lt;prog&amp;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;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 04:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523670#M847553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T04:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Modify,Insert and Update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523671#M847554</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;&lt;/P&gt;&lt;P&gt;refer to the thread&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="4968301"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="747513"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Modify Option, If the current record is already available in the database, it will update the Changes. If it not available it will insert as a new record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT - Add a new record into the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY - If record is available it modifies otherwise it wont modify.&lt;/P&gt;&lt;P&gt;&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;insert-used to insert the records modify-used for alter the table field names update-used for modify the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert:Insert a set of new data&amp;#146;s into database table., update:Chance the existing data field in data base table., modify:If the record is present then you how to Update the data&amp;#146;s otherwise,Insert the new data.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sreelakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 04:20:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523671#M847554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T04:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Modify,Insert and Update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523672#M847555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines. &lt;/P&gt;&lt;P&gt;The MODIFY statement sets a database lock until the next database commit or database rollback; incorrect usage can result in a deadlock kommen kann. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of rows that can be inserted into or changed in the tables of a database within a database LUW is restricted database-specifically by the fact that a database system can only manage a limited amount of locks and data in the rollback area. &lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;The new row is inserted in the database table if this does not already contain a row with the same primary key or the same unique secondary index. If it does, the row is not inserted and sy-subrc is set to 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a view is specified in target that does not include all columns in the database table, these are set to the type-related initial value or to the null value in the inserted rows. The latter applies only if, for the relevant database column, the attribute initial value is not selected in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;Work area wa should always be declared in the ABAP Dictionary with respect to the database table or the view. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the database table or the view is specified statically, then outside classes you do not have to specify the work area using FROM wa in the variant without INTO if a table work area dbtab is declared for the relevant database table or for the view with statement TABLES. The system then enhances the INSERT statement implicitly with the addition FROM dbtab. &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;Inserting a new airline company in the database table SCARR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA scarr_wa TYPE scarr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scarr_wa-carrid   = 'FF'. &lt;/P&gt;&lt;P&gt;scarr_wa-carrname = 'Funny Flyers'. &lt;/P&gt;&lt;P&gt;scarr_wa-currcode = 'EUR'. &lt;/P&gt;&lt;P&gt;scarr_wa-url      = 'http://www.funnyfly.com'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO scarr VALUES scarr_wa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 04:34:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523672#M847555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T04:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Modify,Insert and Update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523673#M847556</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 - inserts the records into the dbtable.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/insert_d.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/insert_d.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update - updates the existing records.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/update.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/update.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify - modifys the existing records or creates a new record if the primary key does not match.&lt;/P&gt;&lt;P&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this helps, Do reward.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 05:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523673#M847556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T05:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Modify,Insert and Update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523674#M847557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Modify----it modifies the record , if the record is already existed.&lt;/P&gt;&lt;P&gt;Insert----it inserts the record into the internal table/database table.&lt;/P&gt;&lt;P&gt;Update-----it modifies the record ,if the record already exists and if the record does not exist it inserts the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vineela.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 06:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523674#M847557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T06:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Modify,Insert and Update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523675#M847558</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;MODIFY - modify will act like insert 7 update.&lt;/P&gt;&lt;P&gt;Will update the table, if the data already exists, else inserts new rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT - Inserts new records in Database Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE - Will update the table for existing records only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 06:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523675#M847558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T06:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Modify,Insert and Update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523676#M847559</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:this is to insert a record into internal table.&lt;/P&gt;&lt;P&gt;syntax:&lt;/P&gt;&lt;P&gt;insert &amp;lt;itab&amp;gt; index &amp;lt;i&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever you need to create new records in the database table use INSERT. Whenever using INSERT be sure that a duplicate entry having the same values for the primary key fields are not present. Else it may throw a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY:this is to modify a particular record or records of a internal table.&lt;/P&gt;&lt;P&gt;syntax:&lt;/P&gt;&lt;P&gt;modify &amp;lt;itab&amp;gt; index &amp;lt;i&amp;gt;.&lt;/P&gt;&lt;P&gt;When you use MODIFY it makes a check for the matching key field values. If present it modifies the matching record, else it creates a new record in the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE:this is to update a particular record or records of an internl table.&lt;/P&gt;&lt;P&gt;When you use UPDATE it makes a check for the matching key field values.if it presents it updates the matching record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 06:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-modify-insert-and-update/m-p/3523676#M847559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T06:11:02Z</dc:date>
    </item>
  </channel>
</rss>

