<?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 need method to disable checkbox in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-method-to-disable-checkbox/m-p/3264923#M780183</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; My alv Grid report contains checkbox at end of each row, when ever user select the checkbox , I am taking the particular line  to internal Table by using below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA cl_gui_alv_grid TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            e_grid = cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_alv_grid-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is whenever user selects the checkbox the checkbox should go Gray(Disabled).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any method to do this, If so pls give sample code.&lt;/P&gt;&lt;P&gt;I tried with SET_VISIBLE, but not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using version 4.6C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;kar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: karthik karthik on Jan 9, 2008 7:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2008 14:15:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-09T14:15:30Z</dc:date>
    <item>
      <title>need method to disable checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-method-to-disable-checkbox/m-p/3264923#M780183</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; My alv Grid report contains checkbox at end of each row, when ever user select the checkbox , I am taking the particular line  to internal Table by using below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA cl_gui_alv_grid TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            e_grid = cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_alv_grid-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is whenever user selects the checkbox the checkbox should go Gray(Disabled).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any method to do this, If so pls give sample code.&lt;/P&gt;&lt;P&gt;I tried with SET_VISIBLE, but not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using version 4.6C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;kar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: karthik karthik on Jan 9, 2008 7:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 14:15:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-method-to-disable-checkbox/m-p/3264923#M780183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T14:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: need method to disable checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-method-to-disable-checkbox/m-p/3264924#M780184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this method cl_gui_alv_grid=&amp;gt;mc_style_disabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example go through the program BCALV_EDIT_05&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this program output ,If you double click on the check box it will be disabled , You can try the same logic in your program&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 Rk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 14:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-method-to-disable-checkbox/m-p/3264924#M780184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T14:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: need method to disable checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-method-to-disable-checkbox/m-p/3264925#M780185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this may be helpful to u &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to have in the Output Table: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types: begin of lt_io. &lt;/P&gt;&lt;P&gt;include structure mara. " Your Structure &lt;/P&gt;&lt;P&gt;Types: style_table type lvc_t_style. &lt;/P&gt;&lt;P&gt;Types: end of lt_io. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lt_io type table of lt_io, &lt;/P&gt;&lt;P&gt;ls_layout type lvc_s_layo, &lt;/P&gt;&lt;P&gt;lt_fcat type lvc_t_fcat, &lt;/P&gt;&lt;P&gt;lo_grid type ref to cl_gui_alv_grid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;io&amp;gt; type lt_io, &lt;/P&gt;&lt;P&gt;&amp;lt;fcat&amp;gt; type lvc_s_fcat. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... fill your output table .... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_layout-stylefname = 'STYLE_TABLE'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_io assigning &amp;lt;io&amp;gt;. &lt;/P&gt;&lt;P&gt;PERFORM set_style USING 'CHECKBOX' "Your Filename &lt;/P&gt;&lt;P&gt;CHANGING &amp;lt;io&amp;gt;. &lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... Fill Your Field Catalog lt_fcat &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table lt_fcat assigning &amp;lt;fcat&amp;gt; &lt;/P&gt;&lt;P&gt;where fieldname = 'CHECKBOX'. &lt;/P&gt;&lt;P&gt;&amp;lt;fcat&amp;gt;-checkbox = 'X'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;create grid control lo_grid. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;CALL METHOD lo_grid-&amp;gt;set_table_for_first_display &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;is_layout = ls_layout &lt;/P&gt;&lt;P&gt;CHANGING &lt;/P&gt;&lt;P&gt;it_fieldcatalog = lt_fcat &lt;/P&gt;&lt;P&gt;it_outtab = lt_io[]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM set_style&lt;/P&gt;&lt;P&gt;USING iv_fieldname TYPE lvc_fname &lt;/P&gt;&lt;P&gt;CHANGING cs_io TYPE io. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ls_style TYPE lvc_s_styl, &lt;/P&gt;&lt;P&gt;lt_style TYPE lvc_t_styl. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_style-fieldname = iv_fieldname. &lt;/P&gt;&lt;P&gt;if cs_io-checkbox = ' '. &lt;/P&gt;&lt;P&gt;ls_style-style = cl_gui_alv_grid=&amp;gt;mc_style_enabled. &lt;/P&gt;&lt;P&gt;else. &lt;/P&gt;&lt;P&gt;ls_style-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;ls_style-maxlen = 2. &lt;/P&gt;&lt;P&gt;INSERT ls_style INTO TABLE io-style_table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "set_style&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sravanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 14:45:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-method-to-disable-checkbox/m-p/3264925#M780185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T14:45:04Z</dc:date>
    </item>
  </channel>
</rss>

