Skip to Content
avatar image
Former Member

create new child-node in supply-function

I want create a new node in a Supply-Function and fill them with data.

It is possible to create the node,

cl_wd_dynamic_tool=>create_nodeinfo_from_struct(

parent_info = node_info

node_name = 'NODE_3'

structure_name = l_structure_name

is_multiple = abap_true

is_mandatory = abap_false ).

but I canu2019t get access to it.

l_cntx_nd_result = node->get_child_node( 'NODE_3' ).

(l_cntx_nd_result is initial)

Node_1 has already one Child-node u2018NODE_2u2019 created at Design time.

I also canu2019t get access to this node in the Supply-Function.

l_cntx_nd_result = node->get_child_node( 'NODE_2' ).

I get Access to the new Node (NODE_3) in the NODE_1-Action, but not in the Supply-Function.

Do I make any a mistake?

Thanks for Help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 01, 2011 at 09:55 AM

    It should fetch the child node.

    can you post the complete code of ur supply function.

    thanks

    sarbjeet singh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I suspect this is something to do with Supply function.

      I would suggest to copy the code and place it in a method and test it.

      I think, I shouldnu2019t fill the new node in the Supply-Function, maybe in u2018onLoadChildrenu2019.

      Thanks for Help.