SAP PREDICATIVE METHOD CALL ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_RELEXP - Predicative Method Calls
This example demonstrates predicative method calls.

ABAP_SOURCE_CODE
DEMO CL_DEMO_PRDCTV_METHOD_CALL

ABAP_DESCRIPTION
The functional method IS_PRODUCTION_SYSTEM of the class CL_ABAP_DEMO_SERVICES is called predicatively in a control statement IF to ensure that the current system is not a production system. The method called is a predicate method.
The functional method GET_SPFLI of the class CL_DEMO_SPFLI is then called predicatively once in a control statement IF and once in a conditional expression COND. In this case, it is not a predicate method. The relational expressions are true or false, depending on whether the internal table returned is empty or filled.