<?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: dynamic column assignment to the table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-column-assignment-to-the-table-control/m-p/1051873#M89427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think recently i saw some posting on this topic..&lt;/P&gt;&lt;P&gt;one week or 10days back..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to find using search...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reagrds&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2005 16:50:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-01T16:50:14Z</dc:date>
    <item>
      <title>dynamic column assignment to the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-column-assignment-to-the-table-control/m-p/1051872#M89426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ..&lt;/P&gt;&lt;P&gt;I have a requirement in which i have to assign the columns dynamically at the run time to the table control... for example ..like in the transaction MC81.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway .. small help will be a great...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ramgopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 16:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-column-assignment-to-the-table-control/m-p/1051872#M89426</guid>
      <dc:creator>ramgopalyadav</dc:creator>
      <dc:date>2005-12-01T16:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic column assignment to the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-column-assignment-to-the-table-control/m-p/1051873#M89427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think recently i saw some posting on this topic..&lt;/P&gt;&lt;P&gt;one week or 10days back..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to find using search...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reagrds&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 16:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-column-assignment-to-the-table-control/m-p/1051873#M89427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T16:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic column assignment to the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-column-assignment-to-the-table-control/m-p/1051874#M89428</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 define the TC with all possible fields and at run time manipulate the column display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how it can be done :&lt;/P&gt;&lt;P&gt;In PBO -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: cols LIKE LINE OF tcname-cols.&lt;/P&gt;&lt;P&gt;LOOP AT tcname-cols&lt;/P&gt;&lt;P&gt; INTO cols where index = n (whatever the column no).&lt;/P&gt;&lt;P&gt;  cols-invisible = '1'.  &lt;/P&gt;&lt;P&gt;           "1 for invisible true and 0 for false&lt;/P&gt;&lt;P&gt;  MODIFY TCNAME-cols FROM cols INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kalpana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kalpana Tyagi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 17:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-column-assignment-to-the-table-control/m-p/1051874#M89428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T17:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic column assignment to the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-column-assignment-to-the-table-control/m-p/1051875#M89429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramgopal,&lt;/P&gt;&lt;P&gt;I'm not sure if it's what you want but you can set up a table control relating to a generic table where every column is, say, 20 chars and then populate that from whichever source you like. For example I created a simplistic version of SE16 where I can put the name of the dictionary table I want to display on the selection screen and the next screen shows a table control holding the first 5 columns of the first few rows of the selected table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The start of the program was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_table TYPE tablename OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES znrw_tc. " has 5 cols...col01,col02 etc each c20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA w_row TYPE znrw_tc.&lt;/P&gt;&lt;P&gt;DATA t_tab TYPE TABLE OF znrw_tc WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;table&amp;gt; TYPE ANY,&lt;/P&gt;&lt;P&gt;               &amp;lt;in_column&amp;gt; TYPE ANY,&lt;/P&gt;&lt;P&gt;               &amp;lt;out_column&amp;gt; TYPE any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  DATA dref TYPE REF TO data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE DATA dref TYPE (p_table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN dref-&amp;gt;* TO &amp;lt;table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * UP TO 10 ROWS&lt;/P&gt;&lt;P&gt;  FROM   (p_table)&lt;/P&gt;&lt;P&gt;  INTO   &amp;lt;table&amp;gt;.&lt;/P&gt;&lt;P&gt;    DO 5 TIMES.&lt;/P&gt;&lt;P&gt;      ASSIGN COMPONENT sy-index  OF STRUCTURE &amp;lt;table&amp;gt; TO &amp;lt;in_column&amp;gt;.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      ASSIGN COMPONENT sy-index  OF STRUCTURE w_row TO &amp;lt;out_column&amp;gt;.&lt;/P&gt;&lt;P&gt;      &amp;lt;out_column&amp;gt; = &amp;lt;in_column&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;    append w_row to t_tab.&lt;/P&gt;&lt;P&gt;    ...&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL SCREEN 0100.&lt;/P&gt;&lt;P&gt;......................&lt;/P&gt;&lt;P&gt;The hardest part was creating the table control with the wizard but I found that if I created a structure (ZNRW_TC) in SE11 it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2005 04:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-column-assignment-to-the-table-control/m-p/1051875#M89429</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2005-12-02T04:29:54Z</dc:date>
    </item>
  </channel>
</rss>

