Skip to Content
0

CDS View Error Association Cannot Be Used Locally

Dec 25, 2017 at 06:50 AM

690

avatar image
Former Member

Hello Friends

While using CDS view

I am getting error

Association cannot be used locally within the view

Please find attached image of my CDS view and help me resolve the error.

Any ides how to resolve the error.

Regards,
Sunil

cds-error.jpg (319.1 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sean Zhang
Dec 27, 2017 at 10:04 AM
0

Hi Sunil,

Association can't be used where it's defined, it's not the association purpose.

you have two options:

1, you have a higher level CDS for the current one, then you could use the association freely.

or 2, you switch the association to leftouter join.

Best Regards,

Sean

Show 1 Share
10 |10000 characters needed characters left characters exceeded

???

0
Aashrith H. Govindraj Dec 28, 2017 at 12:39 PM
0

Hello Sunil,

Looks like the issue is because of the usage of $projection.For details, please see Horst Keller's comment from April 19,2017 in response to the comment by Ceyhun Alp here

Best,

Aashrith.

Share
10 |10000 characters needed characters left characters exceeded