SAP CALL FUNCTION GENERAL ABAP Statements



Get Example source ABAP code based on a different SAP table
  



CALL FUNCTION func
Short Reference

ABAP_SYNTAX
CALL FUNCTION func ${ parameter_list
$| parameter_tables $}.

What does it do?
This statement calls the function module specified in func. The name func must be a character-like data object that contains the name of a function module allowed by the package check in uppercase letters when the statement is executed. Since each function module in AS ABAP has a unique name, the function pool does not need to be specified. The following can be specified for func:
Literal or constant If the data object func is specified as a character literal or as a constant, it is evaluated as a statically specified object by tools such as
BEGIN_SECTION VERSION 5 OUT the extended program check or
END_SECTION VERSION 5 OUT the where-used list.
Variable
BEGIN_SECTION ID CALL-FUNCTION-DYNAMIC If the data object func is specified as a variable, it is specified only dynamically, and the content is not evaluated statically.
END_SECTION ID CALL-FUNCTION-DYNAMIC
When the statement is executed, func is not evaluated until runtime in both cases. In particular, the types of the parameters are not known until runtime. In both cases, incorrectly specified function modules or parameters produce runtime errors and not syntax errors
The additions parameter_list or parameter_tables are used to statically or dynamically assign actual parameters to the formal parameters of the function module and return values to the non-class-based exceptions.