Dynamic Rule Configuration

Define inclusion and exclusion rules using supported bank statement fields, operators, and conditions.

Understanding Rule Grouping

Each dynamic rule belongs to a group. The group name determines how multiple conditions are evaluated.
  • Within a group: AND. Every condition must match for the group to match.
  • Between groups: OR. A match to any group is sufficient.

This logic applies independently to inclusion rules and exclusion rules. If a bank statement line matches both, the exclusion rule takes precedence.

In this topic, qualifies means that a bank statement line can proceed to receipt processing. The line must still satisfy other prerequisites and validations, including credit flow, unreconciled status, enabled bank account, receipt method, and remittance bank account requirements. A rule match alone doesn’t guarantee receipt creation.c

Configure Dynamic Inclusion and Exclusion Rules

To configure dynamic rules:

  1. Go to Setup and Maintenance > Manage Standard Lookups.
  2. Create or open the applicable lookup type:
    • Inclusion Rules: AR_STMT_RCT_INC_RULE
    • Exclusion Rules: AR_STMT_RCT_EXC_RULE
  3. In the Lookup Codes section, add one row for each rule condition.
  4. Enter a unique Lookup Code and a descriptive Meaning.
  5. In Description, enter the rule using this format:
    GROUP_NAME|FIELD_NAME|OPERATOR|VALUE
  6. Assign group names based on the required logic:
    • Use the same group name for conditions that must all match.
    • Use different group names for alternative groups, where matching any group is sufficient.
  7. Select Enabled for each lookup row to include in processing.
  8. Enter effective dates as required.
  9. Save the changes.
  10. Test matching and nonmatching bank statement lines before using the rules in production.

Only enabled lookup rows within their active effective dates are considered during processing.

Supported Fields and Operators

Common supported fields include:
Field Purpose
BANK_ACCOUNT_NUM Bank account number
BANK_ACCOUNT_NAME Bank account name
TRX_CODE Bank transaction code
TRX_TYPE Bank transaction type
FLOW_INDICATOR Credit or debit flow
AMOUNT Statement-line amount
ADDENDA_TXT Bank addenda text
COUNTERPARTY_NAME Originating party

Supported operators include:

Operator Meaning
= Equals
!= Does not equal
> Greater than
>= Greater than or equal to
< Less than
<= Less than or equal to
~ Case-insensitive regular-expression match
IS NULL Field is empty
IS NOT NULL Field is populated

Use numeric comparisons primarily for numeric fields. For TRX_CODE, only = and != are supported. Don’t provide a value when using IS NULL or IS NOT NULL.

Scenario 1: Include One Bank Account

Use an inclusion rule to consider lines from a specific bank account.

Under AR_STMT_RCT_INC_RULE, create a lookup row with these values:

Field Value
Lookup Code INC_BOFA_ACCOUNT
Meaning Include BofA account
Description BOFA_RULE|BANK_ACCOUNT_NUM|=|5486173210

Business behavior: A line matches this rule when its bank account number is 5486173210.

For example:

Bank Account Result
5486173210 Matches this inclusion rule
9876543210 Doesn’t match this inclusion rule

Scenario 2: Include Payment Text

Use the ~ operator to match text using a case-insensitive regular expression.

Under AR_STMT_RCT_INC_RULE, create a lookup row with these values:

Field Value
Lookup Code INC_PAYMENT_TEXT
Meaning Include payment text
Description PAYMENT_RULE|ADDENDA_TXT|~|payment

Business behavior: A line matches this rule when its addenda text contains payment, regardless of case.

For example:

Addenda Text Result
CUSTOMER PAYMENT INV-10001 Matches
Customer Payment INV-10001 Matches
BANK CHARGE Doesn’t match

Scenario 3: Same Group Means AND

Use the same group name when a line must satisfy multiple conditions.

Assume that only bank statement lines that meet both of the following requirements should qualify:

  • The bank account is 5486173210.
  • The amount is 100 or more.
  1. Configure the Bank Account Condition

    Under AR_STMT_RCT_INC_RULE, create this row:

    Field Value
    Lookup Code INC_BOFA_01
    Meaning BofA account
    Description BOFA_HIGH_VALUE|BANK_ACCOUNT_NUM|=|5486173210
    Enabled Yes
  2. Configure the Bank Account Condition

    Under the same lookup type, create a second row:

    Field Value
    Lookup Code INC_BOFA_02
    Meaning Minimum amount
    Description BOFA_HIGH_VALUE|AMOUNT|>=|100
    Enabled Yes
  3. Understand the Grouping
    Both conditions belong to BOFA_HIGH_VALUE, so they’re evaluated using AND:
    BANK_ACCOUNT_NUM = 5486173210 AND AMOUNT >= 100
    A line must satisfy both conditions to match this inclusion group.

