<?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: Update database in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236190#M772260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the best thing is to declare ur internal table as Z table type and then use UPDATE ZTABLE FROM ITAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2008 12:00:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-04T12:00:07Z</dc:date>
    <item>
      <title>Update database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236187#M772257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are 20 fields in a ztable 'ymassn'. I have 4 fields in my internal table 'itab' from ztable. I have populated the internal table. now i want to update the ztable with one of my internal table field 'A'. How can i achieve this without effecting performance much. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do this using below logic. but if there are 100records in my internal table then it will db for 100 times. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;update ymassn&lt;/P&gt;&lt;P&gt;set A = wa-A.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 11:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236187#M772257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T11:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Update database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236188#M772258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UPDATE dbtab FROM TABLE itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;awrd points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bhupal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 11:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236188#M772258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T11:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Update database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236189#M772259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will work only if the structure of db table and internal table is same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 11:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236189#M772259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T11:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Update database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236190#M772260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the best thing is to declare ur internal table as Z table type and then use UPDATE ZTABLE FROM ITAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 12:00:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236190#M772260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T12:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Update database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236191#M772261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont require other fields.. in other cr, i have 100 fields in ztable. then how can i?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 12:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236191#M772261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T12:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Update database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236192#M772262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get the data in ITAB1.&lt;/P&gt;&lt;P&gt;Declare an internal table ITAB2 as Z table type.&lt;/P&gt;&lt;P&gt;copy the data from ITAB1 to ITAB2.&lt;/P&gt;&lt;P&gt;UPDATE table from ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will avoid UPDATE inside a LOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 12:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236192#M772262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T12:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Update database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236193#M772263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then u can do one thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Declare 2 itabs as type ur Ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign the itab2 with the values selected from ZTable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In First itab do the changes. &lt;/P&gt;&lt;P&gt;Modify the Second itab using first itab in which u have done changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now update ztable using the second itab which is having the final data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;awrd points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bhupal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 12:14:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database/m-p/3236193#M772263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T12:14:01Z</dc:date>
    </item>
  </channel>
</rss>

