<?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 Table control in Dialog programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576913#M861042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone;&lt;/P&gt;&lt;P&gt;     I have to disable input for one column in table control based on some security role. I used loop at screen code but still it did not work! How do I disable just one column in table control programmatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Mithun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2008 02:38:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-25T02:38:25Z</dc:date>
    <item>
      <title>Table control in Dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576913#M861042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone;&lt;/P&gt;&lt;P&gt;     I have to disable input for one column in table control based on some security role. I used loop at screen code but still it did not work! How do I disable just one column in table control programmatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Mithun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 02:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576913#M861042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T02:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Table control in Dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576914#M861043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It can be done using the loop at screen statements only.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at screen.
  if screen-name = 'COL_NAME'.
    screen-input = 0.
    modify screen.
  endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz show us the code to know it better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 02:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576914#M861043</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2008-03-25T02:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Table control in Dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576915#M861044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gopi. I tried exactly the same code but it does not disable the column! Any other thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mithun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 02:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576915#M861044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T02:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table control in Dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576916#M861045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paste your code here.&lt;/P&gt;&lt;P&gt;Do a debug to see if the correct values are being passed into the screen-name. also make sure the screen-name should be like this screen-name = &lt;STRONG&gt;'MARA-MATNR'&lt;/STRONG&gt; &lt;U&gt;(single quotes and capital letters)&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also make sure you use the &lt;STRONG&gt;MODIFY SCREEN&lt;/STRONG&gt; statement with in the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 03:05:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576916#M861045</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2008-03-25T03:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Table control in Dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576917#M861046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mithun,&lt;/P&gt;&lt;P&gt;Check this code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at screen.
  if screen-name = '&amp;lt;tablename&amp;gt;-&amp;lt;column name&amp;gt;'.
    screen-input = 0.
    modify screen.
  endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you might have given just column name instead of giving table control tablename with column name. try that by giving table as well. debug it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Venkat.O&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 03:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576917#M861046</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-03-25T03:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Table control in Dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576918#M861047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My code will look like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at SCREEN.&lt;/P&gt;&lt;P&gt;    IF ROLE_LEVEL = 3.&lt;/P&gt;&lt;P&gt;     IF screen-NAME = 'G_RULE_WA2-APPROVAL'.&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;    ENDIF.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I debug it goes inside my If statement goes through screen-input = 0 and everything but does nothing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Mithun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 03:11:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576918#M861047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T03:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table control in Dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576919#M861048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mithun,&lt;/P&gt;&lt;P&gt;you seem to have written right code only. Can you tell me whether that is new development or any any enhancement ?because when u do enhancement sometimes Screen group has to be assigned to existing screen field groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Venkat.O&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 03:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576919#M861048</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-03-25T03:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Table control in Dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576920#M861049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mithun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be the code u hv written is not in the proper place. U have to write this code in PBO event. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the below example code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at   g_ztabctrl_itab&lt;/P&gt;&lt;P&gt;       into g_ztabctrl_wa&lt;/P&gt;&lt;P&gt;       with control ztabctrl&lt;/P&gt;&lt;P&gt;       cursor ztabctrl-current_line.&lt;/P&gt;&lt;P&gt;    module ztabctrl_get_lines.&lt;/P&gt;&lt;P&gt;    module ztabctrl_move.&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;&lt;/P&gt;&lt;P&gt;ztabctrl is my table contrl name.... &lt;/P&gt;&lt;P&gt;in MODULE ZTABCTRL_MOVE.   write your code and try it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sunil kairam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 04:15:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576920#M861049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T04:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Table control in Dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576921#M861050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mithun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can tell the way 2 u have complete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls flights type tableview using screen 100.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt; cols like line of flights-cols,&lt;/P&gt;&lt;P&gt;  lines  type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write this code in any one of pbo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose u want disable 3 field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at flights-cols into cols where index =3&lt;/P&gt;&lt;P&gt; cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt; modify flights-cols from cols index sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 04:28:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576921#M861050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T04:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table control in Dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576922#M861051</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 think There may be several ways  to solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;excatly i dont know your scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I tried such a case &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example 10 fields in table control , you want to display 9 only based on the security role , right,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it's a condition , you had from the selection screen or from previous screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make use of that condtion , &lt;/P&gt;&lt;P&gt;and follow the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) you can keep a condition [security role] before filling the table controls and loop the screen and make the screen field, want to hide and make screen-active as 0 &amp;amp; clear the contents of the field you dont want to display from the structure you used to populate the table control structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE &lt;/P&gt;&lt;P&gt; fill all the fields of the structure &amp;amp; table controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tested a sample program, it works , remaining 9 fields gets populated in my example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward Points if helpful...&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 04:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576922#M861051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T04:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table control in Dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576923#M861052</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 think There may be several ways  to solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;excatly i dont know your scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I tried such a case &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example 10 fields in table control , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you wants to display 9 fields only based on the security role , &lt;/P&gt;&lt;P&gt;[As sucurity role as some conditon to check]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's a condition value, you had from the selection screen or from the previous screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make use of that condtion ,and follow the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) keep a condition [security role], before filling the table control lines . &lt;/P&gt;&lt;P&gt;    There , Loop the screen .&lt;/P&gt;&lt;P&gt;Assign a screen group &amp;amp; call the screen field both using its name &amp;amp; group ( groups can be assigned to n field if such scenario).&lt;/P&gt;&lt;P&gt;Make the screen field, you want to hide as screen-active as 0&lt;/P&gt;&lt;P&gt;end loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;amp; Clear the contents of the field that which you dont want to display from the structure you used to populate the table control structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE . ( if not the particular security role)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; fill all the fields of the structure &amp;amp; table controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tested a sample program, it works , remaining 9 fields gets populated in my example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward Points if helpful...&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 05:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576923#M861052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T05:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Table control in Dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576924#M861053</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 use step loop to resolve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Here is the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the PBO event write the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab with control tc cursor tc-current_line.&lt;/P&gt;&lt;P&gt;field itab-field1 module disable.&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 disable output.&lt;/P&gt;&lt;P&gt;if sy-stepl &amp;lt;&amp;gt; 1.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'ITAB-FIELD1' or&lt;/P&gt;&lt;P&gt;   screen-name = 'ITAB-FIELD2'.&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;endmodule.          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 05:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576924#M861053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T05:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table control in Dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576925#M861054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunil,&lt;/P&gt;&lt;P&gt;     You are exactly correct! I had code in a wrong place and when I moved my code to the place you mentioned it worked fine!  Thank you and thanks everyone for the feedback. I rewarded full points to everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mithun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 13:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-dialog-programming/m-p/3576925#M861054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T13:37:46Z</dc:date>
    </item>
  </channel>
</rss>

