cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically add context sub node with supply function

Former Member
0 Kudos

Hi there,

is it somehow possible to add also a SUPPLY FUNCTION to a dynamically added context sub node?

Unfortunately, I can't find any information about this.

My code for the dynamic added context sub node looks like this:

DATA lo_nd_info_root TYPE REF TO if_wd_context_node_info.
  DATA lo_nd_info_incident TYPE REF TO if_wd_context_node_info.
  DATA lo_nd_info_incident_sub TYPE REF TO if_wd_context_node_info.
  DATA lo_nd_incident_sub TYPE REF TO if_wd_context_node.


  lo_nd_info_root = wd_context->get_node_info( ).
  lo_nd_info_incident = lo_nd_info_root->get_child_node( name = 'INCIDENT' ).

  * Create Sub Node
  lo_nd_info_incident_sub = lo_nd_info_incident->add_new_child_node(
    name = 'MYSUBNODE'
    static_element_type = 'ZSACO_T_MASTER'
    is_static = abap_false ).

* Bind table to Sub Node
  lo_nd_incident_sub = lo_nd_incident->get_child_node( name = 'MYSUBNODE' ).
  lo_nd_incident_sub->bind_table(
      EXPORTING
         new_items  = lt_inc ).

But the sub node "lo_nd_info_incident_sub" should have a Supply Function which updates its context when the parent node has changed. Is this possible?

Best regards, Steffen

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

there is no dynamic create of methods, supply functions.

you can achieve this onLeadSelect event of the table control

Abhi

Answers (0)