<?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 - single cell change attributes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477146#M557694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not working/helping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2007 07:27:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-29T07:27:08Z</dc:date>
    <item>
      <title>Table Control - single cell change attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477143#M557691</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 TC on subscreen and need to change single cell with amount to be able for input data depending status in another field. This can be done in some rows in some not. Field in screen painter is seted on INPUT = 1.&lt;/P&gt;&lt;P&gt;my code looks like this:&lt;/P&gt;&lt;P&gt;PBO:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; loop at it into wa 
    with control tab_ctrl.
    module data_transfer.
    module change_cell.
  endloop.

module change_cell.
  loop at screen.
   if screen-name = 'AMOUNT'.
      if plast = 'X'.
        screen-input = 1.
        screen-output = 1.
        screen-active = 1.
      else.
        screen-input = 0.
        screen-output = 1.
        screen-active = 1.
      endif.
    endif.
    modify screen.
  endloop.

endmodule. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 05:34:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477143#M557691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T05:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control - single cell change attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477144#M557692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi   ... i did  changes on your  code   .... seee  the first one   i guess  you have to  padd the   excat  field  name   you can see the next   code   of myin  where  i pass the field with  internal table  .&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;my code  of yours&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at it into wa 
    with control tab_ctrl.
    module data_transfer.
    module change_cell.
  endloop.
 
module change_cell.
  loop at screen.
   if plast = 'X'.
   if screen-name = 'AMOUNT'.
         screen-input = 1.
         modify screen.
      endif.
    endif.

  endloop.
 
endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;my code of   sample  :&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE populate_screen OUTPUT.
    DATA: ld_line TYPE i.
  
*   Set which line of itab is at the top of the table control
    IF sy-stepl = 1.
      tc100-lines =
        tc100-top_line + sy-loopc - 1.
    ENDIF.
  
*   move fields from work area to scrren fields
    MOVE-CORRESPONDING wa_ekko TO ztc_ekko.
  
    ld_line =  sy-stepl + tc100-top_line - 1.
  
*   Changes individual field attributes of table control,
*   Sets EBELN field on 3rd row of TC to not be an input field!
    LOOP AT SCREEN.
      IF ld_line EQ 3.
        IF screen-name EQ 'ZTC_EKKO-EBELN'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDIF.
    ENDLOOP.
  ENDMODULE.                 " populate_screen  OUTPUT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it is usefull .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 06:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477144#M557692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T06:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control - single cell change attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477145#M557693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at it into wa &lt;/P&gt;&lt;P&gt;    with control tab_ctrl.&lt;/P&gt;&lt;P&gt;    module data_transfer.&lt;/P&gt;&lt;P&gt;    module change_cell.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;module change_cell.&lt;/P&gt;&lt;P&gt;  loop at screen.&lt;/P&gt;&lt;P&gt;   if screen-name = 'AMOUNT'.&lt;/P&gt;&lt;P&gt;      if plast = 'X'.&lt;/P&gt;&lt;P&gt;        screen-input = 1.&lt;/P&gt;&lt;P&gt;        screen-output = 1.&lt;/P&gt;&lt;P&gt;        screen-active = 1.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        screen-input = 0.&lt;/P&gt;&lt;P&gt;        screen-output = 1.&lt;/P&gt;&lt;P&gt;        screen-active = 1.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;        screen-input = 0.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    modify screen.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 06:48:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477145#M557693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T06:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control - single cell change attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477146#M557694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not working/helping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 07:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477146#M557694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T07:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control - single cell change attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477147#M557695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a table control, you cannot make a single cell or row read_only or editable. If you do screen-input = 1/0 it will work at the entire column level. For this requirement, use an ALV it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nithya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 10:08:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477147#M557695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T10:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control - single cell change attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477148#M557696</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;If you know line no.,here is the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE set_screen_fields OUTPUT.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF flg IS INITIAL.&lt;/P&gt;&lt;P&gt;      screen-input = 0.&lt;/P&gt;&lt;P&gt;    ELSEIF ( flg EQ 'Y' ).&lt;/P&gt;&lt;P&gt;      IF ( ( screen-name = 'I_MAKT-ZMAKTX'&lt;/P&gt;&lt;P&gt;             OR screen-name = 'I_MAKT-CHECK1' )&lt;/P&gt;&lt;P&gt;            AND t_ctrl-current_line LE ln ) .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Making the screen fields as editable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        screen-input = 1.&lt;/P&gt;&lt;P&gt;      ELSEIF ( ( screen-name = 'I_MAKT-ZMATNR' )&lt;/P&gt;&lt;P&gt;                 AND t_ctrl-current_line LE ln ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Making the screen field as uneditable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        screen-input = 0.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modifying the screen after making changes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " set_screen_fields  OUTPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 10:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477148#M557696</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-06-29T10:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control - single cell change attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477149#M557697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved, i deactivated some perform which always sets my field to be only output....sorry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 10:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477149#M557697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T10:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control - single cell change attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477150#M557698</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;Change it like this.I think the screen name for  AMOUNT field of table control is &lt;/P&gt;&lt;P&gt;WA-AMOUNT.In Loop at screen ,you got to pass the full name of the field.And  this &amp;lt;b&amp;gt;plast&amp;lt;/b&amp;gt; field also should  be one of the field in that itab structure.What you can&lt;/P&gt;&lt;P&gt;Chk out corrected code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at it into wa &lt;/P&gt;&lt;P&gt;    with control tab_ctrl.&lt;/P&gt;&lt;P&gt;    module data_transfer.&lt;/P&gt;&lt;P&gt;    module change_cell.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;module change_cell.&lt;/P&gt;&lt;P&gt;  loop at screen.&lt;/P&gt;&lt;P&gt;   if screen-name = 'WA-AMOUNT'.&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt;   If WA-PLAST = 'X'.&amp;lt;/b&amp;gt;     &lt;/P&gt;&lt;P&gt;        screen-input = 1.&lt;/P&gt;&lt;P&gt;        screen-output = 1.&lt;/P&gt;&lt;P&gt;        screen-active = 1.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        screen-input = 0.&lt;/P&gt;&lt;P&gt;        screen-output = 1.&lt;/P&gt;&lt;P&gt;        screen-active = 1.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    modify screen.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 10:22:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-single-cell-change-attributes/m-p/2477150#M557698</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-06-29T10:22:04Z</dc:date>
    </item>
  </channel>
</rss>

