Hi Experts,
is there a possibility to use a subquery in a join clause of 2 tables in an ABAP CDS View similar to:
select * from table1 inner join table2 on table1.field1 in ( select mapping_field2 from mapping_table where mapping_field1 = table2.field2 );
"field1" of "table1" should not directly match "field2" of "table2" but should be connected via a mapping table (with potentially multiple hits for "field2" in "table2").
The Keyword "IN" used for subqueries in most SQL Languages does apparently not exists in the ABAP CDS Syntax.
Any help appreciated.
Regards
Tobias