<?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: single Update stmt.. for 2 fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/single-update-stmt-for-2-fields/m-p/2656736#M612648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a single update statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
UPDATE zsd47_loc_master SET: capacity = capacity - 1
status = 'P'
WHERE location = wk_location
AND status = 'A'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark points if the solution was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2007 07:03:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-09T07:03:54Z</dc:date>
    <item>
      <title>single Update stmt.. for 2 fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/single-update-stmt-for-2-fields/m-p/2656733#M612645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to update 2 fields in my table zsd47_loc_master. I have used 2 update stmts.. for each field. Is it possible to update the table using single stmt.. ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        UPDATE zsd47_loc_master SET  capacity = capacity - 1&lt;/P&gt;&lt;P&gt;                      WHERE location = wk_location&lt;/P&gt;&lt;P&gt;                      AND   status   = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        UPDATE zsd47_loc_master SET status = 'P' WHERE location = wk_location&lt;/P&gt;&lt;P&gt;                                                 AND   status   = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Stanley.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 06:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/single-update-stmt-for-2-fields/m-p/2656733#M612645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T06:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: single Update stmt.. for 2 fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/single-update-stmt-for-2-fields/m-p/2656734#M612646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;You can use a single statment ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE zsd47_loc_master &lt;/P&gt;&lt;P&gt; SET capacity = capacity - 1&lt;/P&gt;&lt;P&gt;        status = 'P'&lt;/P&gt;&lt;P&gt;WHERE location = wk_location&lt;/P&gt;&lt;P&gt;AND status = 'A'.&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 07:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/single-update-stmt-for-2-fields/m-p/2656734#M612646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T07:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: single Update stmt.. for 2 fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/single-update-stmt-for-2-fields/m-p/2656735#M612647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, You can do this with the help : in ABAP and don't forget to put comma after setting a value to the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE zsd47_loc_master &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET: capacity = capacity - 1,&lt;/P&gt;&lt;P&gt;        status = 'P'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE location = wk_location&lt;/P&gt;&lt;P&gt;AND status = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link which has example&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;&amp;lt;b&amp;gt;Friendly Note:&amp;lt;/b&amp;gt; You have many open threads and Plz close the threads if they are answered/solved and reward points to the people who are helping you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 07:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/single-update-stmt-for-2-fields/m-p/2656735#M612647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T07:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: single Update stmt.. for 2 fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/single-update-stmt-for-2-fields/m-p/2656736#M612648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a single update statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
UPDATE zsd47_loc_master SET: capacity = capacity - 1
status = 'P'
WHERE location = wk_location
AND status = 'A'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark points if the solution was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 07:03:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/single-update-stmt-for-2-fields/m-p/2656736#M612648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T07:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: single Update stmt.. for 2 fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/single-update-stmt-for-2-fields/m-p/2656737#M612649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following syntax&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  UPDATE zsd47_loc_master
    SET: capacity = capacity - 1,
         status = 'P'
    WHERE location = wk_location
      AND status = 'A'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 07:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/single-update-stmt-for-2-fields/m-p/2656737#M612649</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-08-09T07:14:08Z</dc:date>
    </item>
  </channel>
</rss>

