SAP BUILT IN FUNCTIONS - Syntax

Get Example source ABAP code based on a different SAP table
  


ARTICLE

Predefined Functions - Syntax
ITOC
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.

Functions with an Unnamed Argument


ABAP 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.
INTHINT Undocumented feature: The spaces after the opening and before
INTHINT the closing bracket can be omitted
INTHINT if the argument is a text literal within quotes.

Functions with Named Arguments


ABAP 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 ) ...
INTHINT Undocumented feature: The space before the closing
INTHINT bracket can be omitted if the last argument is a text literal
INTHINT within quotes.