AMDP Macros
AMDP Macros can be used in AMDP method and the usual syntax is: “$ABAP.macro(…….)” and can be implemented in the SQLScript. It must be enclosed within double quotes and introduced with $ABAP, where the macro itself is specified with macro.
The macros are:
-
$ABAP.type for abap type- This is used to access ABAP types in AMDP methods implemented with SQLScript. Syntax- “$ABAP.type( abap type )” . Ex- “$ABAP.type( sy-mandt )” , “$ABAP.type( string )” , “$ABAP.type( data element )”
-
$ABAP.schema for logical schema-This is used to access objects in a different database schema in AMDP methods implemented with SQLScript. Syntax- “$ABAP.schema( schema name)”