<?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 control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338463#M515147</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;&amp;lt;b&amp;gt;follow these steps for implemeting table control in module pool program.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &amp;lt;b&amp;gt;Declaration of table control in the module pool program&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;syntax&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONTROLS &amp;lt;name&amp;gt; TYPE TABLEVIEW USING SCREEN &amp;lt;screen number&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here name----&amp;gt; table control name( give you as per your needs)&lt;/P&gt;&lt;P&gt;       screen number----&amp;gt;provide in which screen you design table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &amp;lt;b&amp;gt;Desiging table control on screen.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to design table control on the screen, you need SE51(screen painter) here click on TABLE in control bar and place it on the screen . you can adjust the length and width of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name the table control (here you need to use the same name which you have used for declaration of table control in module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) &amp;lt;b&amp;gt;passing data to table control.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to code a LOOP statement in both PBO and PAI event of the screen. &lt;/P&gt;&lt;P&gt;with LOOP statement ypu can transfer data from program to table control and table control to program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;syntax&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PBO.

LOOP AT &amp;lt;internal table&amp;gt; WITH CONTROL CURSOR &amp;lt; scroll variable&amp;gt;.
module assign.
ENDLOOP.

PAI.
LOOP AT &amp;lt;internal table&amp;gt;.
ENDLOOP.

&amp;lt;b&amp;gt;in module poop program.&amp;lt;/b&amp;gt;

module assign.
**sample code.
kna1-kunnr = itab-kunnr.
kna1-name1 = itab-name1.
kna1-ort01 = itab-ort01.
endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the tableview has few importent fields like..&lt;/P&gt;&lt;P&gt;LINE----&amp;gt; number of displayable rows in a table.&lt;/P&gt;&lt;P&gt;TOP_LINE----&amp;gt; the row of table where the screen dispalys start.&lt;/P&gt;&lt;P&gt;CUREENT_LINE----&amp;gt; the row currently being placed inside LOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ashokreddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2007 10:57:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-15T10:57:34Z</dc:date>
    <item>
      <title>table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338461#M515145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello friends,&lt;/P&gt;&lt;P&gt;i am told that i will be implementing table control in module pool, next week.&lt;/P&gt;&lt;P&gt;can any one plz tell me which commands to use and what their purpose  is.&lt;/P&gt;&lt;P&gt;thanks and reagrds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 10:26:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338461#M515145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T10:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338462#M515146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;syntax:&lt;/P&gt;&lt;P&gt;CONTROLS &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 10:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338462#M515146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T10:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338463#M515147</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;&amp;lt;b&amp;gt;follow these steps for implemeting table control in module pool program.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &amp;lt;b&amp;gt;Declaration of table control in the module pool program&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;syntax&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONTROLS &amp;lt;name&amp;gt; TYPE TABLEVIEW USING SCREEN &amp;lt;screen number&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here name----&amp;gt; table control name( give you as per your needs)&lt;/P&gt;&lt;P&gt;       screen number----&amp;gt;provide in which screen you design table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &amp;lt;b&amp;gt;Desiging table control on screen.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to design table control on the screen, you need SE51(screen painter) here click on TABLE in control bar and place it on the screen . you can adjust the length and width of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name the table control (here you need to use the same name which you have used for declaration of table control in module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) &amp;lt;b&amp;gt;passing data to table control.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to code a LOOP statement in both PBO and PAI event of the screen. &lt;/P&gt;&lt;P&gt;with LOOP statement ypu can transfer data from program to table control and table control to program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;syntax&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PBO.

LOOP AT &amp;lt;internal table&amp;gt; WITH CONTROL CURSOR &amp;lt; scroll variable&amp;gt;.
module assign.
ENDLOOP.

PAI.
LOOP AT &amp;lt;internal table&amp;gt;.
ENDLOOP.

&amp;lt;b&amp;gt;in module poop program.&amp;lt;/b&amp;gt;

module assign.
**sample code.
kna1-kunnr = itab-kunnr.
kna1-name1 = itab-name1.
kna1-ort01 = itab-ort01.
endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the tableview has few importent fields like..&lt;/P&gt;&lt;P&gt;LINE----&amp;gt; number of displayable rows in a table.&lt;/P&gt;&lt;P&gt;TOP_LINE----&amp;gt; the row of table where the screen dispalys start.&lt;/P&gt;&lt;P&gt;CUREENT_LINE----&amp;gt; the row currently being placed inside LOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ashokreddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 10:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338463#M515147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T10:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338464#M515148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you friends, for the replies,&lt;/P&gt;&lt;P&gt;can any one plz tell me &lt;/P&gt;&lt;P&gt;1)how to track changes,&lt;/P&gt;&lt;P&gt;2) disable few input fields&lt;/P&gt;&lt;P&gt;thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 12:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338464#M515148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T12:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338465#M515149</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;2)IN ONE OF THE pbo MODULES WRITE BELOW CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:cols TYPE cxtab_column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT TABC_200-cols INTO cols.&lt;/P&gt;&lt;P&gt;IF cols-SCREEN-FIELDNAME = 'UR FIELD'.&lt;/P&gt;&lt;P&gt;        cols-SCREEN-INVISIBLE = '1'.&lt;/P&gt;&lt;P&gt;        MODIFY TABC_200-cols FROM cols.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RGDS,&lt;/P&gt;&lt;P&gt;BHARAT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 12:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338465#M515149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T12:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338466#M515150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To modify the screen you have to use the table control structure.&lt;/P&gt;&lt;P&gt;You will get a structure with the name which you created the table control.&lt;/P&gt;&lt;P&gt;this structure is called deep structure. Deep structure means a structure with one of the field is an internal table or string or xstring. In this case this structure contains one internal table as one of the field. Here in this structre you have fields to modify the table control and the internal table contains the information about the columns. By using this you can modify the columns of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will get the structure with the name of the table control which you are declaring in the top include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For better reference go through the seimens material. Its good for beginers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 15:45:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338466#M515150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T15:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338467#M515151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use demo program to get better idea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABCONT_LOOP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 15:57:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2338467#M515151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T15:57:59Z</dc:date>
    </item>
  </channel>
</rss>

