<?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 controls in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls/m-p/3404423#M817533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this thread...&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="417209"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALso Check these threads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="258202"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="237880"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="239843"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Feb 2008 19:16:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-22T19:16:09Z</dc:date>
    <item>
      <title>table controls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls/m-p/3404422#M817532</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;I am implementing the bdc's using call transaction and batch input .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i got some work to deal with the table controls , can anyone explain me about this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly tell me an T-code so that i can try on that . &lt;/P&gt;&lt;P&gt;And tell me the procedure so that i can implement that sample on the T-code .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 19:09:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls/m-p/3404422#M817532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T19:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: table controls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls/m-p/3404423#M817533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this thread...&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="417209"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALso Check these threads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="258202"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="237880"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="239843"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 19:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls/m-p/3404423#M817533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T19:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: table controls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls/m-p/3404424#M817534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;The Tcode for this is SE80. U will be doing it in Screen painter.&lt;/P&gt;&lt;P&gt;Below is an example for a simple table control, just try out..it helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE CONTROL COMPONENTS:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Control component is used to view the table records and if needed, we can directly modify table records and update the database table using table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, the records can be viewed in rows and columns format separated by horizontal and vertical lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SYNTAX:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS &amp;lt;table_Control_name&amp;gt; TYPE TABLEVIEW USING SCREEN &amp;lt;MPP_screen_number&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS statement is used to create a memory space area for table control component in AS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLEVIEW is a data type for table control component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCREEN NUMBER should be specified to make the system know where the table control was physically created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Navigations to create TABLE CONTROL COMPONENT:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create MPP program -&amp;gt; In TOP INCLUDE FILE, write the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ITAB LIKE KNA1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;CONTROLS TABCTRL TYPE TABLEVIEW USING SCREEN '123'.&lt;/P&gt;&lt;P&gt;DATA CUR TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save -&amp;gt; Activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Normal screen (123) -&amp;gt; Drag and drop TABLE CONTROL component from application toolbar -&amp;gt; Specify its name in attributes box -&amp;gt; Specify title if necessary -&amp;gt; Select HORIZONTAL and VERTICAL SEPARATORS checkbox -&amp;gt; If needed, select COLUMN and ROW selection radiobuttons -&amp;gt; Click on Dictionary/Program Fields from Appn. Toolbar -&amp;gt; Specify internal table name specified in top include file -&amp;gt; Click on 'GET FROM PROGRAM' pushbutton -&amp;gt; Choose required fields -&amp;gt; Click on continue -&amp;gt; Place the fields in table control component -&amp;gt; Add labels for each fields -&amp;gt; Create two pushbuttons (FETCH, EXIT) -&amp;gt; Save -&amp;gt; Flow Logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI module, write following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'FETCH'.&lt;/P&gt;&lt;P&gt;SELECT * FROM KNA1 INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;TABCTRL-LINES = SY-DBCNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Flow Logic editor, write following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt; MODULE STATUS_0123.&lt;/P&gt;&lt;P&gt; LOOP AT ITAB CURSOR CUR WITH CONTROL TABCTRL.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_0123.&lt;/P&gt;&lt;P&gt; LOOP AT ITAB.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, LOOP AT ITAB-ENDLOOP statement in PBO event is used to fetch the records and insert into table control component. CURSOR statement is used to make use of the cursor in table control component whenever we try to select a particular field and modify it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB-ENDLOOP statement in PAI event is used to make necessary modifications to the database table from table control component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Tcode(right click the program name ..goto create...tcode) -&amp;gt; Execute.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 07:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls/m-p/3404424#M817534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T07:01:45Z</dc:date>
    </item>
  </channel>
</rss>

