Skip to Content
Aug 15, 2018 at 06:53 PM

Type Mismatch When Selecting From a CDS View in an AMDP

754 Views Last edit Aug 15, 2018 at 06:53 PM 2 rev


I have a main CDS view that selects all the fields I may need at some point. I also have another (subsequent) CDS view selecting just some fields from the main view.

Main view:

Subsequent View:

Now I'm trying to create an AMDP based on the second view. The problem is that I get a "return type mismatch" error as the compiler seems to get the returning structure from the main, not from the subsequent view.

All comments are welcome.
Thanks, Marcos.