Ansicht
Dokumentation
ABENAMDP_ABEXA - AMDP ABEXA
Fill RESBD Structure from EBP Component Structure Vendor Master (General Section)This documentation is copyright by SAP AG.
- Implementation of an SQLScript Procedure
This example demonstrates how an SQLScript procedure is implemented using AMDP.
Source Code
Description
A simple SQLScript procedure is implemented in three AMDP methods, showing the different options for self-defined client handling, in the AMDP class CL_DEMO_AMDP:
- INCREASE_PRICE
- In this implementation, the input parameter clnt is used to access the data of the passed client, as recommended.
- INCREASE_PRICE_CLIENT
- In this implementation, the ABAP-specific session variable CLIENT is used to access the data of the current client.
- INCREASE_PRICE_CDS_CLIENT
- In this implementation, the ABAP-specific session variable CDS_CLIENT is used to access the data of the current client. The addition AMDP OPTIONS CDS SESSION CLIENT CURRENT is used for this purpose in the declaration of the method.
The database table SPFLI defined in the ABAP Dictionary must be specified after USING. On an SAP HANA database, this program works in the same way as the executable examples for ADBC and for CALL DATABASE PROCEDURE. AMDP replaces these technologies when calling database procedures for an SAP HANA database that is the standard database of an AS ABAP.
It is generally preferable to pass the client ID to an input parameter instead of using the ABAP-specific session variable CLIENT or CDS_CLIENT.
Note
This is a syntax example. The same function can be achieved with the same efficiency in . AMDP is not needed in simple cases like this.
BAL Application Log Documentation SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 2873 Date: 20240426 Time: 090031 sap01-206 ( 47 ms )