Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic creation of context node

Hi All,

I have to create the context node dynamically by using SE38 program . After searching in SDN , I found the below code which will create context node in the run time.

The code is useful to me. But i have a doubt in this.

In the below code i could not use wd_context and instead i will use if_wd_context_node variable. Thats not a problem.

The lr_rootnode_info will be blank when i am running this code . Right? So how can i get the instance of the lr_rootnode_info.?

lr_rootnode_info = wd_context->get_node_info( ).

  CALL METHOD lr_rootnode_info->add_new_child_node
   
EXPORTING
      static_element_type          =
'SFLIGHT'
      name                         =
'FLIGHT'
    RECEIVING
      child_node_info              = lr_node_info.
  lr_node = wd_context->get_child_node( name =
'FLIGHT' ).

Thanks,

Pradeep

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question