<?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: contd in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552904#M250673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT * from &amp;lt;DBTAB&amp;gt; into table ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2006 18:03:49 GMT</pubDate>
    <dc:creator>suresh_datti</dc:creator>
    <dc:date>2006-08-10T18:03:49Z</dc:date>
    <item>
      <title>contd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552903#M250672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to copy the contents from the database table to itab of the same structure what commands muct be used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move?&lt;/P&gt;&lt;P&gt;move corresponding?&lt;/P&gt;&lt;P&gt;into table itab?&lt;/P&gt;&lt;P&gt;append from work area?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 18:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552903#M250672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T18:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: contd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552904#M250673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT * from &amp;lt;DBTAB&amp;gt; into table ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 18:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552904#M250673</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-08-10T18:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: contd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552905#M250674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If they(internal table and the database table) have the same structure and you need more than one record then use the INTO TABLE option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 18:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552905#M250674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T18:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: contd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552906#M250675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most efficient (from a coding perspective) are move-corresponding for each row of the DB table into the itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: VBAK.&lt;/P&gt;&lt;P&gt;data: it_VBAK type table of VBAK with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from VBAK into table it_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 2nd one is best !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 18:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552906#M250675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T18:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: contd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552907#M250676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the other commands you listed, you will have to loop (select ... endselect) and append which is inefficient.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 18:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552907#M250676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T18:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: contd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552908#M250677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vamshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ur internal table fields are declared as they r in the table then&lt;/P&gt;&lt;P&gt;u can use &amp;lt;b&amp;gt;into table itab.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u give names like&lt;/P&gt;&lt;P&gt;material like mara-matnr..&lt;/P&gt;&lt;P&gt;into corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;do reward if it helps,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 18:05:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552908#M250677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T18:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: contd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552909#M250678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Most efficient (from a coding perspective) are&lt;/P&gt;&lt;P&gt;&amp;gt; move-corresponding for each row of the DB table into&lt;/P&gt;&lt;P&gt;&amp;gt; the itab&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; OR&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; tables: VBAK.&lt;/P&gt;&lt;P&gt;&amp;gt; data: it_VBAK type table of VBAK with header line.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Select * from VBAK into table it_vbak.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; The 2nd one is best !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John, I have to disagree on this one because, move-corresponding adds additional burden on the performance as it has to now parse through the names and match them with that of the table. This adds additional time to the processing. If you know that the structure of the source and the target are the same, a direct move is always efficient. If you know that only some of the field names are common, then move-corresponding can be used. But even there if you do individual assignments, that will be much faster than move-corresponding. So if ITAB has FIELD1, FIELD2, FIELD3 and FIELD2 is common between ITAB and DBTAB, then doing ITAB-FIELD2 = DBTAB-FIELD2 is always efficient than MOVE-CORRESPONDING DBTAB TO ITAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 18:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552909#M250678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T18:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: contd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552910#M250679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Srinivas.. why DBTABs even in case of ITABs I would keep away from MOVE-CORRESPONDING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 18:13:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552910#M250679</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-08-10T18:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: contd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552911#M250680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I stated "Most efficient (from a coding perspective)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is definitely slower from a PERFORMANCE perspective... but it is faster from a coding perspective b/c you only have to write statement instead of numerous MOVE statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 18:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552911#M250680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T18:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: contd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552912#M250681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that is true, it will reduce the number of lines you may have to type in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 18:17:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552912#M250681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T18:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: contd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552913#M250682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are looking for "quick and dirty", it is the way to go.  If you are looking the "best" code, it is not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 18:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contd/m-p/1552913#M250682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T18:28:48Z</dc:date>
    </item>
  </channel>
</rss>

