SAP AMDP CALL ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_AMDP - Calling an SQLScript Procedure from AMDP
This example demonstrates how a database procedure is called from an AMDP procedure.

ABAP_SOURCE_CODE
DEMO CL_DEMO_AMDP_CALL_DB_PRCDR

ABAP_DESCRIPTION
The SQLScript procedure of the AMDP method INCREASE_PRICE in the AMDP class CL_DEMO_AMDP_CALL calls a database procedure that is not managed by AMDP of the current database schema in the namespace /1BCAMDP/:
METH CL_DEMO_AMDP_CALL=>INCREASE_PRICE
The called database procedure is created dynamically in the static constructor of the AMDP class CL_DEMO_AMDP_CALL using ADBC. It is in the same database schema, but due to the namespace /1BCAMDP/ it cannot and must not be used after the addition USING of the METHOD statement. Compare this executable example when calling a further AMDP procedure.