ALV Tree - how to put checkbox on the node level?

Hello everyone!
I have an AlvTree and I have special column named SEL. That column contains checkboxes. I want to put additional checkboxes at the node level, I need them to create select all option.
In other words I must somehow create something similar to do_sum option. DO_SUM works for numeric columns, the sum of all rows in current node appears at the top level. So I must do the same but checkbox.
Are there any ideas?
Here is my code of creating the tree.
DATA: g_tree9001 type ref to cl_gui_alv_tree_simple.
" Here I fill fieldcat...
create object g_tree9001
      EXPORTING
        i_parent                    = g_doc_cont
        i_node_selection_mode       = cl_gui_column_tree=>node_sel_mode_single
        i_item_selection            = 'X'
        i_no_html_header            = 'X'
        i_no_toolbar                = ''.
call method g_tree9001->set_table_for_first_display
      EXPORTING
        i_save              = 'A'
        is_variant          = ls_variant
      CHANGING
        it_sort             = gt_sort9001
        it_outtab           = gt_tree9001
        it_fieldcatalog     = gt_treefcat9001.
My output table gt_tree9001 has sthe following structure:
BUKRS, KTEXT, SEL, SWERK.
My sort table gt_sort9001 has 2 rows. Sorting by BUKRS and KTEXT.
My tree looks like this:
BUKRS/KTEXT  --- SEL --- SWERK
+bukrs1 ------------------------------
  -- ktext1 ---  X --- swerk1
  -- ktext2 ---  X --- swerk2
+bukrs2 ------------------------------
  -- ktext3 ---  X --- swerk3
I want to get:
BUKRS/KTEXT  --- SEL --- SWERK
+bukrs1 ----------X----------------
  -- ktext1 ---  X --- swerk1
  -- ktext2 ---  X --- swerk2
+bukrs2 ----------X----------------
  -- ktext3 ---  X --- swerk3
Appreciate any help!

