<?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 Tree with checked checkboxes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199834#M1003754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help, but unfortunately I have not solved the problem :-(.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is no problem to get the information if a checkbox is check or which item is checked.&lt;/P&gt;&lt;P&gt;The issue is, that I do not find out how to check a checkbox at the beginning of starting a report.&lt;/P&gt;&lt;P&gt;If I take you example report BCALV_EDIT_05, it is not possible to check a checkbox before running this report. It is only possible to check the checkboxes during running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2008 17:05:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-22T17:05:51Z</dc:date>
    <item>
      <title>ALV Tree with checked checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199831#M1003751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have built a ALV Tree with checkboxes.While running the ALV Tree it is no problem to retrieve all checked items from the object "CL_GUI_ALV_TREE".&lt;/P&gt;&lt;P&gt;(With the method GET_CHECKED_ITEMS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But no I have the situation that some items have to checked when you &lt;U&gt;START&lt;/U&gt; the ALV Tree. Unfortunately I do not find a method like "SET_CHECKED_ITEMS"...&lt;/P&gt;&lt;P&gt;Can you please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rick Weigel on Jul 22, 2008 8:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 22:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199831#M1003751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T22:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree with checked checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199832#M1003752</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 u are creating Tree with check Boxex ? ,y i am asking is , in the same way u can give Value for that check boxes.&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 07:21:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199832#M1003752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T07:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree with checked checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199833#M1003753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are some sample programs provided by SAP on OOPS ALV.&lt;/P&gt;&lt;P&gt;Check it in SE38:BCALV_EDIT_05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is helpful to you,then reward...&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sendil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 09:47:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199833#M1003753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T09:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree with checked checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199834#M1003754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help, but unfortunately I have not solved the problem :-(.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is no problem to get the information if a checkbox is check or which item is checked.&lt;/P&gt;&lt;P&gt;The issue is, that I do not find out how to check a checkbox at the beginning of starting a report.&lt;/P&gt;&lt;P&gt;If I take you example report BCALV_EDIT_05, it is not possible to check a checkbox before running this report. It is only possible to check the checkboxes during running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 17:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199834#M1003754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T17:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree with checked checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199835#M1003755</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;P&gt;there is a proctected method UPDATE_CHECKED_ITEMS..using which you can use set the check box..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To call this method in your program..do the following..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a z class in your program by Inheriting the ALV TREE class CL_GUI_ALV_TREE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create a method in your Z class and then call the UPDATE_CHECKED_ITEMS method in that method..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 17:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199835#M1003755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T17:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree with checked checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199836#M1003756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create an entire new class for such a simple problem is an overkill. Take the sample report &lt;STRONG&gt;BCALV_TREE_DEMO&lt;/STRONG&gt;. Routine &lt;STRONG&gt;ADD_COMPLETE_LINE&lt;/STRONG&gt; adds the lines to the ALV tree containing the checkbox. Here you have to add a single statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  add_cmplete_line
*&amp;amp;---------------------------------------------------------------------*
*       add hierarchy-level 3 to tree
*----------------------------------------------------------------------*
*      --&amp;gt;P_LS_SFLIGHT  sflight
*      --&amp;gt;P_RELEATKEY   relatkey
*     &amp;lt;--&amp;gt;p_node_key    new node-key
*----------------------------------------------------------------------*
form add_complete_line using   ps_sflight type sflight
                               p_relat_key type lvc_nkey
                     changing  p_node_key type lvc_nkey.

  data: l_node_text type lvc_value.

* set item-layout
  data: lt_item_layout type lvc_t_layi,
        ls_item_layout type lvc_s_layi.
  ls_item_layout-fieldname = tree1-&amp;gt;c_hierarchy_column_name.
  ls_item_layout-class   = cl_gui_column_tree=&amp;gt;item_class_checkbox.
  ls_item_layout-editable = 'X'.
  ls_item_layout-chosen   = 'X'.  " &amp;lt;&amp;lt;&amp;lt;&amp;lt; That's all.
  append ls_item_layout to lt_item_layout.

  clear ls_item_layout.
  ls_item_layout-fieldname = 'PLANETYPE'.
  ls_item_layout-alignment = cl_gui_column_tree=&amp;gt;align_right.
  append ls_item_layout to lt_item_layout.

  l_node_text =  ps_sflight-fldate.

  data: ls_node type lvc_s_layn.
  ls_node-n_image   = space.
  ls_node-exp_image = space.

  call method tree1-&amp;gt;add_node
    exporting
      i_relat_node_key = p_relat_key
      i_relationship   = cl_gui_column_tree=&amp;gt;relat_last_child
      is_outtab_line   = ps_sflight
      i_node_text      = l_node_text
      is_node_layout   = ls_node
      it_item_layout   = lt_item_layout
    importing
      e_new_node_key   = p_node_key.
endform.                               " add_complete_line
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you need to add your logic which nodes should be marked and which not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 03:58:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199836#M1003756</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-07-23T03:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree with checked checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199837#M1003757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot, that's the coding which I am searching &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rick Weigel on Jul 23, 2008 8:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 06:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-with-checked-checkboxes/m-p/4199837#M1003757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T06:49:15Z</dc:date>
    </item>
  </channel>
</rss>

