0Kudos
Hi Gurus,
I have started working with the CDS associations recently and noticed some of the limitations it has when compared to joins. One of the limitations seems to be that we can use the fields from the first data source only in all of the ON conditions if we want to use the fields from further tables in the same CDS view.
As per the above example, we cannot use _LFA1 in the path expressions in the same CDS view, as we have used $projection.lifnr in the ON condition, and this belongs to association _BSEG which is not the first data source. It would have worked perfectly fine if we had used JOINs instead of associations here. Could some one try to explain why we have this restriction on the associations?
Also If I remove the path expression and only expose the _LFA1, then the error is removed, but I get below warnings.
Can some one please explain their significance? Thanks for your help!
Warm Regards,
Raveesh
- SAP Managed Tags:
- ABAP Development
View products (1)
Preview file
72 KB
Preview file
87 KB