Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Predefined Types, Data Objects, Functions, and Constructors →  Predefined Functions 

Predefined Functions - Syntax

In the second case, there is usually a main argument val and additional, possibly also optional, arguments. The following sections show the general syntax for calling predefined functions.

Other versions: 7.31 | 7.40 | 7.54

Functions with an Unnamed Argument

Syntax


... func( arg ) ...

The syntax for functions with an unnamed argument is the same as the syntax for calling functional methods with an input parameter. func is the predefined function and the argument arg is an operand whose data type matches the function. The blank spaces after the opening and before the closing parentheses are relevant.

Functions with Named Arguments

Syntax


... func( val = arg p1 = arg1 p2 = arg2 ... ) ...

Functions with one or more named arguments are bound to keyword parameters in the same way as calling functional methods with multiple input parameters. Operands can be specified for the arguments, the data type of which matches the corresponding parameter. The blank spaces after the opening and before the closing parentheses are relevant. If one of these functions only has one argument or only the main argument is to be populated, the syntax can be simplified as follows:

... func( arg ) ...