Skip to Content
author's profile photo Former Member
Former Member

Module Pool Dynamic Node(Tree)

Hi Experts,

I have a requirement that i need to build a node in module pool. and for that node i need to pass the variable(dynamic value from program) as a child node. Please help how to do this. I already tried but its not working. Here in the image at yellow color highlited, where i need to pass the value as a child node.

Thanks in Advance

NareshN

Capture.PNG (7.4 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2014 at 05:41 AM
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Kiran,

      Thank you for the response. I am sorry, i may not asked the question in clear way. Let me ask in clear now.

      There is a fixed Node lets say 'Manager1'. Under this Node i need to display his/her sy-uname as a child node.

      I used CLASS lcl_application to create node. but under this node how can i display sy-uname as a child node of it?

      Thank you

      NareshN

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2014 at 06:14 AM

    Hi,

    please go through this program.I think it will help

    Message was edited by: KIRAN RAJAN


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2014 at 06:32 AM


    Hi,

    Please refer to the below code.

    CALL METHOD g_alv_tree->add_node

    EXPORTING

    i_relat_node_key = p_cnode_key " if this node is father level, keep it blank. if this node is child, need provide the father level number.

    i_relationship = cl_gui_column_tree=>relat_last_child

    i_node_text = l_node_text " This is text of the node

    is_outtab_line = wa_outtab " This is output work area

    IMPORTING

    e_new_node_key = p_nnode_key. " This is the node id. using to count the node numbers.

    Regards,

    Yawa

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2014 at 08:59 AM

    Hi Naresh,

    for creating the node, you have to see this link, in which it is shown how to build a node,

    you have to do some modifications, considering your requirements

    http://scn.sap.com/thread/3382929

    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.