<?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: select statment- in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/2878424#M675885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These SELECTs are not correct. Here you are using FOR ALL ENTRIES clause. You are trying to extract data from sap tables for all entries of ITAB. But here you need to add condition for ITAB entries in WHERE field. Else it will serve no purpose. Presently it is not clear why are you using FOR ALL ENTRIES clause as it is not been used in SELECTs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link shwos usage of FOR ALL ENTRIES clause with example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.howforge.com/select-for-all-entries-in-abap-4" target="test_blank"&gt;http://www.howforge.com/select-for-all-entries-in-abap-4&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2007 05:13:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-26T05:13:48Z</dc:date>
    <item>
      <title>select statment-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/2878423#M675884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly check these select staments. it is correct or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM mkpf appending CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;           WHERE budat IN s_budat AND&lt;/P&gt;&lt;P&gt;           blart = 'WE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM mseg APPENDING CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN itab&lt;/P&gt;&lt;P&gt;           WHERE mblnr = mkpf-mblnr AND&lt;/P&gt;&lt;P&gt;           matnr IN s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM ekpo INTO corresponding field of table itab&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN itab&lt;/P&gt;&lt;P&gt;           WHERE ebeln = mseg-ebeln&lt;/P&gt;&lt;P&gt;           AND ebelp = mseg-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT * FROM rseg INTO corresponding field of table itab&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN itab&lt;/P&gt;&lt;P&gt;             WHERE ebeln = ekpo-ebeln AND&lt;/P&gt;&lt;P&gt;             ebelp = ekpo-ebelp.&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;Abhay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 05:07:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/2878423#M675884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T05:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: select statment-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/2878424#M675885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These SELECTs are not correct. Here you are using FOR ALL ENTRIES clause. You are trying to extract data from sap tables for all entries of ITAB. But here you need to add condition for ITAB entries in WHERE field. Else it will serve no purpose. Presently it is not clear why are you using FOR ALL ENTRIES clause as it is not been used in SELECTs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link shwos usage of FOR ALL ENTRIES clause with example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.howforge.com/select-for-all-entries-in-abap-4" target="test_blank"&gt;http://www.howforge.com/select-for-all-entries-in-abap-4&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 05:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/2878424#M675885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T05:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: select statment-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/2878425#M675886</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;Instead of appending you can use into itself,i think that will be better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shibin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 05:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/2878425#M675886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T05:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: select statment-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/2878426#M675887</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 have checked your all the select statement,&lt;/P&gt;&lt;P&gt;only the first is working but all other are giving error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dharmishta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 05:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/2878426#M675887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T05:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: select statment-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/2878427#M675888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhay,&lt;/P&gt;&lt;P&gt;             Try using select stmts mentioned below.I have been using them for long time n they work properly.Just make the changes by seeing the stmts below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT NAME1 LIFNR INTO TABLE I_TAB2 FROM LFA1 FOR ALL ENTRIES IN I_TAB1 WHERE LIFNR = I_TAB1-F4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using for all entries ,no need to write into corresponding fields of table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT MATNR AEDAT EBELP EBELN NETPR INTO TABLE I_TAB FROM EKPO FOR ALL ENTRIES IN I_TAB1 WHERE EBELN = I_TAB1-F5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this one n these will be working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 05:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/2878427#M675888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T05:23:56Z</dc:date>
    </item>
  </channel>
</rss>

