<?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: ALV checkbox  - disable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-checkbox-disable/m-p/1030920#M83797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this sample program &amp;lt;b&amp;gt;BCALV_EDIT_05&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Nov 2005 09:24:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-15T09:24:20Z</dc:date>
    <item>
      <title>ALV checkbox  - disable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-checkbox-disable/m-p/1030919#M83796</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;How to implement in an ALV list, a column with checkboxes, but only some of the checkboxes to be enable ( if a field in that row meet a condititon)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Bogdan Cojocaru&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 09:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-checkbox-disable/m-p/1030919#M83796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T09:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: ALV checkbox  - disable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-checkbox-disable/m-p/1030920#M83797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this sample program &amp;lt;b&amp;gt;BCALV_EDIT_05&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 09:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-checkbox-disable/m-p/1030920#M83797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T09:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: ALV checkbox  - disable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-checkbox-disable/m-p/1030921#M83798</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;To output a column with checkbox,you need to code like below in fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_fieldcat TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;DATA: line_fieldcat TYPE slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR line_fieldcat.&lt;/P&gt;&lt;P&gt;  line_fieldcat-fieldname = 'CHK'.&lt;/P&gt;&lt;P&gt;  line_fieldcat-tabname   = 'I_DATA'.&lt;/P&gt;&lt;P&gt;  line_fieldcat-seltext_l = 'Checkbox'.&lt;/P&gt;&lt;P&gt;line_fieldcat-checkbox  = 'X'.      " Display this field as a checkbox&lt;/P&gt;&lt;P&gt;  line_fieldcat-edit      = 'X'.      " This option ensures that you can&lt;/P&gt;&lt;P&gt;  " edit the checkbox. Else it will&lt;/P&gt;&lt;P&gt;  " be protected.&lt;/P&gt;&lt;P&gt;  APPEND line_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't think you can selectively enable some rows to check the checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 10:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-checkbox-disable/m-p/1030921#M83798</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-11-15T10:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALV checkbox  - disable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-checkbox-disable/m-p/1030922#M83799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI,&lt;/P&gt;&lt;P&gt;I want to get the checkbox displayed but am unable to do so.I have done what is suggested as in code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; " For checkbox&lt;/P&gt;&lt;P&gt;  insert initial line into table ch_fieldcat assigning &amp;lt;wa_catalogue&amp;gt;.&lt;/P&gt;&lt;P&gt;  &amp;lt;wa_catalogue&amp;gt;-col_pos =            lines( ch_fieldcat ).&lt;/P&gt;&lt;P&gt;  &amp;lt;wa_catalogue&amp;gt;-row_pos =            0.&lt;/P&gt;&lt;P&gt;  &amp;lt;wa_catalogue&amp;gt;-fieldname =          'CHECKBOX'.&lt;/P&gt;&lt;P&gt;  &amp;lt;wa_catalogue&amp;gt;-inttype =            'C'.&lt;/P&gt;&lt;P&gt;  &amp;lt;wa_catalogue&amp;gt;-edit    =               'X'.&lt;/P&gt;&lt;P&gt;  &amp;lt;wa_catalogue&amp;gt;-seltext =&lt;/P&gt;&lt;P&gt;  &amp;lt;wa_catalogue&amp;gt;-coltext =           'Choose test class for tagging'.&lt;/P&gt;&lt;P&gt;  &amp;lt;wa_catalogue&amp;gt;-checkbox =           abap_true.&lt;/P&gt;&lt;P&gt;  &amp;lt;wa_catalogue&amp;gt;-outputlen =          10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      i_structure_name = im_structure_name&lt;/P&gt;&lt;P&gt;    changing&lt;/P&gt;&lt;P&gt;      ct_fieldcat      = ch_fieldcat&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      others           = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    raise exception type cx_pak_gui_error.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table ch_fieldcat lines l_lin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at ch_fieldcat assigning &amp;lt;lfs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    case &amp;lt;lfs_field&amp;gt;-fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      when 'SOBJ_NAME'.&lt;/P&gt;&lt;P&gt;        &amp;lt;lfs_field&amp;gt;-coltext   = 'Test Class'(002).&lt;/P&gt;&lt;P&gt;        &amp;lt;lfs_field&amp;gt;-outputlen = 30.&lt;/P&gt;&lt;P&gt;        &amp;lt;lfs_field&amp;gt;-key = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       when 'CHECKBOX'.&lt;/P&gt;&lt;P&gt;        &amp;lt;lfs_field&amp;gt;-coltext   = 'Choose TestClass for Tagging'(003).&lt;/P&gt;&lt;P&gt;        &amp;lt;lfs_field&amp;gt;-outputlen = 30.&lt;/P&gt;&lt;P&gt;        &amp;lt;lfs_field&amp;gt;-row_pos = 0.&lt;/P&gt;&lt;P&gt;        &amp;lt;lfs_field&amp;gt;-key = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       when l_fieldname.  " ICON*&lt;/P&gt;&lt;P&gt;        &amp;lt;lfs_field&amp;gt;-icon       = abap_true.&lt;/P&gt;&lt;P&gt;        &amp;lt;lfs_field&amp;gt;-no_out    = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       when others.&lt;/P&gt;&lt;P&gt;       &amp;lt;lfs_field&amp;gt;-key = 'X'.&lt;/P&gt;&lt;P&gt;       &amp;lt;lfs_field&amp;gt;-no_out = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endcase.&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;call function 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      i_structure_name = im_structure_name&lt;/P&gt;&lt;P&gt;    changing&lt;/P&gt;&lt;P&gt;      ct_fieldcat      = ch_fieldcat&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      others           = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 08:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-checkbox-disable/m-p/1030922#M83799</guid>
      <dc:creator>vidya_gugnani</dc:creator>
      <dc:date>2005-12-21T08:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: ALV checkbox  - disable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-checkbox-disable/m-p/1030923#M83800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you using ALV GRID/ ALV LIST/ ALV Grid class..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is using classes let me know,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vijay Babu Dudla&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 09:11:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-checkbox-disable/m-p/1030923#M83800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T09:11:07Z</dc:date>
    </item>
  </channel>
</rss>

