Hi André,
the answer can be found here:
I just copied my answer below:
Please have a look at the ABAP Keyword Documentation (F1 help in the ABAP System). You will find for "CALL DATABASE PROCEDURE" a paragraph:
Example
The example Database Procedure Call uses a
database procedure proxy created in the program to call a database procedure
created using ADBC.
Navigating to "Database Procedure Call" you will find the example for creating a proxy programatically, i.e.
DATA(api) = cl_dbproc_proxy_factory=>get_proxy_public_api( if_proxy_name = prox_name ).
api->create_proxy( EXPORTING if_proc_schema = '_SYS_BIC'
it_param_override = params
if_proc_name = proc_name ).
Hope this example suits your needs.
Cheers,
Jasmin