ABAP Keyword Documentation → ABAP - Dictionary → ABAP CDS in ABAP Dictionary → ABAP CDS - Data Definitions → ABAP CDS - Views → ABAP CDS - Client Handling in CDS Views
ABAP CDS - Obsolete Client Handling in Views
Before the annotation @ClientHandling was introduced, the client dependency of a CDS view was specified using the annotation ClientDependent with the possible values true and false.
Other versions:
7.31 | 7.40 | 7.54
Determining Client Dependency
The possible values true and false of the obsolete annotation @ClientDependent have the following effects on client dependency:
- true
- A view with client-specific data sources is a client-specific view.
- A view with exclusively cross-client data sources is a cross-client view.
- false
Only the annotation @ClientHandling.type should now be used in new CDS views. The annotations @ClientHandling and @ClientDependent cannot be used together in the definition of a CDS table function. If neither of the annotations @ClientHandling.type and @ClientDependent is specified, the default value of @ClientHandling.type applies.
Determining Client Handling
The possible values true and false of the obsolete annotation @ClientDependent have the following effects on client handling:
- true
- false
Properties of Cross-Client Views
Client-specific views with the annotation @ClientDependent:true have the same properties as client-specific views with the annotation @ClientHandling.type.#INHERITED or @ClientHandling.type.#CLIENT_DEPENDENT. @ClientDependent:false can be used, on the other hand, to define cross-client views, even if they contain client-specific data sources. These have the following properties:
SELECT
. This is then handled in accordance with classic
implicit client handling.
Note
It is not usually a good idea to switch off client dependency in views with client-specific data sources. If this is still sometimes the case, only the CDS entity must be accessed, and never the CDS database view, to avoid unexpected behavior.