SAP NEWS-46-OBJECTS-DYNAMIC



Get Example source ABAP code based on a different SAP table
  



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