Skip to Content
avatar image
Former Member

Getting Dump while executing IF_WD_CONTEXT_ELEMENT~GET_STATIC_ATTRIB

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 24, 2008 at 03:18 PM

    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

    Add comment
    10|10000 characters needed characters exceeded