<?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 what is difference between modify and update i am using in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975439#M949515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;what is difference between mofify and update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requiremen is to have three condition checkec while mofifying or updating from a internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the three fields are &lt;/P&gt;&lt;P&gt;cus no&lt;/P&gt;&lt;P&gt;status&lt;/P&gt;&lt;P&gt;date these all are primary key in the database table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so which sould i use modify or update&lt;/P&gt;&lt;P&gt;there might be entry already existing in database table or new entry to be created if already existin it should check on the primary keys and updatat if not it should add a record&lt;/P&gt;&lt;P&gt;pls suggest whihc to use and how to implement the check on teh threee primary key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like if modify ztable from table it_test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now where condition ? can be used or not with modify? and if yes how&lt;/P&gt;&lt;P&gt;if not should i use update will update create a new entry if no entry is there and please give syntex&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2008 12:24:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-11T12:24:36Z</dc:date>
    <item>
      <title>what is difference between modify and update i am using</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975439#M949515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;what is difference between mofify and update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requiremen is to have three condition checkec while mofifying or updating from a internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the three fields are &lt;/P&gt;&lt;P&gt;cus no&lt;/P&gt;&lt;P&gt;status&lt;/P&gt;&lt;P&gt;date these all are primary key in the database table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so which sould i use modify or update&lt;/P&gt;&lt;P&gt;there might be entry already existing in database table or new entry to be created if already existin it should check on the primary keys and updatat if not it should add a record&lt;/P&gt;&lt;P&gt;pls suggest whihc to use and how to implement the check on teh threee primary key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like if modify ztable from table it_test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now where condition ? can be used or not with modify? and if yes how&lt;/P&gt;&lt;P&gt;if not should i use update will update create a new entry if no entry is there and please give syntex&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 12:24:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975439#M949515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T12:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: what is difference between modify and update i am using</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975440#M949516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Modify is used to modify the existing entry in the internal table if the entry is not found it created the new entry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update is to update the existing entry if the entry is not found statement fails&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use modify with where&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 12:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975440#M949516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T12:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: what is difference between modify and update i am using</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975441#M949517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant Arora,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Modify:&lt;/STRONG&gt; It works in performing two actions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;They are: Insert + Update.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example If a record that is exited in database, so you are modifying that record, it updates that particular record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, If the is not existed in the database, you are modifying it, it inserts a new record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt; Update means just it updates the status, I mean it only updates the record. It doesn't inserts any new record if that particular record is not present in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the cases you need to write these statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Syntaxes:&lt;/STRONG&gt; : &lt;/P&gt;&lt;P&gt;Go through this links please.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/e7/968aa8b2384dd9835f91e7f8470064/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/e7/968aa8b2384dd9835f91e7f8470064/content.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb35eb358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb35eb358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Swamy Kunche&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Swamy Kunche on Jun 11, 2008 2:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 12:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975441#M949517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T12:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: what is difference between modify and update i am using</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975442#M949518</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;as given in my problem i want to use the three primary key with modify statment but when i am using with where database field1 = internal_field1&lt;/P&gt;&lt;P&gt;                             f2         = f2&lt;/P&gt;&lt;P&gt;so one it is not takeing what is syntex to use modify with where clause i dont find any syntex for that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 05:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975442#M949518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T05:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: what is difference between modify and update i am using</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975443#M949519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AS FAR AS DATA BASE TABLE ARE THERE IF YOU USE MODIFY&lt;/P&gt;&lt;P&gt;AND YOU HAVE  ENTERED THE DATA IN TABLE CONTROL &lt;/P&gt;&lt;P&gt;SO IT WILL COMBINE WORK OF INSERT AND UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE WORKS ON DATA WHICH IS RESIDES THERE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 05:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975443#M949519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T05:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: what is difference between modify and update i am using</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975444#M949520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use MODIFY &amp;lt;dbtab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;wa&amp;gt; should be of the same structure as &amp;lt;dbtab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement itself will take care of the primary key. &amp;lt;wa&amp;gt; will have the same primary key fields and it's values. so this statement checks &amp;lt;dbtab&amp;gt; for the same key fields. If exits, modifies the other field values from &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not exist, then creates a new entry with the values from &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no necessity of using a WHERE condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same applies for MODIFY ztable FROM TABLE it_tab also. This is for modifying or inserting more than one record at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshmi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Santhanalakshmi V on Jun 12, 2008 11:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 05:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975444#M949520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T05:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: what is difference between modify and update i am using</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975445#M949521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;are u sure?&lt;/P&gt;&lt;P&gt;i want to be sure and use where clause with modify statment please suggest the syntex as its not taking the where clasue and condition of three keys with modify&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ARora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 09:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975445#M949521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T09:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: what is difference between modify and update i am using</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975446#M949522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant Arora,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am giving the syntax below. Yes definitely you can use  where conditions in MODIFY statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;modify itab transporting aenam where ernam = 'LAXMIK' and matnr = 45.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are saying that you are having three conditions so you can include them and write as below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODIFY ITAB TRANSPORTING &amp;lt;FIELDNAME&amp;gt; WHERE COND.,1 AND COND.,2 AND COND.,3.&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Swamy Kunche&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 09:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975446#M949522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T09:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: what is difference between modify and update i am using</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975447#M949523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Swamy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am mofifying from a internal table so cannot use the transporting all fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam using modify &lt;/P&gt;&lt;P&gt;MODIFY ZFIdatabasetable FROM TABLE it_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now how to give three conditions in it. ie threee primaty key condition &lt;/P&gt;&lt;P&gt;where key1 = it_key1&lt;/P&gt;&lt;P&gt;          key 2 = it_key2&lt;/P&gt;&lt;P&gt;          key 3 = it_key3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 10:06:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975447#M949523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T10:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: what is difference between modify and update i am using</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975448#M949524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://www.abapcode.sapbrainsonline.com/2008/03/modify-abap-keyword.html" target="test_blank"&gt;http://www.abapcode.sapbrainsonline.com/2008/03/modify-abap-keyword.html&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Swamy Kunche&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 11:34:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975448#M949524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T11:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: what is difference between modify and update i am using</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975449#M949525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 12:07:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-difference-between-modify-and-update-i-am-using/m-p/3975449#M949525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T12:07:15Z</dc:date>
    </item>
  </channel>
</rss>

