Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Not mutually convertible structure and itab

Hi All,

I have defined a structure struct with table ekpo and itab with include structure ekpo.

Itab :

DATA: BEGIN OF ITAB OCCURS 10.

INCLUDE STRUCTURE EKPO.

END OF ITAB.

and Struct

DATA: BEGIN OF STRUCT.

INCLUDE STRUCTURE EKPO.

END OF STRUCT.

Before "Move itab to struct" used to work fine. But now I have enabled the unicodes check, and it gives me error of mutually not convertible structures.

Can someone guide me of a work around ?

thanks,

Tags:
replied

Hi

Just as somebody says MOVE-CORRESPONDING should wrok fine:

DATA: BEGIN OF SEKPO.
        INCLUDE STRUCTURE EKPO.
DATA:   FIRST_VARPOS,
      END OF SEKPO.

*Definition of ITAB:

DATA: BEGIN OF XEKPO OCCURS 10.
        INCLUDE STRUCTURE EKPO.
DATA:   BSMNG LIKE EKES-MENGE,
      END OF XEKPO.

start-of-selection.

  move-corresponding xekpo to sekpo.

Max

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question