Skip to Content
0
Former Member
Sep 19, 2007 at 03:55 PM

CONTEXT OF VIEW

22 Views

I do have an internal table in the context of one of my view

in method WDDOINIT

this is the last statements

  DATA:
    NODE_OBJECT_LIST                    TYPE REF TO IF_WD_CONTEXT_NODE,
    ELEM_OBJECT_LIST                    TYPE REF TO IF_WD_CONTEXT_ELEMENT,
    STRU_OBJECT_LIST                    TYPE WD_THIS->ELEMENT_OBJECT_LIST .
* navigate from <CONTEXT> to <OBJECT_LIST> via lead selection
  NODE_OBJECT_LIST = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_OBJECT_LIST ).

* get element via lead selection
  ELEM_OBJECT_LIST = NODE_OBJECT_LIST->GET_ELEMENT(  ).

* get all declared attributes

ELEM_OBJECT_LIST->bind_table( new_items = LIT_WDTYPE ).
  ELEM_OBJECT_LIST->SET_STATIC_ATTRIBUTES(
    EXPORTING
      STATIC_ATTRIBUTES = LIT_WDTYPE ).

At runtime ELEM_OBJECT_LIST is null how can that be ?