Get Example source ABAP code based on a different SAP table
ABAP Objects - Dynamic Method Calls in Release 4.6A
In ABAP_99A , the kernel functions of ABAP Objects are enhanced by dynamic method calls (or dynamic invoke).
Dynamic method call
In addition to the old static access, methods can now also be addressed dynamically using the usual ABAP parenthesis semantics. Calls an instance method meth: CALL METHOD ref->(f) Calls a static method meth: CALL METHOD class=>(f) CALL METHOD (c)=>meth CALL METHOD (c)=>(f) Calls a standalone method meth: CALL METHOD (f) CALL METHOD ME->(f)
f and c are fields containing the name of the methodmeth or class class.
In contrast to subroutines and function modules, the actual parameters can also be passed dynamically in dynamic method calls.