<?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: MAKING ONE CELL EDITABLE IN TABLE CONTROL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-one-cell-editable-in-table-control/m-p/7270627#M1530049</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;In P.B.O&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT IT_GI2 WITH CONTROL TC2_GI.&lt;/P&gt;&lt;P&gt;    MODULE MODIFY_SCREEN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write on what condition u want to make one cell editible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE MODIFY_SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM MARA WHERE MATNR = IT_GI2-MATNR&lt;/P&gt;&lt;P&gt;                            AND   MTART NE 'MCHF'&lt;/P&gt;&lt;P&gt;                            AND   XCHPF = 'X'.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF SCREEN-NAME = 'IT_GI2-CHARG'.&lt;/P&gt;&lt;P&gt;        SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Oct 2010 09:51:22 GMT</pubDate>
    <dc:creator>Noorie</dc:creator>
    <dc:date>2010-10-02T09:51:22Z</dc:date>
    <item>
      <title>MAKING ONE CELL EDITABLE IN TABLE CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-one-cell-editable-in-table-control/m-p/7270626#M1530048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI  EXPERTS ,&lt;/P&gt;&lt;P&gt;HOW TO MAKE THE SELECTED CELL EDITABLE IN TABLE CONTROL?PLZ REPLY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIVAKUMAR A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Oct 2010 08:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-one-cell-editable-in-table-control/m-p/7270626#M1530048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-02T08:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: MAKING ONE CELL EDITABLE IN TABLE CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-one-cell-editable-in-table-control/m-p/7270627#M1530049</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;In P.B.O&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT IT_GI2 WITH CONTROL TC2_GI.&lt;/P&gt;&lt;P&gt;    MODULE MODIFY_SCREEN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write on what condition u want to make one cell editible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE MODIFY_SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM MARA WHERE MATNR = IT_GI2-MATNR&lt;/P&gt;&lt;P&gt;                            AND   MTART NE 'MCHF'&lt;/P&gt;&lt;P&gt;                            AND   XCHPF = 'X'.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF SCREEN-NAME = 'IT_GI2-CHARG'.&lt;/P&gt;&lt;P&gt;        SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Oct 2010 09:51:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-one-cell-editable-in-table-control/m-p/7270627#M1530049</guid>
      <dc:creator>Noorie</dc:creator>
      <dc:date>2010-10-02T09:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: MAKING ONE CELL EDITABLE IN TABLE CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-one-cell-editable-in-table-control/m-p/7270628#M1530050</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;IN PBO call module  and write condition based on requirement   .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case    field qty  having value 0 remains editable .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF ( screen-name = 'IT_QTY-QTY1' AND it_qty-qty1 = 0 ) OR ( screen-name = 'IT_QTY-QTY2' AND it_qty-qty2 = 0 )&lt;/P&gt;&lt;P&gt;      OR ( screen-name = 'IT_QTY-QTY3' AND it_qty-qty3 = 0 )  OR ( screen-name = 'IT_QTY-QTY4' AND it_qty-qty4 = 0 )&lt;/P&gt;&lt;P&gt;      OR ( screen-name = 'IT_QTY-QTY5' AND it_qty-qty5 = 0 )  OR  ( screen-name = 'IT_QTY-QTY6' AND it_qty-qty6 = 0 )&lt;/P&gt;&lt;P&gt;      OR ( screen-name = 'IT_QTY-QTY7' AND it_qty-qty7 = 0 ) OR ( screen-name = 'IT_QTY-QTY8' AND it_qty-qty8 = 0 ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     AND  ed_flg = 'Y'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      screen-input = 1.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ed_flg = 'N'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&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;Regards&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Oct 2010 10:02:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-one-cell-editable-in-table-control/m-p/7270628#M1530050</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2010-10-02T10:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: MAKING ONE CELL EDITABLE IN TABLE CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-one-cell-editable-in-table-control/m-p/7270629#M1530051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sivakumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make certain fields as editable and some as non-editable, you can follow any one of the below two approaches:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Either while designing the module pool screen keep those textbox fields as output only which need not be edited and rest textbox fields as input &amp;amp; output both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you want enable/disable input for textbox fields while execution, then while designing the screen, the textbox fields which need to be non-editable define the group1 as ABC for those fields. Now, In PBO of the screen, write code:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at screen.
  if ( screen-group1 = 'ABC' ).
    screen-input = 0. "disable textbox for input
    screen-active = 0.
  endif.
  modify screen.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at screen.
  if ( screen-group1 = 'ABC' ).
    screen-input = 1. "enable textbox for input
    screen-active = 1.
  endif.
  modify screen.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of lines in table control depends on the size of table control on screen.&lt;/P&gt;&lt;P&gt;If number of lines in table control are same as the number of records in the internal table, then to insert a new row when user clicks INSERT button, then use code:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
case sy-ucomm.
  when 'INSERT'.
    tab_ctrl-lines = tab_ctrl-lines + 1. "to insert a new line into table control tab_ctrl
    loop at screen.
      if ( screen-group1 = 'ABC' ).
        screen-input = 1. "enable textbox for input
        screen-active = 1.
      endif.
      modify screen.
    endloop.
endcase.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to enable only one row when you click INSERT button, rather it will enable the all fields for all lines in table control.&lt;/P&gt;&lt;P&gt;We can only enable/disable columns in a table control.&lt;/P&gt;&lt;P&gt;So, if you want not to show the existing records when you click INSERT button then use a new table control to insert new records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Oct 2010 10:24:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-one-cell-editable-in-table-control/m-p/7270629#M1530051</guid>
      <dc:creator>anand_govardhan</dc:creator>
      <dc:date>2010-10-02T10:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: MAKING ONE CELL EDITABLE IN TABLE CONTROL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/making-one-cell-editable-in-table-control/m-p/7270630#M1530052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please do not use all caps, ask basic questions or post in the wrong forum.

Thread locked

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Oct 2010 19:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/making-one-cell-editable-in-table-control/m-p/7270630#M1530052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-03T19:43:59Z</dc:date>
    </item>
  </channel>
</rss>

