<?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 questions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581841#M262483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If u see the properties of table there will be a check box w/Selcolumn. Check that check box. Declare a field in the internal table for example "sel type c". Give that field name in the box near to that check box "ITAB-SEL".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI of the sceen write the code like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*pai flow logic for tablecontrol 'MPRN'&lt;/P&gt;&lt;P&gt;  LOOP AT i_tab.&lt;/P&gt;&lt;P&gt;    MODULE tabctrl_modify.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  tabctrl_modify  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tabctrl_modify INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODIFY i_tab INDEX mprn-current_line&lt;/P&gt;&lt;P&gt;       TRANSPORTING mprn post_code dm_ndm  sel.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 4.&lt;/P&gt;&lt;P&gt;    APPEND i_tab.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " tabctrl_modify  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Sep 2006 15:05:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-18T15:05:15Z</dc:date>
    <item>
      <title>Table controls questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581839#M262481</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;I've searched the forums for an answer, but didn't find something clear enough for me to understand the whole thing (the SAP documentation on this is just foggy).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to know is:&lt;/P&gt;&lt;P&gt;- When I create a Table control in the screen painter without using the Wizzard, how do I link this table control to an internal table of my program? Is putting fields of this internal table into the table control enough?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- How do I know which rows were selected by the user?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you for your reading and/or answering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 14:58:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581839#M262481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T14:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table controls questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581840#M262482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer the sample programs:&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_1  &lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_2  &lt;/P&gt;&lt;P&gt;RSDEMO_TABLE_CONTROL         &lt;/P&gt;&lt;P&gt;if you haven't done it already.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581840#M262482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Table controls questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581841#M262483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If u see the properties of table there will be a check box w/Selcolumn. Check that check box. Declare a field in the internal table for example "sel type c". Give that field name in the box near to that check box "ITAB-SEL".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI of the sceen write the code like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*pai flow logic for tablecontrol 'MPRN'&lt;/P&gt;&lt;P&gt;  LOOP AT i_tab.&lt;/P&gt;&lt;P&gt;    MODULE tabctrl_modify.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  tabctrl_modify  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tabctrl_modify INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODIFY i_tab INDEX mprn-current_line&lt;/P&gt;&lt;P&gt;       TRANSPORTING mprn post_code dm_ndm  sel.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 4.&lt;/P&gt;&lt;P&gt;    APPEND i_tab.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " tabctrl_modify  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:05:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581841#M262483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Table controls questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581842#M262484</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;1)  In the flow logic and in the PBO when you do the LOOP AT itab..you can specify the table control name using the WITH addition..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT ITAB WITH TC_CONTROL.&lt;/P&gt;&lt;P&gt;    ...&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) In the table control attributes "Selection col. name" update it with a field name 'SELECTED'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Update the internal table with the same field 'SELECTED'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  When the user selects the row the table control structure and in the field SELECTED the field will be updated with 'X'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581842#M262484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Table controls questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581843#M262485</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;- You can put the internal table fields or other fields:&lt;/P&gt;&lt;P&gt;a) If you use internal table fields the table control fields are automatically filled while looping it in PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB WITH CONTROL .....&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) If you use the fields of other structure u need to create a module to fill the fields of tc:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB WITH CONTROL .....&lt;/P&gt;&lt;P&gt;  MODULE SHOW_DATA.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE SHOW_DATA.&lt;/P&gt;&lt;P&gt;  FIELD1 = ITAB-FIELD1.&lt;/P&gt;&lt;P&gt;  FIELD2 = ITAB-FIELD2.&lt;/P&gt;&lt;P&gt;  .....................&lt;/P&gt;&lt;P&gt;  FIELDN = ITAB-FIELDN.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- You have to use a MARK field to know which field is selected, or if you need to select only one field u can use the command GET CURSOR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:10:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581843#M262485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Table controls questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581844#M262486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;See the Below link for a Program, it is a good example for table controal. the links will show the screen shots also&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/online_pgm_main_page.htm" target="test_blank"&gt;http://www.planetsap.com/online_pgm_main_page.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581844#M262486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Table controls questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581845#M262487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While designing / creating the columns fields for table control , use the options "Get from program" button on the top. Now a dialog box will appear asking you to select the fields from the internal table that you have defined in the report program. You can select the desired fields and click enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So automatically the table control gets the value from the internal table when program is executed (in PBO event).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat Ramanan N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Venkat Ramanan Natarajan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:17:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581845#M262487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Table controls questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581846#M262488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much all of you, problem solved!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:24:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-questions/m-p/1581846#M262488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:24:02Z</dc:date>
    </item>
  </channel>
</rss>

