Skip to Content
0
Jan 20, 2012 at 04:21 PM

Invalid operand type for the MOVE-CORRESPONDING statement

421 Views

Hi experts,

I get the error "Invalid operand type for the MOVE-CORRESPONDING statement "

when bind_table method is executed

DATA lo_nd_flightinfo TYPE REF TO if_wd_context_node.

DATA lo_el_flightinfo TYPE REF TO if_wd_context_element.

DATA ls_flightinfo TYPE wd_this->Element_flightinfo.

DATA lo_nd_flighttab TYPE REF TO if_wd_context_node.

data : itab TYPE wd_this->Elements_flighttab.

.

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

lo_nd_flightinfo = wd_context->get_child_node( name = wd_this->wdctx_flightinfo ).

lo_el_flightinfo = lo_nd_flightinfo->get_element( ).

  • @TODO handle not set lead selection

IF lo_el_flightinfo IS INITIAL.

ENDIF.

  • get all declared attributes

lo_el_flightinfo->get_static_attributes(

IMPORTING

static_attributes = ls_flightinfo ).

select * from sflight into corresponding fields of table itab where carrid = ls_flightinfo-carrid and connid = ls_flightinfo-connid.

lo_nd_flighttab = wd_context->get_child_node( name = wd_this->wdctx_flighttab ).

lo_nd_flighttab->bind_table(

new_items = itab ).