<?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 Updating a table using update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790747#M1465890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;       I have to update the BSEG table using the following update stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; UPDATE BSEG SET   BUPLA = W_BUPLA&lt;/P&gt;&lt;P&gt;            WHERE BUKRS = W_BUKRS&lt;/P&gt;&lt;P&gt;              AND BELNR = W_BELNR&lt;/P&gt;&lt;P&gt;              AND GJAHR = W_GJAHR&lt;/P&gt;&lt;P&gt;              AND BUPLA EQ SPACE&lt;/P&gt;&lt;P&gt;              AND QSSKZ NE SPACE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For one invoice update ( i.e. one belnr value ) i can run the above stmt and it works fine. But if i have multiple invoice values saved in in internal table say it_invoice and i want to run a sinlge update for all invoice nos in it_invoice, keeping the other paramaters like w_bukrs, w_gjahr same, how do i do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Mar 2010 11:19:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-26T11:19:15Z</dc:date>
    <item>
      <title>Updating a table using update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790747#M1465890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;       I have to update the BSEG table using the following update stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; UPDATE BSEG SET   BUPLA = W_BUPLA&lt;/P&gt;&lt;P&gt;            WHERE BUKRS = W_BUKRS&lt;/P&gt;&lt;P&gt;              AND BELNR = W_BELNR&lt;/P&gt;&lt;P&gt;              AND GJAHR = W_GJAHR&lt;/P&gt;&lt;P&gt;              AND BUPLA EQ SPACE&lt;/P&gt;&lt;P&gt;              AND QSSKZ NE SPACE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For one invoice update ( i.e. one belnr value ) i can run the above stmt and it works fine. But if i have multiple invoice values saved in in internal table say it_invoice and i want to run a sinlge update for all invoice nos in it_invoice, keeping the other paramaters like w_bukrs, w_gjahr same, how do i do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 11:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790747#M1465890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-26T11:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a table using update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790748#M1465891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why you're directly updating a database table...not a good practice...but...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can loop at an internal table and (slowly) do what you're doing here, moving the table columns to the w_whatever work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For mass updates, I'd probably use MODIFY dtab from itab statement, but that would require some changes in your approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 11:30:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790748#M1465891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-26T11:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a table using update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790749#M1465892</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;       Use commit statement after Update.&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;Rajesh S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 11:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790749#M1465892</guid>
      <dc:creator>former_member632458</dc:creator>
      <dc:date>2010-03-26T11:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a table using update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790750#M1465893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is as simple as it looks like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE BSEG FROM TABLE it_invoice&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Updating the database table according to a where condition&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;UPDATE BSEG   SET BUPLA = W_BUPLA&lt;/P&gt;&lt;P&gt;WHERE BUKRS = W_BUKRS&lt;/P&gt;&lt;P&gt;AND BELNR = W_BELNR&lt;/P&gt;&lt;P&gt;AND GJAHR = W_GJAHR&lt;/P&gt;&lt;P&gt;AND BUPLA EQ SPACE&lt;/P&gt;&lt;P&gt;AND QSSKZ NE SPACE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bhanu  Malik on Mar 26, 2010 12:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 11:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790750#M1465893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-26T11:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a table using update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790751#M1465894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its not recommended to use update stmt to update SAP standard table..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 11:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790751#M1465894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-26T11:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a table using update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790752#M1465895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't use update statement to directly update the database table.  This will lead to inconsistent data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 12:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790752#M1465895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-26T12:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a table using update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790753#M1465896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Really bad idea - have you considered the effect on other tables like BSID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 13:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-a-table-using-update/m-p/6790753#M1465896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-26T13:40:19Z</dc:date>
    </item>
  </channel>
</rss>