Hi ,
Check the below threads, it may give some idea to get check box in the node .
[LINK1|Check box on left navigation of ALV tree;
[LINK2|Checkbox ALV Tree CL_GUI_ALV_TREE;
Regards,
Saravana.S

Similar Messages

  • How to put checkboxes in a Tree list

    Hi All,
    I have generated a tree structure in my list from a table. The requirement is I have to put checkboxes for the leaves(bottom most level) of the tree. Now the user will be selecting required leaves and thus my logic will continue.
    Can anyone tell me how can i put checkboxes for all the leaves?
    Also, The number of leaves is in thousands. To keep that many check boxes, I have to create that many number of variables, which can be done dynamically.
    So, how to put check boxes and how to create those variables dynamically? How can i meet my requirement?
    Plz guide me in this issue.

    Take a look SAPCOLUMN_TREE_CONTROL_DEMO program screen 100  in SE80 transaction
    ibrahim

  • How to put checkbox into sap grid display

    hi,
         how to put checkbox into sap grid display ,when i am selecting the check box it should move to second secondary list.
          could u plz explain clearly

    Hi,
    In the layout fill
    is_layout-box_fieldname = 'CHECKBOX'
    is_layout-box_tabname   = 'I_OUTPUT'.
    The internal table that you are passing as I_OUTPUT, should have an extra field called CHECKBOX of length 1.
    Also refer to tutorial Easy Grid :
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an%20easy%20reference%20for%20alv%20grid%20control.pdf
    Cheers,
    Simha.

  • How to put distinct in the query

    Hi all,
    How to put distinct in the query.I checked in RPD , Distinct supported is already available. I marked the distinct check box in advance option still then i'm not getting distinct in the query.
    any idea , please help...

    In the RPD i have join between base table and view .i'm selecting 2 columns one from base table and other from view . which gives cartesian product . to avoid that i want to put distinct . I'm not using any measure . I'm taking direct columns.
    I'm getting distinct keyword if i'm accessing the report directly . but when i'm accessing it from dashboard in the back end while preparing the query it's writing distinct but the actual query which is sending to db does not have distinct.
    ==================================================
    RqList distinct
    VW_SCNR_114000074_TA_DATA.Match Identifier as c1 GB,
    VW_SCNR_114000074_TA_DATA.Tot Trans Amt as c2 GB,
    VW_SCNR_114000074_TA_DATA.Tot Trans Ct as c3 GB,
    case when VW_SCNR_114000074_TA_DATA.Alert Quality Code = '1' then 'Productive' when VW_SCNR_114000074_TA_DATA.Alert Quality Code = '2' then 'Non Productive' else 'Indeterminate' end as c4 GB,
    VW_SCNR_114000074_TA_DATA.Batch Identifier as c5 GB
    DetailFilter: Alert TA Data.Run Id > 0 and Alert Scenarios.Scenario Name = 'ScnroName' and Alert TA Data.Batch Id > 0
    OrderBy: c4 desc
    =================================================
    -------------------- Sending query to database named KYC1.1DEV-179 (id: <<16315>>):
    select T353.BATCH_ID as c1,
    case when T353.QLTY_RTG_CD = '1' then 'Productive' when T353.QLTY_RTG_CD = '2' then 'Non Productive' else 'Indeterminate' end as c2,
    T353.TOT_TRXN_CT as c3,
    T353.TOT_TRXN_AM as c4,
    T353.BREAK_ID as c5,
    T117.SCNRO_NM as c6
    from
    KDD_SCNRO T117,
    KDD_TA_DATA T130,
    KDD_TSHLD_SET T171,
    VW_SCNR_114000074_TA_DATA T353
    where ( T117.SCNRO_ID = T130.SCNRO_ID and T117.SCNRO_ID = T171.SCNRO_ID and T130.SCNRO_ID = T171.SCNRO_ID and T130.SCNRO_ID = T353.SCNRO_ID and T130.TSHLD_SET_ID = T171.TSHLD_SET_ID and T171.SCNRO_ID = T353.SCNRO_ID and T171.TSHLD_SET_ID = T353.TSHLD_SET_ID and 0 < T130.BATCH_ID and 0 < T130.RUN_ID )

  • How to put wallpaper on the homescreen on ipod touch 3g?

    I have an ipod 3g and I am wondering how to put wallpaper on the homescreen,I tired to go to settings,but it still won't work??

    Just so we don't spin our wheels, please confirm that it is indeed 3rd-gen (there was a 32GB 2nd-gen iPod touch). You may well be correct, but other people have been mistaken in what they have, so I've learned to confirm. The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the iPod. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.
    Assuming you do indeed have a 3rd-gen iPod, what version of iOS is it running? And when you say "won't work", do you mean that you don't see the option, or you see the option but when you try and change the wallpaper it doesn't change?
    Regards.

  • I have bought a Macbook Pro Retina, and the iPhoto which comes with it, has a different iPhoto Book menu.  I cannot see how to put text at the bottom of the pages of photographs, instead of the default place in the middle.  Is there a way to do this?

    I have bought a Macbook Pro Retina, and the iPhoto which comes with it, has a different iPhoto Book menu.  I cannot see how to put text at the bottom of the pages of photographs, instead of the default place in the middle.  Is there a way to do this?

    There are different templates for iPhoto books and they differ from version of iPhoto to iPhoto, so explore the other options.

  • How to put name in the application toolbar

    how to put name on the button in the application tool bar while it is created with selection screen

    I've never seen this done this way.  Learn something new everyday.  Anyway, here is a sample program that will show you what you need to do to add text to your function button,  this also adds an icon.
    report zrich_0002.
    Tables: sscrfields.
    selection-screen function key 1.
    select-options: s_datum for sy-datum.
    INITIALIZATION.
      MOVE '@49@ Export'  TO SSCRFIELDS-FUNCTXT_01. "ICON_EXPORT
    If this has solved your problem, please award points accordingly and mark this post as solved.  Thanks.
    Regards,
    Rich Heilman

  • I have new music on the itunes but have not a clue how to put it on the iphone, it only seems to want to put the old songs on

    i have new music on the itunes but have not a clue how to put it on the iphone, it only seems to want to put the old songs on

    http://support.apple.com/kb/HT1386
    Are you manually managing your songs?
    In itunes - music do you see checkmarks next to your musis/songs.  IF so go find your new songs click on it and then sync your music again.

  • How do I permanently set the zoom level? I am sick of hacing to "ctrl +" on every page!!

    How do I permanently set the zoom level? I am sick of hacing to "ctrl +" on every page!! It is a HUGE waste of time. If I can't do it, then no more FF.

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • How to Restrict the node level in account hierarchy

    Hi experts,
    I want to restrict the node level in account hierarchy. I attached one example. in that if i click 6000 node again it want to show error message. for one parent node i want to create only two child node. Further if i create means it want to show error msgs and not allow to create the node..
    Regards,
    gopi

    Hi ,
    The component is bp_hier, and method is onnew_node.
    IF lv_tree->is_locked( ) = abap_false.
         lv_tree->lock( ).
       ENDIF.
       CHECK lv_tree->is_locked( ) = abap_true.
       lv_index = typed_context->accounthierarchy->selected_index.
       lv_tree_node = typed_context->accounthierarchy->get_node_by_index( lv_index ).
    *key = lv_tree_node->node_key.
      CALL METHOD lv_api->get_node_parent
         EXPORTING
           iv_node_key        = key
         IMPORTING
           ev_parent_node_key = lv_paent_key
    *      ev_tree_guid       =
    *   lv_parent = lv_tree_node->parent_entity.
    *    typed_context->accounthierarchy->parent_entity.
    CALL METHOD lv_tree_node->get_children
       receiving
         rt_children = rt_child.
       CHECK lv_tree_node IS BOUND.
       lv_tree_node->is_leaf = abap_false.
       TRY.
           lv_proxy_node ?= lv_tree_node.
           TRY.
               lv_object ?= lv_proxy_node->bo.
             CATCH cx_sy_move_cast_error.
               lv_mixed_node ?= lv_proxy_node->bo.
               lv_object ?= lv_mixed_node->if_bsp_wd_ext_property_access~get_model_node( ).
           ENDTRY.
           lv_object_name = lv_object->get_name( ).
           IF lv_object_name = 'BuilHierarchyNode'.
             lv_relation_name = 'BuilHNodeRel'.
           ELSEIF lv_object_name = 'BuilHierarchyHeader'.
             lv_relation_name = 'BuilHeaderNodeRel'.
           ELSE.
             RETURN.
           ENDIF.
           lv_tree_node->get_children( ).
           lv_object = lv_object->create_related_entity( lv_relation_name ).
           lv_child_node = lv_proxy_node->node_factory->get_proxy(
               iv_bo = lv_object
               iv_proxy_type = 'CL_BP_HIER_HIERARCHYTREEV_CN05'
               iv_parent_proxy = lv_tree_node ).
           lv_tree_node->expand_node( ).
           typed_context->accounthierarchy->refresh( ).
           typed_context->accounthierarchy->deselect_all( ).
           lv_child_node->selected = abap_true.
           lv_child_node->is_leaf  = abap_true.
    *accounthierarchy
    *      selectedhierarchynode
           lv_col_wrap = typed_context->selectedhierarchynode->get_collection_wrapper( ).
           lv_col_wrap->clear( ).
    This is the code.
    i wrote . but its not getting.

  • How to maintain Currencies at Hierachu Node Levels

    HI Gurus
    I have a requirement to use the Currency Translation at Hierarchy Node Level :I have to display all the Node Level Currencies at Group Currency Level AED  and Child level will have Local Currency.
    For Example : I have Plant Hierarchy 
             PLANT NODE1:   AED (Result needs to be converted in to AED)  ---> 9800 AED instead of 1000 BHD
                     CHILD1 :  500 BHD
                     CHILD2 :  500 BHD
             PLANT NODE2:  AED (Result needs to be converted in to AED) -->13250 AED  Instead of 1000 KWD
                      CHILD2 : 500 KWD
                      CHILD3:  500 KWD
    PLANT ROOT  : AED : 23050 AED should be appeared insted of * due to multiple currencies
    I have tried to created NOde variables and use the currency conversion filed but it is appearing in non editable mode.
    Could you please advise how can we achieve this
    Best Regards
    NLN

    HI Gurus
    I have a requirement to use the Currency Translation at Hierarchy Node Level :I have to display all the Node Level Currencies at Group Currency Level AED  and Child level will have Local Currency.
    For Example : I have Plant Hierarchy 
             PLANT NODE1:   AED (Result needs to be converted in to AED)  ---> 9800 AED instead of 1000 BHD
                     CHILD1 :  500 BHD
                     CHILD2 :  500 BHD
             PLANT NODE2:  AED (Result needs to be converted in to AED) -->13250 AED  Instead of 1000 KWD
                      CHILD2 : 500 KWD
                      CHILD3:  500 KWD
    PLANT ROOT  : AED : 23050 AED should be appeared insted of * due to multiple currencies
    I have tried to created NOde variables and use the currency conversion filed but it is appearing in non editable mode.
    Could you please advise how can we achieve this
    Best Regards
    NLN

  • How to put CheckBox in TableColumn header?

    How can I put a CheckBox in the TableColumn header?
    I made a CheckBox Column with a custom CellValueFactory and want to select/deselect all rows with one "master" checkbox in the column header.

    Related thread:
    custom table header "Thread: custom table header"
    http://javafx-jira.kenai.com/browse/RT-14909 "It should be possible to customise the TableColumn header area more" (fixed in 2.2)
    Short answer is to use setGraphic on the column.
    TableColumn col = new TableColumn("Pink Elephants");
    col.setGraphic(new CheckBox());

  • Add checkbox on the nodes of Hierarchical tree in oracle forms 9i

    Hi,
    I am working on oracle forms 9i.I have to add checkbox at the place of node(+/-) in Hierarchical tree so,
    that user can select or deselect the Tree.That can do in oracle forms but how i don't know.
    can anybody help me.....
    Regards,
    Hemant

    You can't change this aspect of the Tree Control in Oracle Forms using built-in functionality. You might be able to extend the Tree Control using Java, but you have to do this yourself. : (
    Craig...

  • How to put music in the pdf file?

    how to put music into pdf file?
    when open the pdf file in adore reader, music star automatic and when close the music stop itself....
    my version cant add music into it.
    Version: adobe reader x
    can someone show me the ways?

    Adobe Reader cannot do such a thing.

  • How to put borders in the tabular form report

    Hi,
    I need to put borders in the tabular form report in the apex UI .I mean in the by default no boundary comes so I need vertical lines in the column .
    So how to do that.
    Thanks in advance.
    Edited by: Vivek on May 22, 2012 8:25 PM

    Edit the report page > Report Attributes > Change the report template for different look and feel
    You can also customize the report template or even create your own template
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ui_templt.htm#HTMDB25707

Maybe you are looking for

  • Problem removing trial version of LiveCycle Designer in order to install new and input license key

    User installed the trial version and has been using it. Now that we have a license key to enter, they have tried to remove it so they can reinstall and enter the key. They get a mesage that there is a problem with the install and it will not remove i

  • Mac mini with LCD?

    My brother has just purchased this TV ... http://www.swedx.se/productinfo.php?productsid=70 ... he was asking about buying a Mac and I was wondering if he would be able to use it with this screen!? I did try looking on the mac mini site to find any r

  • Backup question

    I'm sorry if an answer to this has been posted already, but I haven't found it. Very simply: is there a way to get Aperture to only back up new projects? My intent is to save all of my library the one time and then be able to delete some of the less

  • Link between EKKO, EKPO and KONP

    Hi, can someone help me out to trace the link between EKKO, EKPO and KONP tables? regards, ravi.

  • Images  have question mark e-mail and web pages

    Why are half of all images not there,replaced with blue box with question marks. Anything on line , like emails ,web sights. No rime or reason. Please help me out. I am new with apple, not computers.... Thank You, kimbr