ABAP Keyword Documentation → ABAP − Reference → Processing External Data → ABAP Database Access → AMDP - ABAP Managed Database Procedures
AMDP Macros
Other versions:
7.31 | 7.40 | 7.54
Syntax
... "$ABAP.macro( ... )" ...
Effect
Specifies an AMDP macro in an AMDP method, which is implemented in an SQLScript. An AMDP macro is always specified in double quotation marks and always introduced with $ABAP. The macro itself is specified with macro. The relevant parameters for the chosen macro can be specified in the parentheses. The format for $ABAP is case-sensitive. The format for macro is not case-sensitive.
The ABAP runtime environment replaces a AMDP, including the quotation marks, during the implementation on the database, in accordance with the rule for the relevant macro. The following macros are currently predefined:
- $ABAP.type for ABAP types
- $ABAP.schema for logical schemas
No other macros can be specified. In particular, no custom macros can be defined.
Notes
- The syntax for macros is currently only possible in the implementation language SQLScript.
- Macros, which are specified in comments or in single quotation marks, are not replaced.