Skip to Content

Create a third level node in tree view SAP CRM


I need to create a third level in a treeview. I created the application according to the tutorial Drag and Drop in Tree Type BSP View, but can only create two levels. I checked in post found here in the SCN: , but could not understand what brings up the third level in the hierarchy. Can you help me?


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jan 14, 2016 at 07:57 PM


    I solved the problem using the code below:

    lv_entity ?= lr_col->get_first( ).

    WHILE lv_entity IS BOUND.

    lr_child = me->node_factory->get_proxy(

    iv_bo = lv_entity

    iv_parent_proxy = me

    iv_proxy_type = 'ZCL_PRODUCT_TREE' ).

    lr_child->is_leaf = abap_false.

    lr_child->expand_node( ).

    APPEND lr_child TO rt_children.

    lv_entity ?= lr_col->get_next( ).


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.