1. Put below code in the WDOINIT.
DATA l_nd_inf TYPE REF TO if_wd_context_node_info.
DATA l_nd TYPE REF TO if_wd_context_node.
DATA l_wa TYPE wdr_context_attr_value.
DATA lt_wa TYPE TABLE OF wdr_context_attr_value.
"NODE NAME OF THE NODE HAVING THE ATTRIBUTE
l_nd = wd_context->get_child_node( 'SELECTION' ).
l_nd_inf = l_nd->get_node_info( ).
l_wa-text = 'X'.
l_wa-value = 'V1'.
APPEND l_wa TO lt_wa.
l_wa-text = 'y'.
l_wa-value = 'V2'.
APPEND l_wa TO lt_wa.
l_wa-text = 'Z'.
l_wa-value = 'V3'.
APPEND l_wa TO lt_wa.
l_wa-text = 'A'.
l_wa-value = 'V4'.
APPEND l_wa TO lt_wa.
l_nd_inf->set_attribute_value_set(
name = 'MODEL' "ATTRIBUTE NAME
value_set = lt_wa
).
Output
Context View
No comments:
Post a Comment