method SUPP_CHANGE_DATA DATA lo_nd_viewdata TYPE REF TO if_wd_context_

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
method SUPP_CHANGE_DATA .
DATA lo_nd_viewdata TYPE REF TO if_wd_context_node.
DATA lo_el_viewdata TYPE REF TO if_wd_context_element.
DATA ls_viewdata TYPE wd_this->element_viewdata.
lo_nd_viewdata = wd_context->get_child_node( name = wd_this->wdctx_viewdata ).
lo_el_viewdata = lo_nd_viewdata->get_element( ).
IF lo_el_viewdata IS INITIAL.
lo_nd_viewdata->bind_structure( new_item = ls_viewdata set_initial_elements = abap_true ).
else.
do_change_report( ).
ENDIF.
endmethod.