<?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: Using corresponding statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-corresponding-statement/m-p/5247194#M1212306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if table t_zztest and DB table zztest are of same structure you can do that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another altenative... append lines of itab1 to itab2... itab1 and 2 need to be of same structure... least performance cost.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2009 19:24:24 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2009-02-18T19:24:24Z</dc:date>
    <item>
      <title>Using corresponding statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-corresponding-statement/m-p/5247193#M1212305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a report... in that particular report there are many places where the code has been written as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT  *
         APPENDING CORRESPONDING FIELDS OF TABLE t_zztest
         FROM   zztest
    where lgort = s_lgort.
sort t_zztest by lgort.

DATA BEGIN OF T_ZZtest OCCURS 0.
       INCLUDE STRUCTURE ZZtest.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO I was just wondering if rather than using the appendind statment...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can I write like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT  *
         APPENDING TABLE t_zztest
         FROM   zztest
    where lgort = s_lgort.
sort t_zztest by lgort.
binary search.      " can I add this&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &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;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 19:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-corresponding-statement/m-p/5247193#M1212305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T19:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using corresponding statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-corresponding-statement/m-p/5247194#M1212306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if table t_zztest and DB table zztest are of same structure you can do that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another altenative... append lines of itab1 to itab2... itab1 and 2 need to be of same structure... least performance cost.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 19:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-corresponding-statement/m-p/5247194#M1212306</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-02-18T19:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using corresponding statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-corresponding-statement/m-p/5247195#M1212307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather than asking the forum (you haven't given enough information), you should just try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 19:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-corresponding-statement/m-p/5247195#M1212307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T19:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using corresponding statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-corresponding-statement/m-p/5247196#M1212308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes,move corresponding is used when there is type mismatch in the structure of db table and internal talble...or you just want to move some fields of db table to some field of internal table...&lt;/P&gt;&lt;P&gt;if this is not cse and both have ame structure..avoid move corresponding&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 19:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-corresponding-statement/m-p/5247196#M1212308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T19:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using corresponding statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-corresponding-statement/m-p/5247197#M1212309</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;I think it will be more efficient if you use like following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data: it_zztest  LIKE STANDARD TABLE OF zztest with header line.

SELECT  *  INTO CORRESPONDING FIELDS OF TABLE it_zztest
         FROM   zztest
    where lgort = s_lgort.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 19:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-corresponding-statement/m-p/5247197#M1212309</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-18T19:30:34Z</dc:date>
    </item>
  </channel>
</rss>

