Skip to Content

Error in context binding for text property

Hello experts,

I receive this error in my WD4A application:

The following error text was processed in the system XXX : Context binding for property TEXT of "T_MONTHTO"

cannot be resolved: Node MAINVIEW.1.TEMPVAL2 does not contain any elements

The error occurred on the application server sapxxxxx_XXX_00 and in the work process 0 .

The termination type was: RABAX_STATE

The ABAP call stack was:

Method: RAISE_FOR of program CX_WDR_ADAPTER_EXCEPTION======CP

Method: RAISE_BINDING_EXCEPTION of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP

Method: GET_BOUND_ELEMENT of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP

TEMPVAL2 has cardinality 0..1, selection 0..1, Inizialization Lead Selection false and the ST22 dump says:

 
33
34   if l_adapter->m_view_element is bound.
35     l_component ?= l_adapter->m_view_element->view->if_wd_controller~get_component( ).
36     l_view_name = l_adapter->m_view_element->view->name.
37     l_view_element_id = l_adapter->m_view_element->id.
38     l_component_name = l_component->component_name.
39   endif.
40
41   if l_adapter->m_context_element is bound.
42     l_path = l_adapter->m_context_element->get_path( ).
43   endif.
44
>>   raise exception type cx_wdr_adapter_exception
46     exporting
47         textid          = textid
48         previous        = previous
49         component_name  = l_component_name
50         view_name       = l_view_name
51         view_element_id = l_view_element_id
52         adapter_stack   = l_adapter_stack
53         path            = l_path
54         p1              = l_p1
55         p2              = l_p2
56         p3              = l_p3
57         p4              = l_p4
58         reason          = reason.
59 endmethod.

Could anybody please tell me why exactly this error is occuring?

Many regards,

Martin

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 01, 2008 at 03:54 AM

    Hi Martin,

    Change the cardinality to 1:1 or 1:N. The error wont come.

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Martin Lehmann

      Hi Martin,

      I am getting the same error. can you please help me resolve this error.

      Error:

      Note

      The following error text was processed in the system RS2 : Adapter error in &VIEW_ELEMENT_TYPE& "VBELN" of view "Z_MYFIRST_WEBDYNPRO.MAIN": Context binding of property VALUE cannot be resolved: Node MAIN.1.NODE_VBAK does not contain any elements

      My Code is in the Method for the action is created for a button on MAIN VIEW

      METHOD onactionaction_find .

      wd_this->fire_to_alv_table_plg( ).

      DATA: node_node_vbak TYPE REF TO if_wd_context_node,

      elem_node_vbak TYPE REF TO if_wd_context_element,

      • stru_node_vbak TYPE if_main=>element_node_vbak .

      stru_node_vbak type wd_this->element_node_vbak.

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

      break dasarikb.

      node_node_vbak = wd_context->get_child_node( name =

      wd_this->wdctx_node_vbak ).

      • get element via lead selection

      elem_node_vbak = wd_context->get_element( ).

      • get all declared attributes

      elem_node_vbak->get_attribute(

      exporting

      name = 'VBELN'

      IMPORTING

      value = stru_node_vbak ).

      DATA: ls_where(72) TYPE c,

      lt_where LIKE TABLE OF ls_where,

      lt_vbak TYPE STANDARD TABLE OF vbak.

      • create where condition

      IF NOT stru_node_vbak-vbeln EQ ''.

      CONCATENATE 'VBELN = ''' stru_node_vbak-vbeln '''' INTO ls_where.

      APPEND ls_where TO lt_where.

      ENDIF.

      IF NOT stru_node_vbak-erdat EQ '00000000'.

      CONCATENATE 'ERDAT = ''' stru_node_vbak-erdat '''' INTO ls_where.

      IF stru_node_vbak-vbeln NE ''.

      CONCATENATE 'AND' ls_where INTO ls_where SEPARATED BY space.

      ENDIF.

      APPEND ls_where TO lt_where.

      ENDIF.

      SELECT *

      FROM vbak

      INTO TABLE lt_vbak

      WHERE (lt_where).

      DATA: node_node_alv TYPE REF TO if_wd_context_node,

      stru_node_alv TYPE if_main=>element_node_alv.

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

      node_node_alv = wd_context->get_child_node( name =

      if_main=>wdctx_node_alv ).

      • get all declared attributes

      node_node_alv->bind_table( lt_vbak ).

      ENDMETHOD.

      Thanks,

      Kiran

  • avatar image
    Former Member
    Apr 01, 2008 at 05:42 AM

    Yes Martin it seems the problem lies with cardinality only. Change it either 1..N or 1..1

    Add comment
    10|10000 characters needed characters exceeded