<?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 Doubt in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/1566718#M256033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table control on a custom screen containing several rows of data depending on the user input on the selection screen . This table control has 5 columns .&lt;/P&gt;&lt;P&gt;The first column name is KEY . it contains value of a number of fields concatenated together forming a key .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg : the fields are matnr mblnr xblnr , so the value in this column would be something like : value of all 3 fields together without any space . My problem is that i do not know the number of these fields till run time , so i do not know whether the key field will contain data from 5 fields or 4 fields .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is this : I want to make the column heading dynamic for this field ..for eg if there is data for 2 fields like matnr and xblnr ,then the heading shud be material number - xblnr or if there are 4 fields ..then the heading shud be the description of those 4 fields ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible . Can i make the column header of a table control dynamic . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me out as it is urgent ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will duly reward all ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Ankit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Oct 2006 11:45:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-04T11:45:59Z</dc:date>
    <item>
      <title>Doubt in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/1566718#M256033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table control on a custom screen containing several rows of data depending on the user input on the selection screen . This table control has 5 columns .&lt;/P&gt;&lt;P&gt;The first column name is KEY . it contains value of a number of fields concatenated together forming a key .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg : the fields are matnr mblnr xblnr , so the value in this column would be something like : value of all 3 fields together without any space . My problem is that i do not know the number of these fields till run time , so i do not know whether the key field will contain data from 5 fields or 4 fields .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is this : I want to make the column heading dynamic for this field ..for eg if there is data for 2 fields like matnr and xblnr ,then the heading shud be material number - xblnr or if there are 4 fields ..then the heading shud be the description of those 4 fields ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible . Can i make the column header of a table control dynamic . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me out as it is urgent ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will duly reward all ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Ankit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 11:45:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/1566718#M256033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T11:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/1566719#M256034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try and use a variable in the heading......click the 'create element' button and try and paste it into the column heading itself. It might work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: I have tried it an it worked. I deleted the existing text variable in a column and pasted in an input/output field in its place. I had to set the length to make sure it filled out the column. Then in the abap I declared a variable with the same name and moved some text to it before the pbo. The text then came out in the column heading I had changed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 11:55:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/1566719#M256034</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-10-04T11:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/1566720#M256035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi in the PBO module of the screen load the dynamic headings into the Table Control Headings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare variables which hold the the dynamic name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work, by default they are set to AUTOTEXT***&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/1566720#M256035</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2006-10-04T12:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/1566721#M256036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think its possible in Table Control to change the column headings dynamically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is possible in ALV. You just need to put a If condition in the field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will suggest you to go for ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. mark points for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-table-control/m-p/1566721#M256036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T12:19:56Z</dc:date>
    </item>
  </channel>
</rss>

