Example Boolean Statements 

COBL-BLART = 'SA'

In this statement, the statement is TRUE if the document type is SA.

COBL-BLART = 'SA' OR COBL-BLART = 'SB' AND COBL-HKONT <> '5000000'

In this statement, the combined statements are TRUE if the document type is SA or SB, and the account of the document item is not account 5000000.

COBL-BLART IN DOCMNT-TYPE OR COBL-WAERS IN CURRENCY

This statement contains two sets: DOCMNT-TYPE and CURRENCY. The set DOCMNT-TYPE contains the values SA and SB; the set CURRENCY contains the currency codes DEM, SFR, LIT, BRF, and HFL. Both sets use dimensions from table COBL.

The combined statement is true if the document type is SA or SB, or the document's currency code is DEM, SFR, LIT, BRF, or HFL.

COBL-BLART IN DOCMNT-TYPE --> COBL-HKONT IN ACCOUNTS

This statement contains two sets: DOCMNT-TYPE and ACCOUNTS. The set DOCMNT-TYPE contains the values SA and SB and uses dimension Document Type in table COBL; the set ACCOUNTS contains the accounts 5000000, 5000010, and 5000020 and uses dimension Account in table COBL.

If the document type is SA or SB, then the account must be 5000000, 5000010 or 5000020 for the combined statement to be TRUE. The document types SA and SB can only post to these accounts.

GLT0-BUKRS :1-2: = '00'

This statement instructs the system to check part of the company code. The first two digits of the company code dimension must be 00 for the statement to be TRUE.

IN ACCTS-CNTRS

The following graphic illustrates the multi-dimension set ACCTS-CNTRS.

 

 

In the above example, the multi-dimension set ACCTS-CNTRS contains the basic sets CASH-ACCTS (dimension Account) and ADMIN-CNTRS (dimension Cost Center). If a transaction contains account 5000010 and cost center 200, the statement would be TRUE. If a transaction has the values account 5000010 and cost center 300, the statement would be FALSE.