<?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 Reg : Module pool Table control - disabling and enabling row wise in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool-table-control-disabling-and-enabling-row-wise/m-p/8469012#M1651116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Techies, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Table control, I want to made some part of Row should be grayed out (Disable) and the other is Enable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let say in my Table control I have 5 records. &lt;/P&gt;&lt;P&gt;each record has 10 columns and the first 4 fields I want to disable and the other 6 will be enable mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SNO             PR No        PR Item-no       Quantity          Price     "asume this is the Table control &lt;/P&gt;&lt;P&gt;1                  100001     10                     5                     500/- &lt;/P&gt;&lt;P&gt;2                  100002     10                     7                     1600/- &lt;/P&gt;&lt;P&gt;3                  100002     20                     3                     1500/- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will enter PR no, PR-item, Qty and Price and if saved it one Unique no is generating through SNRO. &lt;/P&gt;&lt;P&gt;Once it is saved I want to grayed out PR No, PR Item-no and the rest of two fields are enable mode. &lt;/P&gt;&lt;P&gt;also I can able to add 4 th row, 5 th row and so on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have assigned a Group for the above fields in Screen and I loop that screen in PBO also I made Screen-input = 0. &lt;/P&gt;&lt;P&gt;first I have read those inputs in in PAI and I used like DESCRIBE TABLE  ITAB lines lv_var. &lt;/P&gt;&lt;P&gt;if lv_var is not initial. &lt;/P&gt;&lt;P&gt;tablecontrolname-lines = lv_var. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;clear lv_var. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above case I can able to disable all remining empty lines other than what I entered but I want to disable some portion of line should be disable and the other will be enable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest and Tnks in advance.&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;valluru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2011 14:31:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-12-09T14:31:40Z</dc:date>
    <item>
      <title>Reg : Module pool Table control - disabling and enabling row wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool-table-control-disabling-and-enabling-row-wise/m-p/8469012#M1651116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Techies, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Table control, I want to made some part of Row should be grayed out (Disable) and the other is Enable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let say in my Table control I have 5 records. &lt;/P&gt;&lt;P&gt;each record has 10 columns and the first 4 fields I want to disable and the other 6 will be enable mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SNO             PR No        PR Item-no       Quantity          Price     "asume this is the Table control &lt;/P&gt;&lt;P&gt;1                  100001     10                     5                     500/- &lt;/P&gt;&lt;P&gt;2                  100002     10                     7                     1600/- &lt;/P&gt;&lt;P&gt;3                  100002     20                     3                     1500/- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will enter PR no, PR-item, Qty and Price and if saved it one Unique no is generating through SNRO. &lt;/P&gt;&lt;P&gt;Once it is saved I want to grayed out PR No, PR Item-no and the rest of two fields are enable mode. &lt;/P&gt;&lt;P&gt;also I can able to add 4 th row, 5 th row and so on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have assigned a Group for the above fields in Screen and I loop that screen in PBO also I made Screen-input = 0. &lt;/P&gt;&lt;P&gt;first I have read those inputs in in PAI and I used like DESCRIBE TABLE  ITAB lines lv_var. &lt;/P&gt;&lt;P&gt;if lv_var is not initial. &lt;/P&gt;&lt;P&gt;tablecontrolname-lines = lv_var. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;clear lv_var. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above case I can able to disable all remining empty lines other than what I entered but I want to disable some portion of line should be disable and the other will be enable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest and Tnks in advance.&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;valluru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 14:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool-table-control-disabling-and-enabling-row-wise/m-p/8469012#M1651116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-09T14:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Module pool Table control - disabling and enabling row wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool-table-control-disabling-and-enabling-row-wise/m-p/8469013#M1651117</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;try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*data declaration
controls tbc type tableview using screen 100.  " tbc is table control name
data cols like line of tbc-cols.

*PAI
module user_command_0100 input.
    IF  sy-ucomm = ' '.   " ok code for enter.
      LOOP AT tbc-cols into cols where index le 2.   " here index le 2 means how many columns you want to make display 
" if you want to make first 4 columns display mode then use index le 4. 
" check if the column value is not initial
         cols-screen-input = '0'. 
           MODIFY tbc-cols FROM cols INDEX sy-tabix.
      ENDLOOP.

    ENDIF.

    endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps u.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 05:10:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool-table-control-disabling-and-enabling-row-wise/m-p/8469013#M1651117</guid>
      <dc:creator>Kiran_Valluru</dc:creator>
      <dc:date>2011-12-12T05:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Module pool Table control - disabling and enabling row wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool-table-control-disabling-and-enabling-row-wise/m-p/8469014#M1651118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishore,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign group name to the fields in your table control columns and then based on your requirement write  screen logic using screen group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;place code between &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;itab&amp;gt; with control &amp;lt;table control&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module screen.&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;endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 06:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool-table-control-disabling-and-enabling-row-wise/m-p/8469014#M1651118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-12T06:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Module pool Table control - disabling and enabling row wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool-table-control-disabling-and-enabling-row-wise/m-p/8469015#M1651119</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;do as follow.Put a module inPBO inside loop endloopof table contorl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As table control will loop for each record you can now modify individual cells and rows. Let say i want display only 1 to 4 columns rest input enabled &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT SCREEN.
IF SCREEN-NAME EQ 'COL1'
OR SCREEN-NAME EQ 'COL2'
OR SCREEN-NAME EQ 'COL3'
OR SCREEN-NAME EQ 'COL4'
SCREEN-INPUT  = 0.
ELSE.
SCREEN-INPUT = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Use the above logic to control your display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 06:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool-table-control-disabling-and-enabling-row-wise/m-p/8469015#M1651119</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2011-12-12T06:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Module pool Table control - disabling and enabling row wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool-table-control-disabling-and-enabling-row-wise/m-p/8469016#M1651120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran tnks for the inputs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried like what you said, but it is not working. I think the Enabling and Disabling will come in PBO instead of PAI. anyhow I have checked in both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written code as below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if gv_code = ' '.&lt;/P&gt;&lt;P&gt; if lifnr is NOT INITIAL.&lt;/P&gt;&lt;P&gt; loop at tbc_9001-cols into cols where index le 2.&lt;/P&gt;&lt;P&gt; IF COLS-SCREEN-GROUP2 = 'GP2'.&lt;/P&gt;&lt;P&gt; COLS-SCREEN-input = '0'.&lt;/P&gt;&lt;P&gt; MODIFY tbc_9001-COLS FROM COLS INDEX SY-TABIX.&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;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can U suggest any other ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Nabheet tnks for valid inputs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I used ur code it will disabling complete column, but I need what ever the lines User is entering those lines has to be Disabled and also he can able to enter further inputs in the same column.&lt;/P&gt;&lt;P&gt;let me know if U have any idea to meat my requirement. tnks in advance.&lt;/P&gt;&lt;P&gt;&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;valluru&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vallurukishore on Dec 12, 2011 2:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 13:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool-table-control-disabling-and-enabling-row-wise/m-p/8469016#M1651120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-12T13:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Module pool Table control - disabling and enabling row wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool-table-control-disabling-and-enabling-row-wise/m-p/8469017#M1651121</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;no need to use this statement., &lt;/P&gt;&lt;P&gt;IF COLS-SCREEN-GROUP2 = 'GP2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also put a break point and check.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i guess it is not if lifnr is not initial.. put a break point there and check..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps u.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 13:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool-table-control-disabling-and-enabling-row-wise/m-p/8469017#M1651121</guid>
      <dc:creator>Kiran_Valluru</dc:creator>
      <dc:date>2011-12-12T13:52:06Z</dc:date>
    </item>
  </channel>
</rss>

