SAP TYPES CLIENT SPECIFIED ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• CLIENT SPECIFIED TYPES (obsolete)

TYPES, CLIENT SPECIFIED
Short Reference

ABAP_SYNTAX_OBS
TYPES dtype TYPE cds_entity CLIENT SPECIFIED clnt.

What does it do?
With the addition CLIENT SPECIFIED the statement TYPES defines a structured type constructed from all components of a CDS entity cds_entity and an additional first component clnt with the type of a client column.
cds_entity expects the name of a non-abstract CDS entity, namely:
The name of a CDS view
The name of a CDS table function
The name of a CDS hierarchy
as defined in the corresponding DEFINE statement of the CDS DDL.
Any name for the client column that follows the naming conventions can be specified for clnt.



Latest notes:

A structure of a type defined using this statement can be used as a work area of a SELECT statement for CDS entities in which implicit client handling is disabled using the obsolete statement CLIENT SPECIFIED. USING is used to switch implicit client handling and not disable it, which means the addition CLIENT SPECIFIED is also obsolete for TYPES.
If the statement is used for a client-dependent CDS table function , a structured type is produced that matches the line structure of the return value of the associated AMDP function implementation. This type is not, however, required in ABAP programs, since the AMDP function implementation cannot be called like a regular function method
The name specified for clnt is completely independent of the actual name of a client column in a data source of a CDS view.
Abstract CDS entities cannot be specified.
ABAP_HINT_END



Example ABAP Coding

Defines a line type scarr_spfli_clnt for an internal table that is used as a target area when a client-dependent CDS view is accessed using the obsolete addition CLIENT SPECIFIED of the SELECT statement. If the addition CLIENT SPECIFIED of the statement TYPES is not used, the column clnt would not exist in the table scarr_spfli_clnt and could not be used as a target range.
ABEXA 00715
The following example shows how the recommended addition USING ALL CLIENTS is used, for which no special target area is required.
ABEXA 00716
ABAP_EXAMPLE_END

Return to menu