<?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: Regarding Select stmt. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674437#M1448518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : temp_itbsik type standard table of it_bsik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_bsik into wa_bsik.&lt;/P&gt;&lt;P&gt;at end of blart.&lt;/P&gt;&lt;P&gt;sum.&lt;/P&gt;&lt;P&gt;apppend wa_bsik to temp_itbsik.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Mar 2010 09:06:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-11T09:06:08Z</dc:date>
    <item>
      <title>Regarding Select stmt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674435#M1448516</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 have Small issue , am extracting the data from BSIK ,using this select stmt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; REFRESH it_bsik.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   SELECT lifnr umskz blart dmbtr FROM bsik INTO TABLE it_bsik&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                    FOR ALL ENTRIES IN it_emp&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             WHERE lifnr = it_emp-lifnr&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                               AND bukrs = 'FUND'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                               AND gjahr = p_gjahr&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                               AND blart IN ('ZA','ZN','ZL','ZK','ZG','ZM').  am using this select Query .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 14 records in my table but while extracting only am getting 11 in  internal table  it_bsik.&lt;/P&gt;&lt;P&gt;i need to get total records and base on umskz ,blart amount has to be sum.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I want to display ZN data with Spl GL  9, k  and  ZA data with 2  ,5  ,8  indivisually. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data which i have .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kN01079	9	ZN	14.75&lt;/P&gt;&lt;P&gt;KN01079	9	ZN	618.35&lt;/P&gt;&lt;P&gt;KN01079	K	ZN	10.92&lt;/P&gt;&lt;P&gt;KN01079	K	ZN	143.47&lt;/P&gt;&lt;P&gt;KN01079	2	ZA	1,755.00&lt;/P&gt;&lt;P&gt;KN01079	2	ZA	1,755.00&lt;/P&gt;&lt;P&gt;KN01079	2	ZA	10.92&lt;/P&gt;&lt;P&gt;KN01079	5	ZA	2,296.00&lt;/P&gt;&lt;P&gt;KN01079	5	ZA	2,296.00&lt;/P&gt;&lt;P&gt;KN01079	5	ZA	248.51&lt;/P&gt;&lt;P&gt;KN01079	8	ZA	6,097.00&lt;/P&gt;&lt;P&gt;KN01079	8	ZA	6,097.00&lt;/P&gt;&lt;P&gt;KN01079	9	ZA	248.51&lt;/P&gt;&lt;P&gt;KN01079	K	ZA	10.92&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regard's,&lt;/P&gt;&lt;P&gt;shaik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 08:47:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674435#M1448516</guid>
      <dc:creator>shadow</dc:creator>
      <dc:date>2010-03-11T08:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select stmt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674436#M1448517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because FOR ALL ENTRIES does a delete adjacent duplicates on the resultant set before populating the target internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;STRONG&gt;Please select all the key fields of the table to ensure that the duplicate records are not deleted when using FAE.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 08:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674436#M1448517</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-11T08:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select stmt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674437#M1448518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : temp_itbsik type standard table of it_bsik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_bsik into wa_bsik.&lt;/P&gt;&lt;P&gt;at end of blart.&lt;/P&gt;&lt;P&gt;sum.&lt;/P&gt;&lt;P&gt;apppend wa_bsik to temp_itbsik.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 09:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674437#M1448518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-11T09:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select stmt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674438#M1448519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suhas is right. You do not need the key fields in the target structure, just use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT 
* key fields
BUKRS
LIFNR
UMSKS
UMSKZ
AUGDT
AUGBL
ZUONR
GJAHR
BELNR
BUZEI
* required data fields
lifnr umskz blart dmbtr INTO CORRESPONDING FIELDS OF TABLE it_bsik
 FROM bsik 
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The INTO CORRESPONDING FIELDS clause is always the best option. It will not reduce performance because it is evaluated once at compile time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you will get all records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 09:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674438#M1448519</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-03-11T09:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select stmt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674439#M1448520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also i have checked INTO CORRESPONDING FIELDS v/s INTO TABLE in SE30 many a times. But the former is always an expensive statement. Can you please explain why you say "INTO CORRESPONDING FIELDS is always the best option"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 09:16:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674439#M1448520</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-11T09:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select stmt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674440#M1448521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If, for what ever reason the table structure changes, selecting some fields into an unchanged target structure (or vice versa) you risk a dump in the best case, wrong data in the worst case. INTO CORRESPONDING FIELD &lt;STRONG&gt;always&lt;/STRONG&gt; works correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you feel it is not good for performance, the please deliver a proof in ECC600 or later. I really appreciate so see a significant difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 09:24:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674440#M1448521</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-03-11T09:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select stmt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674441#M1448522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 10:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-stmt/m-p/6674441#M1448522</guid>
      <dc:creator>shadow</dc:creator>
      <dc:date>2010-04-16T10:20:05Z</dc:date>
    </item>
  </channel>
</rss>

