<?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: in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310465#M792908</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;The cycle LOOP/ENDLOOP of PBO is to transfer the data from memory (so from an internal table) to screen (so to table control).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The cycle LOOP/ENDLOOP of PAI is to transfer the data from screen (so from table control) to memory (so to an internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should consider the table control is a particular screen table having a number of records can be dispalyed on the screen only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you design a table control with 10 rows by screen painter, your table control can have 10 rows only. If you need to display a data of a table with 100 records, the LOOP/ENDLOOP loads (to the screen) or downloads (from the screen) only a package of 10 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2008 08:22:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-05T08:22:48Z</dc:date>
    <item>
      <title>in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310461#M792904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;while getting data to table control , what is the use of keeping loop and endloop in both PBO and PAI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 08:18:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310461#M792904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T08:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310462#M792905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to read the values to the screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 08:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310462#M792905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T08:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310463#M792906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;table control is used to put data on screen in table form&lt;/P&gt;&lt;P&gt;and same is the case to get data from screen entered in form of table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so there are multiple entries to display on screen&lt;/P&gt;&lt;P&gt;And multiple enteries to get from screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so we use loop-endloop in both PBO and PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP Tableview Control &lt;/P&gt;&lt;P&gt;Basic form &lt;/P&gt;&lt;P&gt;CONTROLS ctrl TYPE TABLEVIEW USING SCREEN scr. &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Creates a table control ctrl of the type TABLEVIEW. The reference screen for the initialization is the screen scr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purpose &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table control (referred to here as TC ) facilitates the display and entry of one-line, tabular data in dialog transactions. &lt;/P&gt;&lt;P&gt;The functional scope has been defined so that you can use the standard methods of a TC to easily implement many typical set operations, which are usually handled by an elementary STEP-LOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functional scope &lt;/P&gt;&lt;P&gt;·	Tabular area for displaying and editing data. &lt;/P&gt;&lt;P&gt;·	Column width and column position modifiable by user and by program. &lt;/P&gt;&lt;P&gt;·	Storing and loading of user-specific column layout. &lt;/P&gt;&lt;P&gt;·	Selection column for line selection with color selection display. &lt;/P&gt;&lt;P&gt;·	Variable column headers as pushbuttons for column selection. &lt;/P&gt;&lt;P&gt;·	Single selection, multiple selection, Select/deselect all. &lt;/P&gt;&lt;P&gt;·	Scrolling functions (horizontal and vertical) using the scroll bar. &lt;/P&gt;&lt;P&gt;·	Fixing of any number of key columns. &lt;/P&gt;&lt;P&gt;·	Setting attributes for each cell at runtime. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Programming &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data exchange between the application and the SAPgui is achieved with a STEP-LOOP, that is an ABAP module is called to transfer data line-by-line for each page. &lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Processing without an internal table &lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT. &lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL ctrl. &lt;/P&gt;&lt;P&gt;  MODULE ctrl_pbo. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT. &lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL ctrl. &lt;/P&gt;&lt;P&gt;  MODULE ctrl_pai. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;In this case, the module ctrl_pbo OUTPUT is called once for each output line before the screen is displayed, in order to fill the output fields. &lt;/P&gt;&lt;P&gt;After the user has entered data on the screen, the module ctrl_pai INPUT is executed to check the input and copy the new contents. &lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Processing with an internal table &lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT. &lt;/P&gt;&lt;P&gt;LOOP AT itab WITH CONTROL ctrl CURSOR ctrl-CURRENT_LINE. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT. &lt;/P&gt;&lt;P&gt;LOOP AT itab WITH CONTROL ctrl. &lt;/P&gt;&lt;P&gt;  MODULE ctrl_pai. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;Here, the system fills the output fields before displaying the screen by reading the internal table itab. &lt;/P&gt;&lt;P&gt;When the user has entered data, the module ctrl_pai INPUT must be executed to check the input and to refresh the contents of the internal table. &lt;/P&gt;&lt;P&gt;If there are several table controls on one screen, the order of the loop statements in the flow logic must correspond to the order of the controls on the screen (from top left to bottom right). &lt;/P&gt;&lt;P&gt;Vertical scrolling with the scroll bar is followed by the event PAI for the displayed page. Then, cntl-TOP_LINE is increased and PBO is processed for the next page. &lt;/P&gt;&lt;P&gt;Program-driven scrolling and most of the functions described above are achieved by manipulating the control attributes. &lt;/P&gt;&lt;P&gt;Attributes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CONTROLS statement creates a complex data object of the type CXTAB_CONTROL with the name of the control. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You maintain the initial values in the Screen Painter and assign the screen with the initial values for a control using the addition USING SCREEN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A further dynamic initialization occurs in the "1st access to the control" (setting or reading values). However, the time of the "1st access" is not clearly specified. This is especially important for the LINES component, which controls the scroll bar of the table control. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a description of individual components of the structure CXTAB_CONTROL, refer to: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Controls in ABAP Programs &lt;/P&gt;&lt;P&gt;When displaying the control, the system uses the current contents at the time when all PBO modules have run. The modified values (changed by the user on the screen) are set directly before the first PAI is called. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;P&gt;Gaurav J.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gaurav Juneja on Feb 5, 2008 9:21 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 08:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310463#M792906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T08:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310464#M792907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop and endloop are used to populate your screen table with internal table contents in PBO&lt;/P&gt;&lt;P&gt;and in PAI it is used to to populate your database table with contents displayed on your screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward if useful&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 08:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310464#M792907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T08:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310465#M792908</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;The cycle LOOP/ENDLOOP of PBO is to transfer the data from memory (so from an internal table) to screen (so to table control).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The cycle LOOP/ENDLOOP of PAI is to transfer the data from screen (so from table control) to memory (so to an internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should consider the table control is a particular screen table having a number of records can be dispalyed on the screen only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you design a table control with 10 rows by screen painter, your table control can have 10 rows only. If you need to display a data of a table with 100 records, the LOOP/ENDLOOP loads (to the screen) or downloads (from the screen) only a package of 10 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 08:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310465#M792908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T08:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310466#M792909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but can u tell me why we need it in both...&lt;/P&gt;&lt;P&gt;suppose i am making my table control only output enable and data display in table control from internal table so as per ur answer loop endloop needed only in PBO but if we dont write loop endloop in PAI, it gives error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u give me reason for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 12:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310466#M792909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T12:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310467#M792910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;how can i enable the fields in table controle, thouse i had disable whole fields already and i had created one pussbutton show that when ever i press that "puss" some of my fields should enable show that i can make edit or modify that fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz revert back soon .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;wasim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 06:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310467#M792910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T06:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310468#M792911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;how can i enable the fields in table controle, thouse i had disable whole fields already and i had created one pussbutton show that when ever i press that "puss" some of my fields should enable show that i can make edit or modify that fields what is the code for that ?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz revert back soon .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;wasim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 06:45:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310468#M792911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T06:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310469#M792912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;thax i got the answer...but not from sap guru by my own buz no one has reply me ....! by&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 05:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/in-table-control/m-p/3310469#M792912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T05:21:41Z</dc:date>
    </item>
  </channel>
</rss>