Matching and Nonmatching Examples

Bank Account Amount Account Condition Amount Condition Qualifies? Explanation
5486173210 150 Matches Matches Yes Both conditions in BOFA_HIGH_VALUE match.
5486173210 100 Matches Matches Yes The account matches and 100 satisfies >= 100.
5486173210 75 Matches Doesn't match No The account matches, but the amount is below 100.
9876543210 150 Doesn't match Matches No The amount is sufficient, but the bank account is different.
9876543210 75 Doesn't match Doesn't match No Neither condition matches.

Key point: Conditions within the same group are evaluated using AND. Every condition in the group must match for that group to qualify the line.

Scenario 4: Different Groups Mean OR

Use different group names when a bank statement line can qualify by satisfying any one of several alternatives.

In this example, a line must meet either requirement:
  • It belongs to bank account 5486173210, or
  • Its addenda text contains priority.
  1. Configure the Bank Account Rule

    Under AR_STMT_RCT_INC_RULE, create this row:

    Field Value
    Lookup Code INC_ACCOUNT
    Meaning Include BofA account
    Description ACCOUNT_RULE|BANK_ACCOUNT_NUM|=|5486173210
    Enabled Yes

    This creates an inclusion group named ACCOUNT_RULE.

  2. Configure the Priority Rule

    Under the same lookup type, create another row:

    Field Value
    Lookup Code INC_PRIORITY
    Meaning Include priority payments
    Description PRIORITY_RULE|ADDENDA_TXT|~|priority
    Enabled Yes

    This creates a separate inclusion group named PRIORITY_RULE.

  3. Understand the Grouping

    The conditions belong to separate groups, ACCOUNT_RULE and PRIORITY_RULE, so they’re evaluated using OR:

    Different groups are evaluated using OR.

    The business rule is therefore:
    BANK_ACCOUNT_NUM = 5486173210 OR ADDENDA_TXT matches priority

Business behavior: A bank statement line qualifies if it belongs to account 5486173210 or its addenda text contains priority. The line doesn't need to satisfy both conditions.

Matching and Nonmatching Examples

Bank Account Addenda Text Account Group Priority Group Qualifies? Explanation
5486173210 CUSTOMER PAYMENT Matches Doesn't match Yes ACCOUNT_RULE matches. One matching group is sufficient.
9876543210 PRIORITY CUSTOMER PAYMENT Doesn't match Matches Yes PRIORITY_RULE matches. The bank account doesn't need to match.
5486173210 Priority customer payment Matches Matches Yes Both groups match, although only one is required.
9876543210 CUSTOMER PAYMENT Doesn't match Doesn't match No Neither inclusion group matches.

Because ~ performs a case-insensitive regular-expression match, values such as priority, PRIORITY, and Priority can match the configured expression.

Key point: Different groups are evaluated using OR. A match to any group is sufficient to qualify the line.

How AND and OR Work Together

A configuration can contain multiple groups, each with one or more conditions.

For example:
GROUP_A|BANK_ACCOUNT_NUM|=|5486173210
GROUP_A|AMOUNT|>=|100
GROUP_B|ADDENDA_TXT|~|priority

The two conditions in GROUP_A use AND. The alternative group, GROUP_B, uses OR with GROUP_A.

The complete business rule is:
BANK_ACCOUNT_NUM = 5486173210 AND AMOUNT >= 100)
OR
(ADDENDA_TXT matches priority)

For example:

Bank Account Amount Addenda Text Result
5486173210 150 CUSTOMER PAYMENT Qualifies, GROUP_A matches.
5486173210 50 PRIORITY PAYMENT Qualifies, GROUP_A doesn't match, but GROUP_B does.
9876543210 150 PRIORITY PAYMENT Qualifies, GROUP_B matches.
9876543210 150 CUSTOMER PAYMENT Doesn't qualify, neither group matches.

The same grouping logic applies independently to exclusion rules.

Scenario 5: Exclude Selected Transactions

Exclusion rules use the same dynamic rule format and grouping logic as inclusion rules.

To prevent Stripe settlements from creating receipts, create this row under AR_STMT_RCT_EXC_RULE:
Field Value
Lookup Code EXC_STRIPE
Meaning Exclude Stripe
Description STRIPE_RULE|ADDENDA_TXT|~|stripe

