SAP EXTENDED FUNCTIONAL POSITIONS



Get Example source ABAP code based on a different SAP table
  



Extended Functional Operand Positions
Extended functional operand positions are functional operand positions in which certain built-in functions can be specified alongside data objects, functional method calls, constructor expressions, and table expressions, if a single data object is specified as their argument. The following extended functional operand positions exist:
Operand operand of the predicate expression ... operand IS $[NOT$] INITIAL
Operands operand of the statement WHEN operand ... No table expressions can be specified for operand, however.
Source field source of the obsolete statement MOVE source TO ... No constructor expressions or table expressions, however, can be specified for source.
The following built-in functions can be specified for IS $[NOT$] INITIAL, WHEN, and MOVE:
General numeric functions
Floating point functions
Length functions for strings
Length functions for byte strings
Row function for internal tables
However, these functions can only be specified at extended functional operand positions if the argument is not an expression, a functional method, or a built-in function.



Latest notes:

Extended functional operand positions exist for historical reasons and have been replaced by operand positions for functions and expressions. In all appropriate places, operand positions in which functional methods or built-in functions could previously also be specified have been replaced by a suitable operand position. In the remaining statements, IS $[NOT$] INITIAL, WHEN, and MOVE, this did not take place for the following reasons:
The operand position of the predicate expression IS $[NOT$] INITIAL is suitable as a functional operand position, but not as a general expression position. In particular, calculation expressions are not valid here.
WHEN is used to distinguish cases using CASE . Generally, no operations should be performed after WHEN and constant values should be specified instead. The operand position after CASE, on the other hand, was changed to a general expression position.
MOVE is obsolete and has been replaced by the assignment operator =. The right side of a statement with assignment operator is a general expression position.
The extended functional operand position should not be used in the case of WHEN. The more general assignment operator = should be used instead of MOVE.
ABAP_HINT_END

ABAP_EXAMPLE_BAD
Specifies the built-in function lines as the source of the obsolete statement MOVE.
ABEXA 01025
ABAP_EXAMPLE_END

ABAP_EXAMPLE_GOOD
Use of the general assignment operator = , which enables inline declarations on the left side.
ABEXA 01026
ABAP_EXAMPLE_END