SAP CALL DB PROCEDURE ABEXA



Get Example source ABAP code based on a different SAP table
  



SAP HANA, Database Procedure Proxy
This example demonstrates how a database procedure created in a class is called.

ABAP_SOURCE_CODE
DEMO CL_DEMO_CALL_DB_PROCEDURE

ABAP_DESCRIPTION
ADBC is used in the method create_db_procedure to create the same database procedure as in the executable example ADBC, Stored Procedure. Here, however, the procedure is called using the statement CALL DATABASE PROCEDURE and not using ADBC.
The database procedure proxy required for this is created temporarily in the class itself using the associated API.
The API is created using the factory method GET_PROXY_PUBLIC_API from the factory class CL_DBPROC_PROXY_FACTORY.
The proxy is created using the method CREATE_PROXY of the interface IF_DBPROC_PROXY_PUBLIC_API .
Here, the internal table params filled previously is used to define the mapping between the parameter interface and ABAP data types. The parameter names are also modified.
The executable example AMDP, simple procedure call shows how the procedure can be managed and called as an ABAP Managed Database Procedure.