<?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: how to replace the update staement with a modify statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-the-update-staement-with-a-modify-statement/m-p/2199982#M469948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashwin,&lt;/P&gt;&lt;P&gt;                 Refer this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;itab-matnr = '00000000000001'.&lt;/P&gt;&lt;P&gt;itab-mtart = 'FERT'.&lt;/P&gt;&lt;P&gt;modify itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hemant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2007 05:18:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-08T05:18:03Z</dc:date>
    <item>
      <title>how to replace the update staement with a modify statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-the-update-staement-with-a-modify-statement/m-p/2199977#M469943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to convert this update stat to a modify stat?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ashwin A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 04:42:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-the-update-staement-with-a-modify-statement/m-p/2199977#M469943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T04:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace the update staement with a modify statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-the-update-staement-with-a-modify-statement/m-p/2199978#M469944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ashwin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do it this way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_YIBRK_EARNINGS.&lt;/P&gt;&lt;P&gt; MODIFY YIBRK_EARNINGS FROM  I_YIBRK_EARNINGS.&lt;/P&gt;&lt;P&gt; CLEAR I_YIBRK_EARNINGS.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;Jayant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 04:49:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-the-update-staement-with-a-modify-statement/m-p/2199978#M469944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T04:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace the update staement with a modify statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-the-update-staement-with-a-modify-statement/m-p/2199979#M469945</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; tables:&lt;/P&gt;&lt;P&gt;   ZSRMTST .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt; itab like standard table of  ZSRMTST with header line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from  ZSRMTST &lt;/P&gt;&lt;P&gt;  into table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt; itab-unam = sy-uname.&lt;/P&gt;&lt;P&gt; itab-uzeit = sy-uzeit.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; modify itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ZSRMTST from itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 05:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-the-update-staement-with-a-modify-statement/m-p/2199979#M469945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T05:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace the update staement with a modify statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-the-update-staement-with-a-modify-statement/m-p/2199980#M469946</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 &amp;lt;DB TABLE&amp;gt; FROM &amp;lt;INTERNAL TABLE&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To insert or change a single line in a database table, use the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;target&amp;gt; FROM &amp;lt;wa&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The contents of the work area &amp;lt;wa&amp;gt; are written to the database table &amp;lt;dbtab&amp;gt;. The work area &amp;lt;wa&amp;gt; must be a data object with at least the same length and alignment as the line structure of the database table. The data is placed in the database table according to the line structure of the table, and regardless of the structure of the work area. It is a good idea to define the work area with reference to the structure of the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the database table does not already contain a line with the same primary key as specified in the work area, a new line is inserted. If the database table does already contain a line with the same primary key as specified in the work area, the existing line is overwritten. SY-SUBRC is always set to 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A shortened form of the above statement is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY &amp;lt;dbtab&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, the contents of the table work area &amp;lt;dbtab&amp;gt; are inserted into the database table with the same name. You must declare this table work area using the TABLES statement. In this case, it is not possible to specify the name of the database table dynamically. Table work areas with the same name as the database table (necessary before Release 4.0) should no longer be used for the sake of clarity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 05:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-the-update-staement-with-a-modify-statement/m-p/2199980#M469946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T05:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace the update staement with a modify statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-the-update-staement-with-a-modify-statement/m-p/2199981#M469947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ashwin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update-&amp;gt;it is used for only internal tables&lt;/P&gt;&lt;P&gt;modify-&amp;gt;used fro both internal and database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generally modify = update + insert which means if no record exists then modify will create a record and places&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 05:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-the-update-staement-with-a-modify-statement/m-p/2199981#M469947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T05:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace the update staement with a modify statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-the-update-staement-with-a-modify-statement/m-p/2199982#M469948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashwin,&lt;/P&gt;&lt;P&gt;                 Refer this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;itab-matnr = '00000000000001'.&lt;/P&gt;&lt;P&gt;itab-mtart = 'FERT'.&lt;/P&gt;&lt;P&gt;modify itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hemant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 05:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-the-update-staement-with-a-modify-statement/m-p/2199982#M469948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T05:18:03Z</dc:date>
    </item>
  </channel>
</rss>

