Ansicht
Dokumentation

ABAPTYPES_CLIENT_SPECIFIED - TYPES CLIENT SPECIFIED

ABAPTYPES_CLIENT_SPECIFIED - TYPES CLIENT SPECIFIED

TXBHW - Original Tax Base Amount in Local Currency   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

TYPES, CLIENT SPECIFIED

Short Reference



TYPES dtype TYPE cds_entity CLIENT SPECIFIED clnt.

Effect

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:

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.

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.

Example

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.

The following example shows how the recommended addition USING ALL CLIENTS is used, for which no special target area is required.






BAL_S_LOG - Application Log: Log header data   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 4178 Date: 20240418 Time: 075737     sap01-206 ( 59 ms )