Get Example source ABAP code based on a different SAP table
ABAP_CDS - Client Handling in CDS View Entities For a CDS view entity>, client handling is done implicitly and automatically by filtering the client session variable> $session.client>>. You cannot manipulate this. Client handling annotations are not available. ITOC
Determining Client Dependency The client dependency> of a view is determined by the data sources> used:
If one of the data sources used in the view is client-dependent, the view is client-dependent>.
If none of the data sources used in the view is client-dependent, the view is client-independent>.
Determining Client Handling If a CDS view entity is client-dependent, the client handling is performed by filtering the client session variable> $session.client>>. The session variable algorithm expands the joins> of the view entity implicitly as shown in the following table. This applies to joins specified explicitly using JOIN>, as well as to instances of joins created when using SQL path expressions>. Left Side>Right Side>INNER JOIN> LEFT OUTER JOIN>RIGHT OUTER JOIN>CROSS JOIN> Client-dependentClient-dependentCompares the client columns in the ON> conditionCompares the client columns in the ON> conditionCompares the client columns in the ON> condition Transforms the cross join to an inner join using an ON> condition for the client columns Client-independentClient-dependent->Compares the client column with the value of the session variable > $session.client>> in the ON > condition->-> Client-dependentClient-independent->->Compares the client column with the value of the session variable> $session.client>> in the ON > condition-> Client-independentClient-independent->->-> -> In addition, when client-dependent database tables are accessed, WHERE> clauses> with comparisons of the client columns with the session variable> $session.client>> are added to the view implicitly. If only client-dependent CDS entities> are accessed, however, no clauses are added. It is not possible to access the data of different clients in a single read. The addition USING>> of the statement SELECT>> for switching implicit client handling> is not allowed for CDS view entities. BEGIN_SECTION VERSION 5 OUT The obsolete addition CLIENT SPECIFIED>> is not allowed either. END_SECTION VERSION 5 OUT