cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid operand type for the MOVE-CORRESPONDING statement

former_member474221
Participant
0 Kudos

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 ).

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi hema s,

I have similar problem. Would mind sharing the solution that you use to solve this problem?

Thanks,


Punleu

Former Member
0 Kudos

Hi Experts,

Can you please share me the document to resolve the issue , because I am occurring the same issue.

Its urgent , please help me out and share me the doc to smb1983@gmail.com

Advance thanks for your support.

Regards,

Mahaboob Basha

former_member474221
Participant
0 Kudos

solved myself

Former Member
0 Kudos

Hi,

The itab you have declared must be 'TYPE TABLE OF'.


        data : itab TYPE TBALE OF wd_this->Elements_flighttab.