Ansicht
Dokumentation

ABENCDS_FUNC_CLIENT_INDEP_ABEXA - CDS FUNC CLIENT INDEP ABEXA

ABENCDS_FUNC_CLIENT_INDEP_ABEXA - CDS FUNC CLIENT INDEP ABEXA

ABAP Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Client-Independent CDS Table Functions

This example demonstrates client-independent CDS table functions.

Source Code

Execute

Description

This example program accesses two client-independent CDS table functions.

  • The CDS table function DEMO_CDS_GET_SCARR_SPFLI_NOCL does not have any elements of the type CLNT.
  • The CDS table function DEMO_CDS_GET_SCARR_SPFLI_CLNT has one element client of the type CLNT.

Both CDS table functions have an input parameter clnt of the type CLNT without the annotation @Environment.systemField. The client ID of the current client is passed explicitly to this parameter by the statement SELECT. The implementations in the AMDP method GET_SCARR_SPFLI_FOR_CDS of the associated AMDP classes CL_DEMO_AMDP_FUNCTIONS_NOCL or CL_DEMO_AMDP_FUNCTIONS_CLNT use this input parameter in their WHERE conditions to read the data of the current client only. Both result sets have the same number of rows and are distinguished only by the extra client column of the function DEMO_CDS_GET_SCARR_SPFLI_CLNT.

Note

In both table functions, the input field for the client ID could also be annotated with the predefined value #CLIENT using the annotation @Environment.systemField to stop the client ID from being passed explicitly by SELECT statements.






Addresses (Business Address Services)   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 2491 Date: 20240420 Time: 032207     sap01-206 ( 43 ms )