Ansicht
Dokumentation
ABENAMDP_METHODS - AMDP METHODS
General Material Data ABAP Short ReferenceThis documentation is copyright by SAP AG.
- Methods
There are two types of AMDP methods, methods without a return value that define AMDP procedures and methods with a return value that define AMDP functions.
In AMDP classes, AMDP methods are flagged as follows:
- In AMDP procedure implementations and AMDP function implementations that do not implement any CDS table functions, flagging is not necessary in the declaration with METHODS or CLASS-METHODS. However, an optional addition AMDP OPTIONS can be used to declare attributes of the AMDP method.
- AMDP function implementations that must implement CDS table functions, declared as static methods using CLASS-METHODS, and linked with their CDS table function using the addition FOR TABLE FUNCTION.
- When implemented, all AMDP methods must be flagged using the statement METHOD.
- AMDP procedure implementations with the addition BY DATABASE PROCEDURE
- AMDP function implementations with the addition BY DATABASE FUNCTION
The implementation of an AMDP method is stored in the ABAP database schema by the ABAP runtime framework. In an AMDP method, it is possible to access objects in the same database schema directly. The name of the current database schema must not be specified here. If the correct authorization is granted, it is possible to access objects in a different database schema by specifying its name.
Note
Constructors cannot be implemented as AMDP methods.
TXBHW - Original Tax Base Amount in Local Currency TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 2981 Date: 20240328 Time: 120601 sap01-206 ( 46 ms )