<?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: table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598626#M268790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for all entreis is to get the values into a internal table based on the values of another internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select... from table into itab2 for all entries in itab1 where field = itab1-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field is common to both int tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the programs demo_dynpro_tabcont_loop&lt;/P&gt;&lt;P&gt;                 demo_dynpro_tabcont_loop_at&lt;/P&gt;&lt;P&gt;for table controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Oct 2006 06:44:56 GMT</pubDate>
    <dc:creator>gopi_narendra</dc:creator>
    <dc:date>2006-10-10T06:44:56Z</dc:date>
    <item>
      <title>table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598621#M268785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the significance of table control..why/when/where do we use..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the query select..forallentries... under which circumstances we use and what are the possible output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 06:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598621#M268785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T06:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598622#M268786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table Control:-&lt;/P&gt;&lt;P&gt;These are the screen elements used to display tabular data they can be called&lt;/P&gt;&lt;P&gt;as screen tables( like STEP LOOP).To use table control we have to create it on the screen using SCREEN PAINTER(SE51) and declare a control variable of TYPE TABLEVIEW using CONTROLS statement in the ABAP program. We have to use LOOP .. ENDLOOP statement in both PBO and PAI with or without AT int_table parameter. IF AT int_table parameter is not used than we have to place a MODULE call between the LOOP...ENDLOOP statement to fill the screen table rows from the ABAP program in PBO and program our own scrolling functions&lt;/P&gt;&lt;P&gt;using OK_CODE field.&lt;/P&gt;&lt;P&gt;Having a parallel loop(at screen table rows &amp;amp; int table rows) by using parameter &lt;/P&gt;&lt;P&gt;AT int_table makes the ABAP code simple.&lt;/P&gt;&lt;P&gt;A special structure of type CXTAB_CONTROL is used to set/get various&lt;/P&gt;&lt;P&gt;attributes of table control at runtime like CURRENT_LINE ,TOP_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;forallentries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U will be using this statment when u are querying a database based on all the entries in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose u have list of customer no's in itab and now u want to query the vbak for the respective entries in itab,in this case u have to use for all entrie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if I am not clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 06:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598622#M268786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T06:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598623#M268787</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;Select ...For all entries  is to improve the database performance ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we use select within a loop instead of select for all entries it has to loop and also select statement .&lt;/P&gt;&lt;P&gt;check sy-subrc value aslo .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before applying for all entries you must sort and also delete the duplicates if any from  the internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table control is to have a table pattern on screen for which all the properties will be set by default .&lt;/P&gt;&lt;P&gt;we can even update the databse using table controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 06:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598623#M268787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T06:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598624#M268788</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;Kindly check the &amp;lt;b&amp;gt;syntax:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... FOR ALL ENTRIES IN itab WHERE ... col operator itab-comp ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Effect&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the addition FOR ALL ENTRIES is specified before the language element WHERE, then the components comp of the internal table itab can be used as operands when comparing with &amp;lt;b&amp;gt;relational operators&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;WHERE - Relational operators&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Syntax&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;... col operator f ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Effect&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logical expression compares the content of the column col, corresponding to the relational operator operator, with the content of f. Another column of a database table specified behind FROM, an ABAP data object, or a scalar subquery can be used for f. If f is another column, it must be specified via dbtab&lt;SUB&gt;comp or tabalias&lt;/SUB&gt;comp. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table itab must have a structured line type and the component comp must be &lt;/P&gt;&lt;P&gt;compatible with the column col. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logical expression sql_cond of the WHERE condition can comprise various &lt;/P&gt;&lt;P&gt;logical expressions by using AND and OR. However, if &amp;lt;b&amp;gt;FOR ALL ENTRIES&amp;lt;/b&amp;gt; is specified, &lt;/P&gt;&lt;P&gt;there must be at least one Comparison with a column of the internal table itab, &lt;/P&gt;&lt;P&gt;which can be specified either statistically or dynamically (Release 6.40 and higher). &lt;/P&gt;&lt;P&gt;In a statement with a SELECT statement with &amp;lt;b&amp;gt;FOR ALL ENTRIES&amp;lt;/b&amp;gt;, the addition &amp;lt;b&amp;gt;ORDER BY&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;can only be used with the addition &amp;lt;b&amp;gt;PRIMARY KEY&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The whole logical expression sql_cond is evaluated for each individual line of the &lt;/P&gt;&lt;P&gt;internal table itab. The resulting set of the &amp;lt;b&amp;gt;SELECT&amp;lt;/b&amp;gt; statement is the union of &lt;/P&gt;&lt;P&gt;the resulting sets from the individual evaluations.&lt;/P&gt;&lt;P&gt;Duplicate lines are automatically removed from the resulting set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the internal table itab is empty, the whole WHERE statement is ignored and &lt;/P&gt;&lt;P&gt;all lines in the database are put in the resulting set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 06:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598624#M268788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T06:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598625#M268789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is very useful link for table control,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;for all entries&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;"FOR ALL ENTRIES IN..." (outer join) are very fast but keep in the mind the special features and 3 pitfalls of using it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(a) Duplicates are removed from the answer set as if you had specified "SELECT DISTINCT"... So unless you intend for duplicates to be deleted include the unique key of the detail line items in your select statement. In the data dictionary (SE11) the fields belonging to the unique key are marked with an "X" in the key column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(b) If the "one" table (the table that appears in the clause FOR ALL ENTRIES IN) is empty, all rows in the "many" table (the table that appears in the SELECT INTO clause ) are selected. Therefore make sure you check that the "one" table has rows before issuing a select with the "FOR ALL ENTRIES IN..." clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(c) If the 'one' table (the table that appears in the clause FOR ALL ENTRIES IN) is very large there is performance degradation Steven Buttiglieri created sample code to illustrate this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this link as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/hema.rao/blog/2006/09/25/performance-tuning--an-overlooked-activity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Ragu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 06:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598625#M268789</guid>
      <dc:creator>raguraman_c</dc:creator>
      <dc:date>2006-10-10T06:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598626#M268790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for all entreis is to get the values into a internal table based on the values of another internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select... from table into itab2 for all entries in itab1 where field = itab1-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field is common to both int tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the programs demo_dynpro_tabcont_loop&lt;/P&gt;&lt;P&gt;                 demo_dynpro_tabcont_loop_at&lt;/P&gt;&lt;P&gt;for table controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 06:44:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598626#M268790</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-10-10T06:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598627#M268791</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;One more thing is If u use &amp;lt;b&amp;gt;FOR ALL ENTRIES&amp;lt;/b&amp;gt; no need of deleting duplicate records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF u use JOINS u have to write statement like delete adjacent duplicate .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kishore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 06:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598627#M268791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T06:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598628#M268792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;To add with Kranthi's statement.&lt;/P&gt;&lt;P&gt;Before writing For all entries we should check the Internal table is not empty. Otherwise it select all the values from the table irrespective of the condition . So it is the performence issus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableControl.&lt;/P&gt;&lt;P&gt;We can very well use ALV grids. But in the future if you want to do BDC we cannot proceed with ALV grids. this is one main advantage with Table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 06:47:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598628#M268792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T06:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598629#M268793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 05:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1598629#M268793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-07T05:33:10Z</dc:date>
    </item>
  </channel>
</rss>

