<?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 ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401058#M193843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHEN WILL USE THE FOR ALL ENTRIES STATEMENT IN THE REPORTS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jul 2006 12:58:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-13T12:58:04Z</dc:date>
    <item>
      <title>ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401058#M193843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHEN WILL USE THE FOR ALL ENTRIES STATEMENT IN THE REPORTS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 12:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401058#M193843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T12:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401059#M193844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When you want to select from a table based on your selections that you have already done. you go for for all entires.&lt;/P&gt;&lt;P&gt;you can also use joins instead of for all entries..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 13:01:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401059#M193844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T13:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401060#M193845</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;When u need to upload the data from a table once:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_VBAP LIKE TABLE OF VBAP WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      T_MARA LIKE TABLE OF MARA WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM VBAP INTO TABLE T_VBAP WHERE VBELN IN SO_VBLEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM MARA INTO TABLE T_MARA &lt;/P&gt;&lt;P&gt;   FOR ALL ENTRIES IN T_VBAP&lt;/P&gt;&lt;P&gt;                     WHERE MATNR = T_VBAP-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statament is like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_VBAP.&lt;/P&gt;&lt;P&gt; SELECT SINGLE * FROM MARA INTO T_MARA&lt;/P&gt;&lt;P&gt;                     WHERE MATNR = T_VBAP-MATNR.&lt;/P&gt;&lt;P&gt; APPEND T_MARA.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the first type of select is better for the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 13:02:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401060#M193845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T13:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401061#M193846</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;FOR ALL ENTRIES is used in select statements referencing another internal table. For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from dbtab1 &lt;/P&gt;&lt;P&gt;into table it_dbtab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from dbtab2&lt;/P&gt;&lt;P&gt;into table it_dbtab2&lt;/P&gt;&lt;P&gt;for all entries in it_dbtab1&lt;/P&gt;&lt;P&gt;where field1 = it_dbtab1-field1&lt;/P&gt;&lt;P&gt;  and field2 = it_dbtab1-field2.&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;Please award points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 13:02:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401061#M193846</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-07-13T13:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401062#M193847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you loop an itab wit select inside loop for every entry. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_ekko.&lt;/P&gt;&lt;P&gt; select * from EKPO &lt;/P&gt;&lt;P&gt;  WHERE ebeln EQ t_ekko-ebeln.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can be replaced by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ekpo&lt;/P&gt;&lt;P&gt; for all entries in t_ekko&lt;/P&gt;&lt;P&gt;  where ebeln EQ t_ekko-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avoiding loop-endloop&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 13:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401062#M193847</guid>
      <dc:creator>LucianoBentiveg</dc:creator>
      <dc:date>2006-07-13T13:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401063#M193848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijayreddyk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. we use FOR ALL ENTRIES,&lt;/P&gt;&lt;P&gt;   if we want to select some entries from DB Table,&lt;/P&gt;&lt;P&gt;   w.r.t to&lt;/P&gt;&lt;P&gt;   some list which we already have, in another internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. EG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  We have a list of 2 companies BUKRS, in our internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   We want to get data from T001 table,&lt;/P&gt;&lt;P&gt;   for these 2 companies only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. to get a taste of it, just copy paste in new program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ABC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ITAB LIKE TABLE OF T001 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : T001 LIKE TABLE OF T001 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-BUKRS = '1000'.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;ITAB-BUKRS = '1100'.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM T001&lt;/P&gt;&lt;P&gt;INTO TABLE T001&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN ITAB&lt;/P&gt;&lt;P&gt;WHERE BUKRS = ITAB-BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK-POINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 13:03:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401063#M193848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T13:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401064#M193849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you retrive data from more than one table then use 'FOR ALL ENTRIES' statement instead of using Joins &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will improves the performence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also it will delete duplcate entries &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of it_mara occurs 0,&lt;/P&gt;&lt;P&gt;       matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;       meins like mara-meins,&lt;/P&gt;&lt;P&gt;       end of it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of it_makt occurs 0,&lt;/P&gt;&lt;P&gt;       matnr like makt-matnr,&lt;/P&gt;&lt;P&gt;       maktx like makt-maktx,       &lt;/P&gt;&lt;P&gt;       end of it_mara.&lt;/P&gt;&lt;P&gt;clear it_mara.&lt;/P&gt;&lt;P&gt;refresh it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr&lt;/P&gt;&lt;P&gt;       meins&lt;/P&gt;&lt;P&gt;       from mara&lt;/P&gt;&lt;P&gt;       into table it_mara&lt;/P&gt;&lt;P&gt;       where mtart = 'ROH'.&lt;/P&gt;&lt;P&gt;if su-subrc = 0.&lt;/P&gt;&lt;P&gt; sort it_mara by matnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if not it_mara[] is initial.&lt;/P&gt;&lt;P&gt;  clear it_makt.&lt;/P&gt;&lt;P&gt;  refresh it_makt.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  select matnr&lt;/P&gt;&lt;P&gt;         maktx&lt;/P&gt;&lt;P&gt;         from makt&lt;/P&gt;&lt;P&gt;         into table it_makt&lt;/P&gt;&lt;P&gt;         for all entries in it_mara&lt;/P&gt;&lt;P&gt;         where matnr = it_mara-matnr and&lt;/P&gt;&lt;P&gt;               spras = sy-langu.        &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 13:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401064#M193849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T13:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401065#M193850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR ALL Entries:&lt;/P&gt;&lt;P&gt;================&lt;/P&gt;&lt;P&gt;Outer join can be created using this addition to the where clause in a select statement. It speeds up the performance tremendously, but the cons of using this variation are listed below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Duplicates are automatically removed from the resulting data set. Hence care should be taken that the unique key of the detail line items should be given in the select statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the table on which the For All Entries IN clause is based is empty, all rows are selected into the destination table. Hence it is advisable to check before-hand that the first table is not empty. &lt;/P&gt;&lt;P&gt;If the table on which the For All Entries IN clause is based is very large, the performance will go down instead of improving. Hence attempt should be made to keep the table size to a moderate level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not Recommended:&lt;/P&gt;&lt;P&gt;================&lt;/P&gt;&lt;P&gt;Loop at int_cntry.&lt;/P&gt;&lt;P&gt;Select single * from zfligh into int_fligh&lt;/P&gt;&lt;P&gt;where cntry = int_cntry-cntry.&lt;/P&gt;&lt;P&gt;Append int_fligh. &lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recommended:&lt;/P&gt;&lt;P&gt;============&lt;/P&gt;&lt;P&gt;Select * from zfligh appending table int_fligh&lt;/P&gt;&lt;P&gt;For all entries in int_cntry &lt;/P&gt;&lt;P&gt;Where cntry = int_cntry-cntry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. do visit the following link for more info,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2986" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2986&lt;/A&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... FOR ALL ENTRIES IN itab WHERE cond &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Only selects the records that meet the logical condition cond when each replacement symbol itab-f is replaced with the value of component f of the internal table itab for at least one line of the table. SELECT ... FOR ALL ENTRIES IN itab WHERE cond returns the union of the solution sets of all SELECT statements that would result if you wrote a separate statement for each line of the internal table replacing the symbol itab-f with the corresponding value of component f in the WHERE condition.Duplicates are discarded from the result set. If the internal table itab does not contain any entries, the system treats the statement as though there were no WHERE cond condition, and selects all records (in the current client). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Displaying the occupancy of flights on 28.02.2001: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ftab_type, &lt;/P&gt;&lt;P&gt;carrid TYPE sflight-carrid, &lt;/P&gt;&lt;P&gt;connid TYPE sflight-connid, &lt;/P&gt;&lt;P&gt;END OF ftab_type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ftab TYPE STANDARD TABLE OF ftab_type WITH &lt;/P&gt;&lt;P&gt;NON-UNIQUE DEFAULT KEY INITIAL SIZE 10, &lt;/P&gt;&lt;P&gt;free TYPE I, &lt;/P&gt;&lt;P&gt;wa_sflight TYPE sflight. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Suppose FTAB is filled as follows: &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CARRID CONNID &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-------------- &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LH 2415 &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SQ 0026 &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LH 0400 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM sflight INTO wa_sflight &lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN ftab &lt;/P&gt;&lt;P&gt;WHERE CARRID = ftab-carrid AND &lt;/P&gt;&lt;P&gt;CONNID = ftab-connid AND &lt;/P&gt;&lt;P&gt;fldate = '20010228'. &lt;/P&gt;&lt;P&gt;free = wa_sflight-seatsocc - wa_sflight-seatsmax. &lt;/P&gt;&lt;P&gt;WRITE: / wa_sflight-carrid, wa_sflight-connid, free. &lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The statement has the same effect as: &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT * FROM sflight INTO wa_sflight &lt;/P&gt;&lt;P&gt;WHERE ( carrid = 'LH' AND &lt;/P&gt;&lt;P&gt;connid = '2415' AND &lt;/P&gt;&lt;P&gt;fldate = '20010228' ) OR &lt;/P&gt;&lt;P&gt;( carrid = 'SQ' AND &lt;/P&gt;&lt;P&gt;connid = '0026' AND &lt;/P&gt;&lt;P&gt;fldate = '20010228' ) OR &lt;/P&gt;&lt;P&gt;( carrid = 'LH' AND &lt;/P&gt;&lt;P&gt;connid = '0400' AND &lt;/P&gt;&lt;P&gt;fldate = '20010228' ). &lt;/P&gt;&lt;P&gt;free = wa_sflight-seatsocc - wa_sflight-seatsmax. &lt;/P&gt;&lt;P&gt;WRITE: / wa_sflight-carrid, wa_sflight-connid, free. &lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;You can only use ... FOR ALL ENTRIES IN itab WHERE cond in a SELECT statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the logical condition cond, the symbol itab-f is always a replacement symbol, and should not be confused with the component f of the header line of the internal table itab. The internal table itab does not need to have a header line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each component of the internal table that occurs in a replacement symbol in the WHERE condition must have exactly the same type and length as the corresponding component in the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use replacement symbols in comparisons in LIKE, BETWEEN, or IN expressions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use FOR ALL ENTRIES IN itab, you cannot use ORDER BY f1 ... fn in the ORDER-BY clause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use FOR ALL ENTRIES IN itab, you cannot use a HAVING clause as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u find it useful mark the points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 13:45:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap/m-p/1401065#M193850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T13:45:51Z</dc:date>
    </item>
  </channel>
</rss>

