sapdev logo background
sapdev logo sapdev logo
Comments

SAP LOGEXP EQUIV documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

log_exp - EQUIV

Syntax
ABAP_KEY ... log_exp1 EQUIV log_exp2 ...

Effect
Joining two logical expressions log_exp with EQUIV produces a new logical expression which is true if both expressions are true or both expressions are false. If one of the expressions is true and the other one is false, the join is false.
Within a bracketing level , only two logical expressions can be joined using EQUIV .

Notes
  • The operator EQUIV has a weaker join effect than NOT ,

  • AND , and OR .
  • The operator EQUIV implements an equivalence join. Negating a join like this using NOT corresponds to an

  • XOR join ( eXclusive OR ). It is true if one of the expressions is true and the other one is false.

    Example
    The condition in the IF statement is true if o1 , o2
    and o3 , o4 are pair-wise either both equal or both unequal.
    DATA: o1 TYPE i,
    o2 TYPE i,
    o3 TYPE i,
    o4 TYPE i.

    ...

    IF o1 = o2 EQUIV o3 = o4.
    ...
    ENDIF.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    LOGEXP_COMPARE_ALL
    LOGEXP_INITIAL




    comments powered by Disqus