Get Example source ABAP code based on a different SAP table
ABAP_AMDP - SQLScript with Tabular CHANGING> Parameter This example demonstrates how an SQLScript procedure is implemented using AMDP with a tabular CHANGING> parameter.
ABAP_SOURCE_CODE DEMO CL_DEMO_AMDP_CHANGING_PARA
ABAP_DESCRIPTION The following SQLScript procedure > is implemented in the AMDP method GET_CARRIERS> of the AMDP class CL_DEMO_AMDP_CHANGING>>: METH CL_DEMO_AMDP_CHANGING=>GET_CARRIERS The tabular CHANGING> parameter carriers> can be used in the procedure in read positions and write positions. Internally, the database procedure uses an identically named output parameter to which the initial value of the CHANGING> parameter is assigned at the beginning of the execution of the procedure using the invisible IN> parameter carriers__in__> (see SQLScript for the SAP HANA Database>). A further method CALL_GET_CARRIERS> demonstrates how the SQLScript procedure implemented in GET_CARRIERS> is called from a different SQLScript procedure. METH CL_DEMO_AMDP_CHANGING=>CALL_GET_CARRIERS In this case, the implicit IN> parameter carriers__in__> must be filled explicitly with the actual parameter to be modified.
Latest notes: This is a syntax example. The same function can be achieved with the same efficiency in AB_SQL . AMDP is not needed in simple cases like this. NON_V5_HINTS ABAP_HINT_END