<?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: Regarding Table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/2377075#M527165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;    Sure you can do some rows as uneditable.You should have some condition to  satisfy.Based on the condition you can set that in PBO module inside loop endloop in flow logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT   it_t001l INTO x_t001l&lt;/P&gt;&lt;P&gt;       WITH CONTROL tc&lt;/P&gt;&lt;P&gt;       CURSOR tc-current_line.&lt;/P&gt;&lt;P&gt;    MODULE tc_get_lines.&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD:   MODULE TC_CHANGE_FIELD_ATTR&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 tc_get_lines OUTPUT.&lt;/P&gt;&lt;P&gt;  g_tc_lines = sy-loopc.&lt;/P&gt;&lt;P&gt;  IF tc-current_line = 3.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'TCFL'.&lt;/P&gt;&lt;P&gt;        screen-input = '0'.&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;ENDMODULE.                    "TC_GET_LINES OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here screen group 'TCFL' has to be set for all the table control fields.Her i have set the 3rd row as display only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vigneswaran S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2007 11:11:11 GMT</pubDate>
    <dc:creator>former_member491305</dc:creator>
    <dc:date>2007-06-07T11:11:11Z</dc:date>
    <item>
      <title>Regarding Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/2377072#M527162</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;I am developing a program using dialog programming. I have a table control, and I want to use some rows as uneditable. The purpose of this, user can see some records that have entered before, and user should not change before data, but should enter new data. So, I need that I want to make uneditable some rows. Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/2377072#M527162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T11:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/2377073#M527163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Azad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click the Screen fields. One POP up will come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Screen Atttributes -&amp;gt; Programs -&amp;gt; Input -&amp;gt; Not Possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/2377073#M527163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T11:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/2377074#M527164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks viji..&lt;/P&gt;&lt;P&gt;but it cant be possible..because itshould be disabled on the bases of rows in internal table..&lt;/P&gt;&lt;P&gt;the already existing in the table shud come under disable and blank rows shud be insertable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/2377074#M527164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T11:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/2377075#M527165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;    Sure you can do some rows as uneditable.You should have some condition to  satisfy.Based on the condition you can set that in PBO module inside loop endloop in flow logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT   it_t001l INTO x_t001l&lt;/P&gt;&lt;P&gt;       WITH CONTROL tc&lt;/P&gt;&lt;P&gt;       CURSOR tc-current_line.&lt;/P&gt;&lt;P&gt;    MODULE tc_get_lines.&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD:   MODULE TC_CHANGE_FIELD_ATTR&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 tc_get_lines OUTPUT.&lt;/P&gt;&lt;P&gt;  g_tc_lines = sy-loopc.&lt;/P&gt;&lt;P&gt;  IF tc-current_line = 3.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'TCFL'.&lt;/P&gt;&lt;P&gt;        screen-input = '0'.&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;ENDMODULE.                    "TC_GET_LINES OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here screen group 'TCFL' has to be set for all the table control fields.Her i have set the 3rd row as display only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vigneswaran S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/2377075#M527165</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-06-07T11:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/2377076#M527166</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;  It is possible to make some rows to editable and some rows to display only.Refer to the demo program &amp;lt;b&amp;gt;demo_dynpro_tabcont_loop_at&amp;lt;/b&amp;gt; for changing properties of screen fields. You can change the fields using a condition like "if sy-tabix gt 5." to modify fields from 6th row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;veeresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/2377076#M527166</guid>
      <dc:creator>former_member673464</dc:creator>
      <dc:date>2007-06-07T11:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/2377077#M527167</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;Yes, u can make some rows uneditable. Assume you have 5 rows and you can make the 6th row editable for the user and the 5 rows to be noneditable.Refer to the code below. the logic followed is: when u display some records u can append an empty record to your internal table from which u will be populating the table control and in the PBO u can loop at the tbale control and modify the screen. Refer to the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:col TYPE cxtab_column.&lt;/P&gt;&lt;P&gt;MODULE user_command_9000 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE ok-code.&lt;/P&gt;&lt;P&gt;    WHEN 'DISP'.&lt;/P&gt;&lt;P&gt;         SELECT mandt&lt;/P&gt;&lt;P&gt;               empid&lt;/P&gt;&lt;P&gt;               depno&lt;/P&gt;&lt;P&gt;               empname&lt;/P&gt;&lt;P&gt;               eaddress&lt;/P&gt;&lt;P&gt;           INTO TABLE gt_mod&lt;/P&gt;&lt;P&gt;           FROM ztrch_module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR GT_MOD.&lt;/P&gt;&lt;P&gt;APPEND GT_MOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_9000  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_9000 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'TEST'.&lt;/P&gt;&lt;P&gt;  SET TITLEBAR 'TITLE'.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE gt_mod LINES SY-TFILL.&lt;/P&gt;&lt;P&gt;  TABL_CTRL-LINES = SY-TFILL.&lt;/P&gt;&lt;P&gt;  IF OK-CODE = 'DISPLAY'.&lt;/P&gt;&lt;P&gt;  LOOP AT TABL_CTRL-COLS INTO COL.&lt;/P&gt;&lt;P&gt;    LOOP AT GT_MOD.&lt;/P&gt;&lt;P&gt;    COL-SCREEN-INPUT = '0'.&lt;/P&gt;&lt;P&gt;    IF GT_MOD-EMPID = ' '.&lt;/P&gt;&lt;P&gt;    COL-SCREEN-INPUT = '1'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;        MODIFY TABL_CTRL-COLS FROM COL.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_9000  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-control/m-p/2377077#M527167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T11:41:32Z</dc:date>
    </item>
  </channel>
</rss>

