Get Example source ABAP code based on a different SAP table
ARTICLE
SAP HANA, Database Procedure Call This example demonstrates how a database procedure created in the program is called.
ABAP_SOURCE_CODE ABAP_EXEC
ABAP_DESCRIPTION ADBC is used in the method create_db_procedure to create the same database procedure as in the example ADBC, Stored Procedure. Here, however, the procedure is called using the statement CALL DATABASE PROCEDURE and not using ADBC. The database procedure proxy need to do this is created temporarily in the program 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.