Skip to Content
0
Jan 24, 2011 at 01:09 PM

Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED_NO

21 Views

Hi Experts,

Basis team identified the following dump. Please advice a fix.

Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED_NO

Exception CX_SY_REF_IS_INITIAL

Date and Time 24.01.2011 12:35:18

DATA lo_nd_settings TYPE REF TO if_wd_context_node.

DATA lo_nd_ecm TYPE REF TO if_wd_context_node.

DATA lo_nd_crevi TYPE REF TO if_wd_context_node.

DATA lo_el_crevi TYPE REF TO if_wd_context_element.

DATA ls_crevi TYPE wd_this->element_crevi.

data l_citem type ecm_citem.

  • navigate from <CONTEXT> to <SETTINGS> via lead selection

lo_nd_settings = wd_context->get_child_node( name =

wd_this->wdctx_settings ).

  • navigate from <SETTINGS> to <ECM> via lead selection

lo_nd_ecm = lo_nd_settings->get_child_node( name =

wd_this->wdctx_ecm ).

  • navigate from <ECM> to <CREVI> via lead selection

lo_nd_crevi = lo_nd_ecm->get_child_node( name =

wd_this->wdctx_crevi ).

  • @TODO handle not set lead selection

IF lo_nd_crevi IS INITIAL.

ENDIF.

  • get element via lead selection

lo_el_crevi = lo_nd_crevi->get_element( ).

  • get all declared attributes

lo_el_crevi->get_static_attributes(

IMPORTING

static_attributes = ls_crevi ).

DATA lo_nd_selection TYPE REF TO if_wd_context_node.

DATA lo_el_selection TYPE REF TO if_wd_context_element.

DATA ls_selection TYPE wd_this->element_selection.

  • navigate from <CONTEXT> to <SETTINGS> via lead selection

lo_nd_settings = wd_context->get_child_node( name =

wd_this->wdctx_settings ).

  • navigate from <SETTINGS> to <SELECTION> via lead selection

lo_nd_selection = lo_nd_settings->get_child_node( name =

wd_this->wdctx_selection ).

  • get element via lead selection

lo_el_selection = lo_nd_selection->get_element( ).

*****************dump occured here ******************

  • get all declared attributes

lo_el_selection->get_static_attributes(

IMPORTING

static_attributes = ls_selection ).

ls_selection-begda = ls_crevi-slbeg.

ls_selection-endda = ls_crevi-slend.

Regards,

Venkatesh