Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Processing External Data →  ABAP Database Access →  AMDP - ABAP Managed Database Procedures →  AMDP Macros 

AMDP - Macro for ABAP Types

Other versions: 7.31 | 7.40 | 7.54

Syntax


... "$ABAP.type( [name =] abap_type )" ...

Effect

Specifies the predefined AMDP macro $ABAP.type for an ABAP type.

In an AMDP method implemented in SQLScript, the AMDP macro $ABAP.type can be used to access the ABAP type abap_type. For abap_type, all elementary non- generic types can be specified that are possible after a TYPE addition in an ABAP implementation of the method. These are as follows:

  • All visible elementary types, which are defined with TYPES at this place, and which are of their own class, a different class or an interface.
  • All elementary types defined in ABAP Dictionary such as data elements or elementary components of structured types.

The ABAP runtime environment replaces this expression in accordance with the rules specified in the mapping tables in the corresponding HANA type. abap_type is not case-sensitive.

Examples

The following table shows how some built-in or self-defined ABAP types can be specified in macro $ABAP.type and implemented in HANA types.

Macro Conversion
"$ABAP.type( int8 )" BIGINT
"$ABAP.type( string )" NCLOB
"$ABAP.type( cl_abap_docu=>name )" NVARCHAR (70)
"$ABAP.type( sy-mandt )" NVARCHAR (3)
"$ABAP.type( s_carrname )" NVARCHAR (20)

Executable Example

Access to ABAP Types