<?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: differ in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802987#M654712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MODIFY --sets SY-DBCNT to the number of lines processed.&lt;/P&gt;&lt;P&gt;              --If record is available it modifies otherwise it wont modify   &lt;/P&gt;&lt;P&gt;UPDATE --sets SY-DBCNT to the number of lines changed. &lt;/P&gt;&lt;P&gt;              --If record is available its update the record otherwise it creates a new&lt;/P&gt;&lt;P&gt;                record&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2007 12:10:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-30T12:10:14Z</dc:date>
    <item>
      <title>differ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802982#M654707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the difference between update and modify keywords.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 12:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802982#M654707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T12:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: differ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802983#M654708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;UPDATE 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;Syntax &lt;/P&gt;&lt;P&gt;UPDATE target source. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect: &lt;/P&gt;&lt;P&gt;The statement UPDATE changes the content of one or more lines of the database table specified in target. The entries in source determine which columns of which lines are changed, and how they are changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement UPDATE sets the values of the system fields sy-subrc and sy-dbcnt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc Meaning &lt;/P&gt;&lt;P&gt;0 At least one line has been changed. &lt;/P&gt;&lt;P&gt;4 At least one line was not able to be changed, either because no appropriate line was found, or because the change would generate a line that leads to double entries in the primary key or a unique secondary index in the database table. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement UPDATE sets sy-dbcnt to the number of changed lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;The changes are definitively copied to the database with the next database commit. Until that point, they can still be undone using a database rollback. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY 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;Syntax &lt;/P&gt;&lt;P&gt;MODIFY target FROM source. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc Meaning &lt;/P&gt;&lt;P&gt;0 At least one line is inserted or changed. &lt;/P&gt;&lt;P&gt;4 At least one line could not be processed since there is already a line with the same unique name secondary index in the database table. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MODIFY statement sets sy-dbcnt to the number of processed lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;The changes are transferred finally to the database table with the next database commit. Up to that point, they can be reversed using a database rollback. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward points if it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 12:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802983#M654708</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-08-30T12:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: differ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802984#M654709</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 {itab_line|itab_lines}. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement changes the content of one or several itab_line or itab_lines lines that can be specified using the table key or the table index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc Meaning 0 At least one line was changed. &lt;/P&gt;&lt;P&gt;                          4 No lines were changed, since no suitable line was found for the insertion using the table key, or the specified index was greater than the current number of lines for the insertion using the table index. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Apart from using the MODIFY statement, the content of an individual table line can be changed using assignments to field symbols and dereferenced data references that point to the table line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;UPDATE target source.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The statement UPDATE changes the content of one or more lines of the database table specified in target. The entries in source determine which columns of which lines are changed, and how they are changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement UPDATE sets the values of the system fields sy-subrc and sy-dbcnt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc Meaning 0 At least one line has been changed. &lt;/P&gt;&lt;P&gt;                           4 At least one line was not able to be changed, either because no appropriate line was found, or because the change would generate a line that leads to double entries in the primary key or a unique secondary index in the database table. &lt;/P&gt;&lt;P&gt;The statement UPDATE sets sy-dbcnt to the number of changed lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The changes are definitively copied to the database with the next database commit. Until that point, they can still be undone using a database rollback. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 12:05:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802984#M654709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T12:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: differ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802985#M654710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When UPDATE is used - this option will update the records into the table only if the entry exists. If it does not exists, it will return error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When MODIFY is used - this option will UPDATE the record if it already exists and if the record does not exist it will be INSERTED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for helpful answers&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 12:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802985#M654710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T12:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: differ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802986#M654711</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;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;&lt;/P&gt;&lt;P&gt;The statement UPDATE changes the content of one or more lines of the database table specified in target. The entries in source determine which columns of which lines are changed, and how they are changed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 12:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802986#M654711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T12:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: differ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802987#M654712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MODIFY --sets SY-DBCNT to the number of lines processed.&lt;/P&gt;&lt;P&gt;              --If record is available it modifies otherwise it wont modify   &lt;/P&gt;&lt;P&gt;UPDATE --sets SY-DBCNT to the number of lines changed. &lt;/P&gt;&lt;P&gt;              --If record is available its update the record otherwise it creates a new&lt;/P&gt;&lt;P&gt;                record&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 12:10:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802987#M654712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T12:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: differ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802988#M654713</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 will append a new line and store that in internal table whereas modify will modify the existing value in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward me if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 12:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802988#M654713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T12:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: differ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802989#M654714</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;in simple words,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update:&lt;/P&gt;&lt;P&gt;       -- used for native and open sql statements.&lt;/P&gt;&lt;P&gt;       -- when used updates the record and when record doesn't exists it gives error.&lt;/P&gt;&lt;P&gt;      --- doesn't  affect sy-dbcnt value.&lt;/P&gt;&lt;P&gt;modify:&lt;/P&gt;&lt;P&gt;       -- used only for open sql statements.&lt;/P&gt;&lt;P&gt;       -- when used updates the record and if record doesnt exists then it creates a new record and appends to table.&lt;/P&gt;&lt;P&gt;      i.e affects sy-dbcnt value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 12:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802989#M654714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T12:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: differ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802990#M654715</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 will update the values only if that record exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify will modify the values if the record exists .even if that record does not exist it will insert that record .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward with points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vinutha YV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 12:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802990#M654715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T12:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: differ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802991#M654716</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 is used for internal table and update is used for physical table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 12:58:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802991#M654716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T12:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: differ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802992#M654717</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;'&amp;lt;b&amp;gt;Update'&amp;lt;/b&amp;gt;   will modify a record in the DB table. &lt;/P&gt;&lt;P&gt;'&amp;lt;b&amp;gt;Modify'&amp;lt;/b&amp;gt;   it is a combination of both insert and update...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 15:37:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/differ/m-p/2802992#M654717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T15:37:36Z</dc:date>
    </item>
  </channel>
</rss>

