<?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: handle table control at cell level in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-table-control-at-cell-level/m-p/7233899#M1525193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya...&lt;/P&gt;&lt;P&gt;there are 2 ways to control the field properties on the column and row label...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) first one is data oriented and is waht is mentioned in the link by Rob...i.e to set the attributes based on the data of the relevant field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) the second step is basically a hard coded scenario which I think would never happend in a  real time scenario.....this is only to provide an explanation to your question...Please have a look at the pseudo code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider my table control with following structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              Field1 Feild2 Feild3 Feild4 Feild5 Feild6&lt;/P&gt;&lt;P&gt;Row1&lt;/P&gt;&lt;P&gt;Row2&lt;/P&gt;&lt;P&gt;Row3&lt;/P&gt;&lt;P&gt;Row4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO I'll write the following code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT TC1.&lt;/P&gt;&lt;P&gt; MODULE change_tc_cell_property.&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;MODULE change_tc_cell_property.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;lv-loopc = sy-loopc. (would give me he currrent table control row)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT tc-cols INTO ls_columns.&lt;/P&gt;&lt;P&gt;  IF      lv_loopc = 3&lt;/P&gt;&lt;P&gt;  AND ls_coulmns-screen-name = 'FIELD3'.&lt;/P&gt;&lt;P&gt;       ls_coulmns-input = 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  MODIFY tc_clos from ls_columns index .....&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code should set the cell corresponding to Row3 and Field3 in disabled mode...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never tried this but am sure this should work...If it doesnot then also it should not be a problem coz this would not be a real time scenario and a real time scenario would correspond more to Rob's link...:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CXTAB is the data type pool in case u need...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sitakant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sitakant Tripathy on Sep 10, 2010 4:24 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sitakant Tripathy on Sep 10, 2010 4:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Sep 2010 14:23:12 GMT</pubDate>
    <dc:creator>sitakant_tripathy2</dc:creator>
    <dc:date>2010-09-10T14:23:12Z</dc:date>
    <item>
      <title>handle table control at cell level</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-table-control-at-cell-level/m-p/7233896#M1525190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table control and i want to make a single cell as input disabled.&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex in table control i have 5 rows and 5 columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make input disabled cell at 3rd column and 2nd row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 09:25:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-table-control-at-cell-level/m-p/7233896#M1525190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-10T09:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: handle table control at cell level</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-table-control-at-cell-level/m-p/7233897#M1525191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to make the loop at screen internally to the loop of table control:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pbo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at xxx with control yyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at screen.&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;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 09:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-table-control-at-cell-level/m-p/7233897#M1525191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-10T09:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: handle table control at cell level</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-table-control-at-cell-level/m-p/7233898#M1525192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See [Dynamic Setting of Field Attributes in Table Controls|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11651] &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 13:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-table-control-at-cell-level/m-p/7233898#M1525192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-10T13:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: handle table control at cell level</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-table-control-at-cell-level/m-p/7233899#M1525193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya...&lt;/P&gt;&lt;P&gt;there are 2 ways to control the field properties on the column and row label...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) first one is data oriented and is waht is mentioned in the link by Rob...i.e to set the attributes based on the data of the relevant field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) the second step is basically a hard coded scenario which I think would never happend in a  real time scenario.....this is only to provide an explanation to your question...Please have a look at the pseudo code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider my table control with following structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              Field1 Feild2 Feild3 Feild4 Feild5 Feild6&lt;/P&gt;&lt;P&gt;Row1&lt;/P&gt;&lt;P&gt;Row2&lt;/P&gt;&lt;P&gt;Row3&lt;/P&gt;&lt;P&gt;Row4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO I'll write the following code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT TC1.&lt;/P&gt;&lt;P&gt; MODULE change_tc_cell_property.&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;MODULE change_tc_cell_property.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;lv-loopc = sy-loopc. (would give me he currrent table control row)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT tc-cols INTO ls_columns.&lt;/P&gt;&lt;P&gt;  IF      lv_loopc = 3&lt;/P&gt;&lt;P&gt;  AND ls_coulmns-screen-name = 'FIELD3'.&lt;/P&gt;&lt;P&gt;       ls_coulmns-input = 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  MODIFY tc_clos from ls_columns index .....&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code should set the cell corresponding to Row3 and Field3 in disabled mode...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never tried this but am sure this should work...If it doesnot then also it should not be a problem coz this would not be a real time scenario and a real time scenario would correspond more to Rob's link...:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CXTAB is the data type pool in case u need...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sitakant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sitakant Tripathy on Sep 10, 2010 4:24 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sitakant Tripathy on Sep 10, 2010 4:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 14:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-table-control-at-cell-level/m-p/7233899#M1525193</guid>
      <dc:creator>sitakant_tripathy2</dc:creator>
      <dc:date>2010-09-10T14:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: handle table control at cell level</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-table-control-at-cell-level/m-p/7233900#M1525194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it is very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 07:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-table-control-at-cell-level/m-p/7233900#M1525194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T07:14:30Z</dc:date>
    </item>
  </channel>
</rss>

