cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Dump while executing IF_WD_CONTEXT_ELEMENT~GET_STATIC_ATTRIB

Former Member
0 Kudos

Hi Frnds,

I am getting the below dump in this piece of code.

Invalid operand type for the MOVE-CORRESPONDING statement.

Can any body help me to resolve it.

method IF_WD_CONTEXT_ELEMENT~GET_STATIC_ATTRIBUTES .

field-symbols:

<values> type data.

assign me->static_attributes->* to <values>.

Dump-----> move-corresponding <values> to static_attributes.

endmethod.

Thanks

ROhit

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

My guess is that the variable that you supplied for the static_attributes exporting parameter doesn't match the actual structure of the content node. Therefore you are getting an incompatible move corresponding. When you declare this variable, make sure it is declared with reference directly to the element object - that way you won't get out of sync. Pay close attention to how I declared LS_SALES_ORDER in this fragment:

DATA lo_nd_sales_order TYPE REF TO if_wd_context_node.
  DATA lo_el_sales_order TYPE REF TO if_wd_context_element.
  DATA ls_sales_order TYPE wd_this->element_sales_order.
  lo_nd_sales_order = wd_context->get_child_node( name = wd_this->wdctx_sales_order ).
  lo_el_sales_order = lo_nd_sales_order->get_element( ).
  lo_el_sales_order->get_static_attributes(
    IMPORTING
      static_attributes = ls_sales_order ).

Edited by: Thomas Jung on Oct 24, 2008 11:18 AM