SAP GENERAL EXPRESSION POSITIONS



Get Example source ABAP code based on a different SAP table
  



General Expression Positions
General expression positions are read positions where appropriate data objects, constructor expressions, table expressions, calculation expressions, built-in functions, or functional method calls and method chainings can be specified. The following general expression positions are available:
Right side of an assignment with the assignment operator =
Operands of arithmetic expressions and bit expressions
Embedded expressions in string templates
Operands of comparison expressions in logical expressions
Operand of the statement CASE
Actual parameters for input parameters of methods in meth( ... ), RAISE EVENT, CREATE OBJECT, and RAISE EXCEPTION or THROW in a conditional expression
Actual parameters for input parameters of function modules in the case of CALL FUNCTION
Arguments of built-in numeric functions if these are specified in an arithmetic expression
Reference variable oref of the statement RAISE EXCEPTION oref.
The operands after the addition WITH TABLE KEY of the statements READ TABLE itab and DELETE TABLE itab
The operands after the addition WITH KEY of the statement READ TABLE itab
Work area wa of the following statements:
APPEND wa TO ...
INSERT wa INTO ...
MODIFY ... FROM wa ...
Expression exp for dynamic sorting at:
SORT itab BY exp
Source fields of the statements WRITE and WRITE TO, with the restriction that arithmetic expressions and bit expressions cannot be specified directly but can only be specified as content of embedded expressions in string templates
The type restrictions determined by the operand type apply in the operand positions. For example, no numeric functions can be specified in a bit expression.



Latest notes:

By specifying functional methods as actual parameters of methods, it is possible to nest method calls in an operand position.
The three types of calculation expression can be listed as operands of relational expressions, but they cannot be combined in one calculation expression.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
Specification of a constructor expressions with the value operator VALUE on the right side of an assignment and of a constructor expression with the reduction operator REDUCE as an input parameter for the method DISPLAY of the class CL_DEMO_OUTPUT.
ABEXA 01044
ABAP_EXAMPLE_END