Editing of a  Column of ALV Tree(OOPS) node

is it possible to edit a column of node of ALV tree.
i am using ALV class "CL_GUI_ALV_TREE".
After searching existing threads, for the same issue..i found the following.
1) Editable Tree ALV
  ( displays pop up window where user can change values and then transfer these changes back to ALV tree)
2) Editable Field in ALV TREE Display Using OOPs
     (this approach is not working for ALV Tree)
But i want to edit directly coulmn of a node of ALV tree.
is it possible in  OOPS ALV Tree?
if it possible, can any one provide the sample code,

As you already noticed, this is not possible, but you may edit your fields outside the tree and bring your changes back to tree. I struggled with the same once but eventually used described alternative. If you use saplink you may check upgrade [chain and rename|http://code.google.com/p/saplink-chain-and-rename/downloads/list] where this approach is released. The code is free so you will be able to study and copy whatever you need from it.
Editing in a pop up is also an alternative here.
Regards
Marcin

Similar Messages

  • Edit the column in ALV tree

    Hi Experts ,
                          I want to edit the column contents in a ALV tree and the save the content . I am using CL_ALV_gui_tree class to build the tree structure.please help on this
    With regards
    RKM

    Hi,
    In the field catalog internal table ,
    Fcat-edit  = 'X'.
    This makes the particular field as editable mode. append to field catelog internal table.
    include into your internal table.
    in the structure.
       types: cellstyles type lvc_t_styl.
    call this class
    class lcl_event_handlers definition.
      public section.
        methods:handle_button_click for event button_click of cl_gui_alv_grid
                                                              importing  es_row_no.   " METHOD TO HANDLE PUSH BUTTON
    endclass.                "lcl_event_handlers DEFINITION
    class lcl_event_handlers implementation.
    method handle_button_click.
    perform handle_button_click using   es_row_no .   " ACTION TO BE PERFORMED WHEN CLICKING ON PUSH BUTTON
    endmethod.
    layout :
    gs_layout-stylefname = 'CELLSTYLES'.
    endclass.
    ls_style-fieldname = 'BUTTON'.
    ls_style-style = cl_gui_alv_grid=>mc_style_button.
    append ls_style to wa_str-cellstyles.
    ***********button name
       wa_str-button = 'SAVE'.
       modify it_str from wa_str transporting button.

  • ALV Tree, Expanded node do not show data in certain column

    Hi all,
    I need your help regard to below problem.
    I have an ALV grid in which one of the columns has F4 (search help). If search help is called by pressing a F4 button a dialog box will be shown with ALV tree on it.
    The ALV Tree has 2 columns which are: hierarchy column and one other column called WBS column. At the first show, all expanded node show data contained in WBS column, but if I click to expand a collapsed node, data is not shown in WBS column for the new expanded rows, only shows data in hierarchy column. How to show data in WBS column for the new expanded rows..?
    Basically if at the first show I expand all node, data in WBS column are shown for all rows. It seems that the Expand Node event doesn't update all column data to be shown.
    Please share if anyone of you has faced this kind of problem. Thank you.
    Regards,
    Ramses Hutahaean
    Edited by: Ramses Hutahaean on Feb 29, 2012 1:38 PM

    Hi Fenja,
    as the click-events only raise the node_key (at least I couldn't detect another information), I assume the only way is maintaining an internal helper table by yourself which you build up in parallel when creating the tree and its nodes.
    The (hashed) table might contain 2 columns:
    1. node_key (as table key)
    2. reference to an object
    When a click-event is raised, you look up the corresponding object reference in your table.
    Regards,
    Ulrich

  • Average sum for a column in ALV tree layout

    Hi,
    I've trying to set an average sum for a column in an ALV tree report.  In the field catalog i set the DO_SUM field to 'X' and this will do a total sum, but I can't find out how in the code to do the average sum.
    Also to get round this I was going to just set a default display variant with the "average" sum option saved after i had manually selected the columns and set it to this.  Problem with this is that when i re-run it, the sum comes back as a total rather than an average.  I have tried setting display variants on the SAP example ALV tree programs and the same thing happens.
    Does anyone know how i can get round this?
    Cheers
    Matt.

    Hi,
    In addition to setting DO_SUM = 'X' you need to specify function in H_FTYPE field. It should be set to 'AVG' in your case.
    ls_fielcat-do_sum = 'X'.
    ls_fieldcat-h_ftype = 'AVG.

  • Editing rows and columns in alv reports in webdynpro abap

    how edit row and columns in webdynpro abap ?
    can i add colors to salv repotrs for below and above range of values  how ?
    if possible send source code for it.............

    hi
    check out this link for editing the columns of ALV
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b
    check out for this thread as well for coloring ALV
    Coloring of selected table cells: Ideas wanted
    regards,
    amit

  • ALV TREE add node

    can someone please help me ?
    I can't find how the method add_node for a alv tree works:
    CALL METHOD tree->add_node
        EXPORTING
          i_relat_node_key =
          i_relationship   =
          i_node_text      =
          is_outtab_line   =
        IMPORTING
          e_new_node_key   =
    can someone please explain me the meaning of the parameters?
    thanks in advance

    Hi Gabriele,
    Check out the below sample code to use of the method add_node.
    data: l_relat_node_key type lvc_nkey,
             l_node_text type lvc_value,
             ls_node_layout type lvc_s_layn,
             ls_node_key like node_key,
             new_node_key type lvc_nkey.
        call method alv_tree_control->add_node
          exporting i_relat_node_key = l_relat_node_key
                    i_relationship   = cl_gui_column_tree=>relat_last_child
                    i_node_text      = l_node_text
                    is_node_layout   = ls_node_layout
                    is_outtab_line   = ls_tree
          importing e_new_node_key   = new_node_key.
    *   ID und Node_key in Tabelle gt_node_key abspeichern
        ls_node_key-id       = ls_tree-klnodetext-id.
        ls_node_key-node_key = new_node_key.
        append ls_node_key to l_node_key_tbl.
    This might helpful for you.
    Thanks,
    Chidanand

  • ALV tree - change node text

    hello,
    on a screen I have input fields such as year and below a container holding an ALV tree.
    When I change the year value, that starts a new selection from a table and should result in changing many of the lines in the tree.
    I was trying to use the methods "get_outtab_line" to retrieve the tree line data and then changing this data with method "change_node".
    The problem is I cannot access the correct node-key. The node-key value is kept in memory somewhere and when I refresh the alv tree at PBO, the node-key is incremented from the stored value which means I cannot use get_outtab_line properly.
    Any suggestions or example programs,
    Thanks a lot,
    Kevin

    Hi Kevin,
    Try using method update_calculations instead of directly using frontend_update.
    So the sequence should be,
      IF NOT ref_tree IS INITIAL.
        CALL METHOD ref_tree->free.
      ENDIF.
      CREATE OBJECT ref_tree...
      CALL METHOD ref_tree->set_table_for_first_display...
    ****Data fill in a loop
      CALL METHOD ref_tree->add_node..
    ****Expand if needed
      CALL METHOD ref_tree->expand_node..
    ****Toolbar Logic if needed..
    ****Events Registration
    ****Finally call to update calculations
      CALL METHOD ref_tree->update_calculations..
    Hope this helps..
    Sri

  • Re-sizing hierarchy column in ALV Tree

    Hi all,
    I have created a class inheriting from CL_GUI_ALV_TREE that is used to create a Tree structure for Equipment.....
    Now my requirement is that the Hierarchy column should be re-sized based on the width of the node text.
    Please help.
    Thanks in advance.....

    You can control the size of the hierarchy column by setting the following field:
    *Set the width as follows
      g_hierarchy_header-width = 200.
    *Reference the g_hierarchy_header structure when calling the following method
      CALL METHOD tree1->set_table_for_first_display
        EXPORTING
        is_hierarchy_header = g_hierarchy_header
          it_list_commentary  = gt_header[]
          is_variant          = g_variant
          i_save              = g_save...

  • Re-size Hierarchy column in ALV Tree

    Hi all,
    I have created a class inheriting from CL_GUI_ALV_TREE that is used to create a Tree structure for Equipment.....
    Now my requirement is that the Hierarchy column should be re-sized based on the width of the node text.
    Please help.
    Thanks in advance.....

    Not answered

  • How edit/focus/resize columns of JTable that is node of JTree?

    I have added a JTable as a node on a JTree, but now I can't interact with it. I think that it is because all mouse/selection actions are grabbed by the JTree. However, I can't figure out how to pass these on to the table.
    What method do I call? I can't seem to find a way to get which column I have clicked over, and even if i did, i can't find a method to actually select it!
    please help!

    Hi,
    your questions I had got some time ago, and I solved the problem . It means you will as well.

  • How to avoid blank column display in output in ALV TREE

    how to avoid blank column display in output while decreasing the length of other columns in ALV Tree.
    Example: please refer to BCALV_TREE_01 and see the output, then decrease the length of all columns . Then you can see a blank column appearing in screen at last, i.e in container. so how to avoid that.
    Thanks for reply.
    Edited by: morpeous on Jul 1, 2009 1:53 PM

    Hi,
    Check BCALV_TREE_02 on how to hide columns.
    Thanks & Regards,
    Anand Patil

  • EDIT ALV TREE

    Hi all,
    I followed SAP example program to create 'COLUMN structure ALV tree' to diaplay and i have to make some of the fields as editable and get back the changed values in the internal table.Here i did not use field catalog at all.
    I used  gui_custom_container,cl_gui_custom_container,cl_gui_column_tree ...and added every column to the the tree object .Built the node with two internal table(like order header & order item ) to form a tree.How should i get the changed values in the internal table when user changes values in Colums of order item node.
    Any help is appreciated.
    thanks,
    dan.

    Hello all,
    Thanks for you reponses.I was actually referring  COLUMN_TREE_CONTROL_DEMOF01,now kind of changing the code like BCALV_TREE_DEMO, BCALV_TREE_SIMPLE_DEMO .Looks like i can make the field as editable by changing the edit field in layout object.But unlike  'GRID' object this tree object is not having any method like 'check_change_data' .
    How to get back the changed/values in iternal table or by any other means.
    Any idea of getting changed values from ALV tree object would be really helpful.
    thanks,
    dan

  • To display complete Column as Pushbottons in Simple ALV Tree

    Hi Everybody,
    Are pushbuttons possible in Simple ALV Tree?
    If yes, Can anybody help me in displaying one of the Columns in ALV Tree as Pushbuttons.
    Sample Code for this would also be appreciated.
    Thanks in Advance.
    Regards,
    Arshad

    Hi,
    Check this out.
    http://help.sap.com/saphelp_erp2004/helpdata/en/88/387f380c2f2e3ce10000009b38f8cf/content.htm
    Reward if helpful.
    Regards,
    Ramya

  • Drag and Drop between two ALV Tree.

    Hi,
    I am trying the drag and drop event between two ALV Tree.
    After the occurence of drag and drop event , I am able to get the node key of the source tree node which is dragged . But when the node is dropped onto the target ALV Tree the target node does not gets selected, instead a plus mark appears focussing on the target node in the target ALV Tree. Can anyone suggest a way to get the node key of the focussed target node. Thanks.
    Regards,
    Prabaharan

    hey Prabaharan,
    y don't u check this link once
    u may get some idea
    Re: ALV tree - change node text
    Regards
    Naveen

  • Sample Program for Creating ALV Tree

    Hello Guys,
    Can some One Send me some sample program for creating ALV Tree.
    my Requirement is like below Diagram.
    ALV Tree |   ALV GrId
       |
       |
    I want to also about event in ALV , As per requirement when user select (Double click or press any push button) a node of ALV Tree That Node (Contain Sales order and as a child billing Doc No)  In the ALV Grid All the details about Sales order Will be display.
    Please guide me.
    Thanks
    Swati....

    Hi..
    check the following demo programs:
    RSDEMO_DRAG_DROP_EDIT_TREE
    RSDEMO_DRAG_DROP_TREE_MULTI
    BCALV_GRID_DND_TREE
    BCALV_GRID_DND_TREE_SIMPL
    BCALV_TEST_COLUMN_TREE
    BCALV_TEST_SIMPLE_TREE
    BCALV_TREE_01
    BCALV_TREE_02
    BCALV_TREE_03
    BCALV_TREE_04
    BCALV_TREE_05
    BCALV_TREE_06
    BCALV_TREE_DEMO
    BCALV_TREE_DND
    BCALV_TREE_DND_MULTIPLE
    BCALV_TREE_EVENT_RECEIVER
    BCALV_TREE_EVENT_RECEIVER
    BCALV_TREE_ITEMLAYOUT
    BCALV_TREE_MOVE_NODE_TEST
    BCALV_TREE_SIMPLE_DEMO
    BCALV_TREE_VERIFY
    hope this helps..
    -kothai

Maybe you are looking for

  • Error message when trying to play/charge via dock and home stero

    My new Nano 5G will play via my stero when I hook it up through my "older" dock. However, I get an error message stating something about the accessory not being supported and it won't charge while in the dock. I noticed the older flat plug that that

  • WIN 8 drivers not for my new HP 4635 office jet not on my HP Smarttouch 14 " notebook

    Unable to get my printer to accept wireless print commands from my HP Smarttouch 14" notebook.

  • UD complete without valuation

    Hi All, I am having a unique problem with one of the Inspection lot created with 04 type using MFBF UD status shows UD   ICCO SPCO , but the Inspection lot valuation in the usage decision tab is blank Stock posting is not completed When i try to use

  • Accounting in Radius !

    Hi all, can someone tell that can we perform accounting through radius as we can do with tacacs ? I tried doing this but kindly see below R1(config)#aaa accounting commands 15 default start-stop group ? WORD Server-group name tacacs+ Use list of all

  • E-Sourcing/CLM - next versions?

    Hi We concider to implement the E-sourcing/CLM solution. But I can see that the mainstream maintenance of the current versions (e-sourcing 5.1/CLM 2.0) ends in 2012. Therefor we would rather wait for the next version if it is released soon. I can see