<?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 issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/4907955#M1145874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun Chaudhary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to set the function code of the checkbos as &lt;STRONG&gt;'CS'&lt;/STRONG&gt; and the function type as &lt;STRONG&gt;'S'&lt;/STRONG&gt;, to make sure that once you check/uncheck the checkbox, an event is triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in the PAI of the screen, inside &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop with control &amp;lt;tab_ctrl_name&amp;gt;.
 module modify_tab.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this module you can use the group for the input/output fields and the enable/disable them as per your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if chk = 'X'. "if checkbox is checked
 loop at screen.
  if screen-group1 = 'ABC'. "say textbox (column for a table) has group1 as ABC
   screen-input = ' '. "disable a column
   screen-active = ' '.
  endif.
  modify screen.
 elseif chk = ' '. "if checkbox is unchecked
 loop at screen.
  if screen-group1 = 'ABC'. "say textbox (column for a table) has group1 as ABC
   screen-input = 'X'. "enable a column
   screen-active = 'X'.
  endif.
  modify screen.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your prolem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Dec 2008 17:59:01 GMT</pubDate>
    <dc:creator>I355602</dc:creator>
    <dc:date>2008-12-12T17:59:01Z</dc:date>
    <item>
      <title>Table control issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/4907953#M1145872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have designed a Table control using wizard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Listbox on my first field of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirement is that when i select a particular value in the Listbox one of my other field say the 5th field in the Table control should get input disabaled and it should display only as an output field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me in solving the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 16:21:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/4907953#M1145872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T16:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table control issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/4907954#M1145873</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 have to assign the function code to your List Box&lt;/P&gt;&lt;P&gt;and then in PAI of the screen loop at your table control ,read the line selected then &lt;/P&gt;&lt;P&gt;make that field input disable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 17:41:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/4907954#M1145873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T17:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Table control issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/4907955#M1145874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun Chaudhary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to set the function code of the checkbos as &lt;STRONG&gt;'CS'&lt;/STRONG&gt; and the function type as &lt;STRONG&gt;'S'&lt;/STRONG&gt;, to make sure that once you check/uncheck the checkbox, an event is triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in the PAI of the screen, inside &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop with control &amp;lt;tab_ctrl_name&amp;gt;.
 module modify_tab.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this module you can use the group for the input/output fields and the enable/disable them as per your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if chk = 'X'. "if checkbox is checked
 loop at screen.
  if screen-group1 = 'ABC'. "say textbox (column for a table) has group1 as ABC
   screen-input = ' '. "disable a column
   screen-active = ' '.
  endif.
  modify screen.
 elseif chk = ' '. "if checkbox is unchecked
 loop at screen.
  if screen-group1 = 'ABC'. "say textbox (column for a table) has group1 as ABC
   screen-input = 'X'. "enable a column
   screen-active = 'X'.
  endif.
  modify screen.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your prolem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 17:59:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/4907955#M1145874</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2008-12-12T17:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Table control issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/4907956#M1145875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot ..The issue is resolved..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My only problem is that when i press enter the field is again getting enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 18:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-issue/m-p/4907956#M1145875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T18:33:10Z</dc:date>
    </item>
  </channel>
</rss>

