Ansicht
Dokumentation

ABENBUILT_IN_FUNCTIONS_SYNTAX - BUILT IN FUNCTIONS SYNTAX

ABENBUILT_IN_FUNCTIONS_SYNTAX - BUILT IN FUNCTIONS SYNTAX

ABAP Short Reference   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Built-In Functions, Syntax

In functions with named arguments, there is usually a main argument val and the option of specifying further arguments, some of which are optional. The following sections show the general syntax for calling built-in functions.

Functions with an Unnamed Argument

... func( arg ) ...

In functions with an unnamed argument, the syntax is the same as the syntax for calling functional methods with an input parameter. func is the built-in function and the argument arg is an operand whose data type matches the function. The blanks after the opening parentheses and before the closing parentheses are relevant.

The built-in function line_exists has an unnamed argument that expects a table expression.

Functions with Named Arguments

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

Functions with one or more named arguments are bound to keyword parameters in the same way as when functional methods are called with multiple input parameters. Operands can be specified for the arguments whose data type matches the corresponding parameter. The blanks after the opening parentheses and before the closing parentheses are relevant. If such a function has only one argument, or if only the main argument is to be supplied, the syntax can be simplified as follows:

... func( arg ) ...

The built-in function condense has named arguments and can, for example, be called as follows.






ROGBILLS - Synchronize billing plans   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 1964 Date: 20240419 Time: 070642     sap01-206 ( 39 ms )