ABAP - Keyword Documentation →  ABAP - Reference →  Processing External Data →  ABAP Database Accesses →  ABAP and SAP HANA →  Access to Objects in SAP HANA XS →  Access to SAP HANA XSC Objects →  Database Procedure Proxies for SQLScript Procedures in XSC → 

Database Procedure Proxy

For each standalone SQL Script procedure in the SAP HANA database, database procedure proxies can be created as repository objects in ABAP Dictionary. This makes it possible to address the database procedure in the statement CALL DATABASE PROCEDURE. A database procedure proxy can be created as follows:

The database procedure proxy defines the mapping between the database types of the parameter interface of the SQLScript procedure and ABAP data types. The following table lists the currently supported HANA-specific data types and indicates which ABAP Dictionary types they are mapped to by default.

HANA Type Meaning Type in ABAP Dictionary
SMALLINT 2-byte integer INT2
INTEGER 4-byte integer INT4
BIGINT 8-byte integer INT8
DECIMAL Packed number DEC
SMALLDECIMAL Packed number DEC
FLOAT Binary floating point number FLTP
NVARCHAR Unicode character string CHAR
VARBINARY Byte string RAW
BLOB Byte string RAWSTRING
NCLOB Unicode character string STRING

The default mapping can be overwritten, but this also modifies the parameter names. A database procedure interface is generated for each database procedure proxy. Appropriate ABAP types are declared in this interface.

Notes

Executable Example

The example Database Procedure Call uses a database procedure proxy created in the program to call a database procedure from the SAP HANA database created using ADBC.