A line whose addenda text contains STRIPE SETTLEMENT matches this rule and is excluded from receipt creation.

Scenario 6: Exclusion Takes Precedence

Inclusion and exclusion rules are evaluated independently. After evaluation, an exclusion match takes precedence over an inclusion match.

For example, configure this inclusion rule under AR_STMT_RCT_INC_RULE:

ACCOUNT_RULE|BANK_ACCOUNT_NUM|=|5486173210

Configure this exclusion rule under AR_STMT_RCT_EXC_RULE:

STRIPE_RULE|ADDENDA_TXT|~|stripe

Consider a bank statement line with these values:

Attribute Value
Bank Account 5486173210
Addenda Text STRIPE SETTLEMENT 12345

The line matches the bank account inclusion rule and the Stripe exclusion rule.

Result: The line is excluded from receipt creation because exclusion takes precedence over inclusion.

Default Behavior

The following defaults apply when no valid rules are available:
Configuration Default Behavior
No valid inclusion rules All otherwise eligible bank statement lines are included.
No valid exclusion rules No bank statement lines are excluded by the exclusion lookup setup.

Validate rules carefully because invalid configurations can cause these defaults to apply.

Invalid Dynamic Rules

A dynamic rule can be invalid because it contains an unsupported field or operator, a missing required value, or an invalid regular expression.
Invalid Rule Reason
RULE1|BAD_COLUMN|=|ABC Unsupported field
RULE2|ADDENDA_TXT|LIKE|payment Unsupported operator
RULE3|AMOUNT|>=| Missing required value
RULE4|ADDENDA_TXT|~|[ Invalid regular expression

Important: If a rule within a group is invalid, the entire group is invalid and is skipped.

This can broaden processing unexpectedly:

  • If all inclusion groups are invalid, processing defaults to including all otherwise eligible lines.
  • If all exclusion groups are invalid, no lines are excluded by the lookup setup.

Test both matching and nonmatching lines before using new or modified rules in production.

Rule Evaluation Summary

Configuration Evaluation and Business Behavior
Conditions within the same inclusion group AND, every condition in the group must match.
Different inclusion groups OR, a match to any group is sufficient.
Conditions within the same exclusion group AND, every condition in the group must match for that exclusion group to apply.
Different exclusion groups OR, a match to any exclusion group is sufficient to exclude the line.
Line matches inclusion but doesn't match exclusion Line qualifies to proceed to receipt processing.*
Line matches both inclusion and exclusion Excluded. Exclusion takes precedence.
Line doesn't match any valid configured inclusion group Doesn't qualify through the inclusion rules.
No valid inclusion rules exist All otherwise eligible lines are included.
No valid exclusion rules exist No lines are excluded by the lookup setup.

Qualifies means that the bank statement line is allowed to proceed to receipt processing. It must still satisfy the remaining receipt-processing prerequisites and validations. A rule match by itself doesn't guarantee that a receipt will be created.

Inclusion and Exclusion Rule Format Used Through 26C

Preserve legacy rules only when they're already in use. Legacy inclusion and exclusion lookup rows remain supported for backward compatibility, but new setup should use dynamic rules.

Legacy values must retain all four positions in this order:
<<TRX_TYPE>><<TRX_CODE>><<COUNTERPARTY_NAME>><<ADDENDA_TEXT>>

The positions represent:

  • Cash Management (CE) Transaction Type
  • CE Transaction Code
  • Counterparty Name, applicable for the CAMT053 Turnkey format
  • Addenda Text, which contains additional remittance or bank statement line details

For example, to include lines with transaction code 142, use:

<<>><<142>><<>><<>>

To exclude lines whose addenda text matches /ACHEXT, use:

<<>><<>><<>><</ACHEXT>>

Within a legacy row, populated fields are evaluated using AND. Blank fields are ignored. Different legacy rows are evaluated using OR.

For example:

<<ACH>><<142>><<ACME>><<PAYMENT>>

represents:

TRX_TYPE = ACH
AND TRX_CODE = 142
AND COUNTERPARTY_NAME matches ACME
AND ADDENDA_TXT matches PAYMENT

Legacy and dynamic inclusion groups are combined using OR. A matching legacy or dynamic exclusion rule prevents the line from creating a receipt.

Only enabled lookup rows within their active effective dates are considered during processing. For new implementations, use dynamic rules to define explicit field conditions and grouping.