Hello,
how can i delete the complete table?
The code is from the wizard:
DATA lo_nd_productcategorie TYPE REF TO if_wd_context_node.
DATA lo_el_productcategorie TYPE REF TO if_wd_context_element.
DATA ls_productcategorie TYPE wd_this->element_productcategorie.
* navigate from <CONTEXT> to <PRODUCTCATEGORIE> via lead selection
lo_nd_productcategorie = wd_context->path_get_node( path = `TBL_ORGMODEL_DATA.PRODUCTCATEGORIE` ).
* alternative navigation via index
* lo_nd_productcategorie = wd_context->path_get_node( path = `TBL_ORGMODEL_DATA.1.PRODUCTCATEGORIE` ).
* @TODO handle non existant child
* IF lo_nd_productcategorie IS INITIAL.
* ENDIF.
* get element via lead selection
lo_el_productcategorie = lo_nd_productcategorie->get_element( ).
* alternative access via index
* lo_el_productcategorie = lo_nd_productcategorie->get_element( index = 1 ).
* @TODO handle not set lead selection
IF lo_el_productcategorie IS INITIAL.
ENDIF.
* @TODO fill static attributes
* ls_productcategorie = xxx->get_yyy( ).
* set all declared attributes
lo_el_productcategorie->set_static_attributes(
static_attributes = ls_productcategorie ).
THX