ABAP Keyword Documentation → ABAP − Reference → Declarations → Typing → Checking Typing
Return Values of Functional Methods
The return value of a functional method is always fully typed and is always passed as a value. An actual parameter can be appended to the return value as follows:
- By specifying the method in an operand position
p
, this uses the decimal places of the return value but not its length. In this case the formal parameter is given a length of 16.
- In a method call with the addition
RECEIVING
RECEIVING
, this parameter does not have to comply with the
general typing rules for typing the formal parameter. Instead, it is enough if the formal parameter can be converted to the actual parameter in accordance with the
conversion rules.
If an exception is raised when the return value is assigned to a formal parameter or when it is used as an operand, the exception cannot always be handled and a runtime error can occur instead (depending on the operand positions).
Other versions: 7.31 | 7.40 | 7.54