ABAP - Keyword Documentation →  ABAP - Reference →  Program Flow Logic →  Expressions and Functions for Conditions →  log_exp - Logical Expressions →  rel_exp - Predicates → 

rel_exp - Predicative Method Call


... meth( ... ) ...


A predicative method call is a relational expression whose only operand is a functional method call meth( ... ). The result of the relational expression is true if the result of the functional method call is not initial and false if the result of the functional method call is initial. The result of the functional method call (the return value of the called function method) can have any data type. A check is made on the type-friendly initial value.

A predicative method call, like any relational expression, can be a full logical expression or part of a logical expression. This means it can be specified as a condition in control statements and other statements, as an argument in Boolean functions or conditional expressions, or in joins with Boolean operators.


... meth( ... ) IS NOT INITIAL ...


Exits the program if no SAP GUI is available. The called method check from the class CL_DEMO_SAP_GUI is a predicate method.

IF NOT cl_demo_sap_gui=>check( ).


See Predicative Method Calls.

Predicative Method Calls