<?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: control table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-table/m-p/3448029#M828218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In module pool program normally you have a screen to display data. If you don't use table control then you will be able to view only one record at a time. &lt;/P&gt;&lt;P&gt;   but &lt;STRONG&gt;what if you want to view all the populated records in internal table at one shot ??&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer is &lt;STRONG&gt;TABLE CONTROL&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table control one can process multiple lines (records).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will be useful if you have situation like : &lt;/P&gt;&lt;P&gt;if you want to see the all the reservations done for single day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Reward points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Adheesh Subhedar on Feb 18, 2008 2:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2008 13:35:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-18T13:35:53Z</dc:date>
    <item>
      <title>control table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-table/m-p/3448025#M828214</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;what is control table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 03:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-table/m-p/3448025#M828214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T03:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: control table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-table/m-p/3448026#M828215</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;Enter Document types in Control Table is nothing but the table that controls the Adjustment cateogries, document types (you defined prior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps u.&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;sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 05:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-table/m-p/3448026#M828215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T05:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: control table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-table/m-p/3448027#M828216</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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLE CONTROL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &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;STRONG&gt;ABAP declaration&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;CONTROLS: tab_con TYPE TABLEVIEW  USING SCREEN nnnn&lt;/P&gt;&lt;P&gt;  Here tab_con is the same name we used in screen for the table control.&lt;/P&gt;&lt;P&gt;This ABAP statement will declare a control variable that will be used to access&lt;/P&gt;&lt;P&gt;the table control ,  and set it's various attributes like number of fixed columns(tab_con-FIXED_COLS) ,total number of records it will display(tab_con-LINES).It is of type CXTAB_CONTROL and is a deep structure(structure containing structures).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REFRESH CONTROL  tab_con FROM SCREEN nnnn&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; This ABAP statement will initialize the table control on the screen nnnn to its initial values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PBO processing&lt;/STRONG&gt;I&lt;/P&gt;&lt;P&gt;n PBO we have to use the screen LOOP ...ENDLOOP statement , with or without&lt;/P&gt;&lt;P&gt;intenal table.&lt;/P&gt;&lt;P&gt;   LOOP WITH  CONTROL tab_con.&lt;/P&gt;&lt;P&gt;   MODULE fill_tab_con.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;Here a module should be called between the loop endloop statement to transfer&lt;/P&gt;&lt;P&gt;data from th ABAP program to the screen table through a structure.This module&lt;/P&gt;&lt;P&gt;should use the CURRENT_LINE attribute of the table control variable to get the&lt;/P&gt;&lt;P&gt;current screen table record index to read the data from the internal table into a work area.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;READ TABLE int_table INDEX tab_con-CURRENT_LINE&lt;/P&gt;&lt;P&gt;The record read will be placed in the header line of the internal table and will be available to the similarly named  screen fields or if these are different it can be written explicitly. e.g.&lt;/P&gt;&lt;P&gt;screen_field_name = int_table-field_name&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;   LOOP AT int_table INTO workarea WITH CONTROL tab_con CURSOR i FROM  &lt;/P&gt;&lt;P&gt;   n1 TO n2.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Here the module call is not required to fill the screen table.The CURSOR parameter is a integer of type I indicating which absolute internal table line&lt;/P&gt;&lt;P&gt;should be the first to display on the table control .FROM n1 TO n2 can be used&lt;/P&gt;&lt;P&gt;to restrict the starting line and ending line number of the internal table , they are of type SY-TABIX.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In both cases before the LOOP statement a module should be called which&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;is generally for setting of status ,in which we should fill the LINES attribute&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(tab_con-LINES ) of the control with the total number of internal table records,doing this ensures correct and automatic scrolling&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The ABAP statement DESCRIBE TABLE int_table LINES lines can be used&lt;/P&gt;&lt;P&gt;to get the total lines in an int table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PAI Processing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; We have to use LOOP ... ENDLOOP in PAI so that data can transfer fro table control to ABAP program. If we want to write changes to the data we should&lt;/P&gt;&lt;P&gt;call a module between the LOOP ... ENDLOOP. The MODULE call to process user commands (SY-UCOM) should be called after the ENDLOOP statement.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT&lt;/P&gt;&lt;P&gt;MODULE mod AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;LOOP AT itab_table   or LOOP "depending on whether we are using AT int_table&lt;/P&gt;&lt;P&gt;MODULE modify_int_table.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;MODULE user_command.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In the MODULE call modify_int_table we can use&lt;/P&gt;&lt;P&gt;MODIFY int_table FROM workarea INDEX tab_con-CURRENT_LINE&lt;/P&gt;&lt;P&gt;or we can use&lt;/P&gt;&lt;P&gt;int_table-field_name = screen_field_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Please Reward points&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 05:31:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-table/m-p/3448027#M828216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T05:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: control table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-table/m-p/3448028#M828217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Control table is used to link the values of the size category and data class defined in the Dictionary level to the underline date base table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 10:59:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-table/m-p/3448028#M828217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T10:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: control table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-table/m-p/3448029#M828218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In module pool program normally you have a screen to display data. If you don't use table control then you will be able to view only one record at a time. &lt;/P&gt;&lt;P&gt;   but &lt;STRONG&gt;what if you want to view all the populated records in internal table at one shot ??&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer is &lt;STRONG&gt;TABLE CONTROL&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table control one can process multiple lines (records).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will be useful if you have situation like : &lt;/P&gt;&lt;P&gt;if you want to see the all the reservations done for single day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Reward points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Adheesh Subhedar on Feb 18, 2008 2:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 13:35:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-table/m-p/3448029#M828218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T13:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: control table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-table/m-p/3448030#M828219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Table controls&lt;/STRONG&gt; are used to display large quantities of data in tables. Like all screen elements, they are defined in the Screen Painter. Within a table control, you can display input/output fields, radio buttons, checkboxes, radio button groups, and pushbuttons. You can have up to 255 columns and each column can have a heading. The first row is always the header row. Table controls offer users the following functions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     1.      You can use the resizing attributes to specify whether the table control can &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resize the screen vertically or horizontally. If the control supports resizing, you can specify a &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;minimum size for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       2.      You can define column headers that are also pushbuttons. You can use the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pushbutton to select the column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       3.      The width and position of columns can be changed by the user or by the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       4.      You can save the current settings as a default setting for a user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       5.      Vertical scrolling with a scroll bar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       6.      Horizontal scrolling with a scroll bar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       7.      You can fix a number of lead columns that cannot be moved by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       8.      A selection column enables you to select rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 14:24:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-table/m-p/3448030#M828219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T14:24:39Z</dc:date>
    </item>
  </channel>
</rss>

