Node_info = wd_context->get_node_info( ). Struct_type = cl_abap_structdescr=>create( comp_tab ). * not this structure contains the fields “CONNID” and “CARRID” * build a structure description from the list of single fieldsĬomp-type ?= cl_abap_datadescr=>describe_by_name( ‘S_CARR_ID’ ).Ĭomp-type ?= cl_abap_datadescr=>describe_by_name( ‘S_CONN_ID’ ). Struct_type type ref to cl_abap_structdescr. Here is a simple example:ĭata: node_info type ref to if_wd_context_node_info,Ĭomp_tab type cl_abap_structdescr=>component_table, This parameter is used when context node attributes are determined at runtime. L_node_info = l_node_info->add_new_child_node(Īpart from these two import parameters to specify the context node structure there is another import parameter to create context node called static_element_rtti. L_node_info = wd_context->get_node_info( ). L_attribute-rtti ?= cl_abap_typedescr=>describe_by_name( ‘SFLIGHT-CARRID’ ). Insert l_attribute into table l_attributes. L_attribute-rtti ?= cl_abap_typedescr=>describe_by_name( ‘STRING’ ). L_attributes type wdr_context_attr_info_map, L_attribute type wdr_context_attribute_info, We need to create method S_STATIC_NODE in the methods tab of the view of type Supply Function.Īnother Example: Here unlike previous case the Type Name of the attributes are not maintained.ĭata: l_node_info type ref to if_wd_context_node_info, Here, the supply method parameter is passed. Is_initialize_lead_selection = abap_false Lr_node_info = wd_context->get_node_info( ). Insert attribute into table lt_attributes. Lr_node_info type ref to if_wd_context_node_info. Lt_attributes type wdr_context_attr_info_map, For that we use the importing parameter ATTRIBUTES.
If it is true context node can’t be changed dynamicallyĭepending on the requirement this parameters are set accordingly.Ĭontext node can be defined using random attribute structure also. If it is true then Lead Selection Always Defined If it is true then the Node Only Exist for Lead Selection of Parent If it is true multiple entries can be selected.
If it is true the context node can contain more than one entry. If it is true at least one entry must be selected. If it is true there must be at least one entry. Mention the name of the Supply method to populate the context node attributes