<?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: modify in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2805685#M655629</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 use modify statement it either:&lt;/P&gt;&lt;P&gt;inserts a record in a table when no record already exists with same key(hence insert role)&lt;/P&gt;&lt;P&gt;else it modify an already existing record with same key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Revert back in case of doubts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2007 07:32:08 GMT</pubDate>
    <dc:creator>dev_parbutteea</dc:creator>
    <dc:date>2007-09-17T07:32:08Z</dc:date>
    <item>
      <title>modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2805683#M655627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Modify can play the role of either the Append or Insert depending on the type of the table.&lt;/P&gt;&lt;P&gt;How would modify play the role?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 07:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2805683#M655627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T07:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2805684#M655628</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;Works like INSERT for database tables if there is not yet a line in the table with the same primary key. &lt;/P&gt;&lt;P&gt;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;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 07:31:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2805684#M655628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T07:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2805685#M655629</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 use modify statement it either:&lt;/P&gt;&lt;P&gt;inserts a record in a table when no record already exists with same key(hence insert role)&lt;/P&gt;&lt;P&gt;else it modify an already existing record with same key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Revert back in case of doubts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 07:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2805685#M655629</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-09-17T07:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2805686#M655630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;    It is not like that, Modify can play the role of Update and Insert(can be append in standard tables) according to the situtation. If you use modify It will look for the entry matching with the key, If there is an entry found it will update other fields of the table entry found with the values you have provided before the modify statement, And if there is no entry found it will insert(or append) a new record to the table depending on the situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Tharanatha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 07:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2805686#M655630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T07:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: modify</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2805687#M655631</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;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY - 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;UPDATE - 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;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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 07:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify/m-p/2805687#M655631</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-09-17T07:39:47Z</dc:date>
    </item>
  </channel>
</rss>

