<?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: Regarding  Table Control: in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/5032780#M1170634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this program.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPMTZ60 ( tcode TZ60)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jan 2009 08:39:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-06T08:39:21Z</dc:date>
    <item>
      <title>Regarding  Table Control:</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/5032779#M1170633</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 am using the table control first time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement : After entering the material number in the screen the data stored in the custom table needs to be shown in the table control based on the Material Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me some sort of reference code to build the module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also there is one more difficulty that, the structure of the table control is not similar to that of the actual custom table from which the data needs to be displayed.(The order of the fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me if the above requirement is possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anuja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 08:14:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/5032779#M1170633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T08:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding  Table Control:</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/5032780#M1170634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this program.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPMTZ60 ( tcode TZ60)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 08:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/5032780#M1170634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T08:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding  Table Control:</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/5032781#M1170635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anuja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly create an input field in you screen using the dictinoary reference.&lt;/P&gt;&lt;P&gt;Next, Place a button beside that input field to trigger the action.&lt;/P&gt;&lt;P&gt;Assign Function code to the button, say, 'OUT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, create a table control on your screen, with the name, say 'TC'.&lt;/P&gt;&lt;P&gt;Now call the dictionary( press F6 ) and now type the table name and select the desired fields from it.&lt;/P&gt;&lt;P&gt;Now, Press OK, and place the fields on the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This completes your mapping of fields to table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The mandatory thing at the time of creating a table control is to have loops in both PBO and PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample code for the flow logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_bukrs INTO wa_bukrs WITH CONTROL tc1 CURSOR tc1-current_line.&lt;/P&gt;&lt;P&gt;    MODULE display_data.   " Send the data to table control.&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;&lt;/P&gt;&lt;P&gt;  LOOP AT it_bukrs.&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;This is the TOP part of the program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ok_code TYPE sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Table control declaration.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;CONTROLS tc1 TYPE TABLEVIEW USING SCREEN 1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Internal table for listdropdown&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: it_bukrs TYPE TABLE OF lty_bukrs,&lt;/P&gt;&lt;P&gt;      wa_bukrs TYPE lty_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The include for PBO code is like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE display_data OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ok_code = 'OUT'.&lt;/P&gt;&lt;P&gt;  t001-butxt = wa_bukrs-butxt.&lt;/P&gt;&lt;P&gt;  t001-ort01 = wa_bukrs-ort01.&lt;/P&gt;&lt;P&gt;  t001-land1 = wa_bukrs-land1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " DISPLAY_DATA  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Hope it meets your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shashikanth. D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 08:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/5032781#M1170635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T08:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding  Table Control:</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/5032782#M1170636</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;Refer to this link...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=20576590&amp;amp;messageID=6428426" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=20576590&amp;amp;messageID=6428426&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 08:55:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/5032782#M1170636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T08:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding  Table Control:</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/5032783#M1170637</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 have done a same scenerio in which there is first screen ask for material number and after pressing enter it will go to next screen and have eenteries in table control acc. to material number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first u have to give name to material number text box say material_no and define variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;material_no like &amp;lt;databse table&amp;gt;-&amp;lt;fieldname&amp;gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pai of first screen&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_0400.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO CORRESPONDING FIELDS OF itab  &amp;lt;&amp;lt;&amp;lt;this is internal table used in table control&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;  FROM dbtab  WHERE matnr = material_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pbo of second screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB WITH CONTROL Tbl_ctrl&amp;gt;&amp;gt;&amp;gt;&amp;gt; name of table control .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE STATUS_0201.&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;and for order of data ,, you have to create internal table as ur requirement means the order in which data have to show  and use that internal table in table control .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and u can change the order manually by double click on the column of tabele control and change the name of column as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for any queries revert me back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 09:57:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/5032783#M1170637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T09:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding  Table Control:</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/5032784#M1170638</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;Thanks for the replies....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the tabele control wizard to get the table control on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when i enter the material number, i get the corresponding data present in the table for that material number displayed in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Now i want to add new record with this displayed data and want to add the selection coloum for selecting the rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Also, when i scroll in the table control the same records are getting repeated and displayed in the    table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me the approach for the above three points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anuja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 12:04:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/5032784#M1170638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T12:04:29Z</dc:date>
    </item>
  </channel>
</rss>

