Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Method for Casting with Where condition in CDS view

1,295

The following error was displayed when creating CDS view on Eclipse.

"Field AUSP-ATINN(type conflict in selection condition)"

My guess is that this error is caused by the item specified in the Where condition being defined in Numc.

But you can't do a Cast inside a Where condition. Is there a better way?

I specified the Where condition with the following syntax.

where ausp.atinn = 'asdfgh'

thank you

1 REPLY 1

SeshaP
Participant
0 Kudos
985

Hi,

Remove the ' ' single quotes and check - ausp.atinn = asdfgh

Single quote will be used for data types with Char.

Or

create a new column using cast statement as cast (AUSP-ATINN as char10) as Atinn

and use this column in composite view where condition

Thank you