sapdev logo background
sapdev logo sapdev logo
Comments

ABAP CALL FUNCTION GENERAL Statement syntax, information and example SAP source code



Return to Statement index



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 containing the name of a function module permitted by the package check in uppercase letters when the statement is executed. Each function module in AS ABAP has a unique name, which is why do not need to specify the function group.
The additions parameter_list
or parameter_tables are used to assign (statically or dynamically) actual parameters to the formal parameters of the function module and return codes to the non-class-based exceptions.

Latest notes: If the name of a function module is specified by a constant or as a character literal, the specified function module is checked. If the function module does not exist, the extended program check reports an error. See Dynamic Calls .



Runtime Exceptions

Catchable Exceptions
CX_SY_DYN_CALL_ILLEGAL_FUNC
Reason for error: The called function is known but not active.
Runtime error: CALL_FUNCTION_NOT_ACTIVE
Reason for error: The called function is unknown.
Runtime error: CALL_FUNCTION_NOT_FOUND
Reason for error: Die gerufene Funktion liegt in einem nicht zugelassenen
Paket.
Runtime error: CALL_FUNCTION_PACKAGE_ACCESS
CX_SY_DYN_CALL_ILLEGAL_TYPE
Reason for error: The type of the actual parameter does not meet the requirements of the function interface.
Runtime error: CALL_FUNCTION_CONFLICT_GEN_TYP
Reason for error: The actual parameter does not have the length expected by the function.
Runtime error: CALL_FUNCTION_CONFLICT_LENG
Reason for error: The actual parameter does not have the type expected by the function.
Runtime error: CALL_FUNCTION_CONFLICT_TYPE
Reason for error: Only valid functions can be called in the update.
Runtime error: CALL_FUNCTION_NO_VB
Reason for error: An actual parameter does not meet the alignment requirements of the corresponding formal parameter.
Runtime error: CALL_FUNCTION_WRONG_ALIGNMENT
CX_SY_DYN_CALL_PARAM_MISSING
Reason for error: The function expects a parameter not specified by the caller.
Runtime error: CALL_FUNCTION_PARM_MISSING
CX_SY_DYN_CALL_PARAM_NOT_FOUND
Reason for error: The caller specified a parameter not recognized by the function.
Runtime error: CALL_FUNCTION_PARM_UNKNOWN
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




CALL_FUNCTION_EXC_SHORT_FORM
CALL_FUNCTION_PARAMETER




comments powered by Disqus