Get Example source ABAP code based on a different SAP table
ABAP_AMDP - Method with Specified Service Connection The example demonstrates an AMDP method with the input parameter connection>.
ABAP_SOURCE_CODE DEMO CL_DEMO_AMDP_SERVICE_CNNCTN
ABAP_DESCRIPTION A simple SQLScript procedure> is implemented in the AMDP method GET_SCARR> of the AMDP class CL_DEMO_AMDP_CONNECTION>>: METH CL_DEMO_AMDP_CONNECTION=>GET_SCARR The method also has an optional input parameter with the predefined name connection>, which can be used to specify whether the standard connection> or a service connection> is used. If an allowed name such as DEFAULT> or R/3*my_conn> is passed, the method is executed using either the standard connection or a service connection. Invalid names raise an exception and the exception text is displayed.