Configure Receipt Number Generation

Configure receipt numbers using bank statement references or bank account information, then verify the generated numbers.

Receipt Number Generation

Receipt number configuration is optional. You can choose either of these options:

  • Bank statement reference-based numbering: Use a source value from the bank statement, optionally extracting part of it with a regular expression.
  • Bank account-based numbering: Construct a receipt number from bank account information, the statement date, and the statement line number.

If no receipt number configuration is defined, the application uses its standard numbering mechanism.

Both options use the AR_RCPT_NUM_FROM_BANKSTMT lookup. The configuration applies globally. Keep only one enabled, currently effective numbering rule in this lookup

Bank Statement Reference-Based Numbering

To derive receipt numbers from a bank statement reference:

  1. Go to Setup and Maintenance > Manage Standard Lookups.
  2. Search for the lookup type AR_RCPT_NUM_FROM_BANKSTMT.
  3. Create or update a lookup row with the following values:
    Field Value
    Lookup Code A valid CE_STATEMENT_LINES source column. Use the guidance in Choosing the Source Column.
    Meaning A descriptive label for the rule
    Description Leave blank to use the full source value, or enter an Oracle regular expression to extract part of it.
    Enabled Selected
    Start Date / End Date Effective dates appropriate for the rule
  4. Disable or end-date any other numbering rules so that only your selected rule is enabled and currently effective.

  5. Save the changes.

Ensure that the derived receipt number is unique and no longer than 30 characters.

Important: This setup is global. Keep only one active row. If the source value is null, the standard receipt number is used. If a populated source value doesn't match the regular expression, an error occurs for the line.

Example:

  • Bank text: CUSTOMER PAYMENT RCPT: RCP260903001 INV-10001
  • The application can extract RCP260903001 and use it as the receipt number.

Choosing the Source Column

Source Recommended Use Example Source Value
CUSTOMER_REFERENCE The bank supplies a reliable, unique payment or customer reference. RCP260903001
TRANSACTION_ID The bank transaction identifier is suitable for use as the receipt number. TXN202607160001
ADDENDA_TXT The receipt number is embedded in longer remittance text. CUSTOMER PAYMENT RCPT: RCP260903001 INV-10001
Other valid column The column has been verified as consistently populated and unique. A value in your organization’s required format
Important: Use this recommended order:
  • Use CUSTOMER_REFERENCE when it is reliable and unique.
  • Alternatively, use TRANSACTION_ID when it is stable and no longer than 30 characters.
  • Use ADDENDA_TXT when extraction from longer text is required.

Scenarios with Examples

The following examples show alternative configurations. Configure only one enabled, currently effective numbering rule, using values and formats appropriate for your bank statement data.

Important: These examples illustrate how to configure the rule. The bank values and formats don't represent all bank statements. Use the values and formats applicable to your bank statement data.
Scenario Lookup Code Meaning Description Bank Value Result
Customer Reference as the Complete Receipt Number CUSTOMER_REFERENCE Customer Reference Leave blank CUSTOMER_REFERENCE = RCP260903001 RCP260903001
Extract Part of Customer Reference CUSTOMER_REFERENCE Customer Reference PAYMENT-([A-Z0-9]+)-USD CUSTOMER_REFERENCE = PAYMENT-RCP260903001-USD RCP260903001
Transaction ID as the Complete Receipt Number TRANSACTION_ID Bank Transaction ID Leave blank TRANSACTION_ID = TXN202607160001 TXN202607160001
Extract Part of Transaction ID TRANSACTION_ID Bank Transaction ID BANK/([A-Z0-9]+)/STATUS TRANSACTION_ID = BANK/TXN202607160001/STATUS/BOOKED TXN202607160001
Extract from Addenda Text ADDENDA_TXT Bank Addenda Text RCPT:\s*([A-Z0-9]+) ADDENDA_TXT = CUSTOMER PAYMENT RCPT: RCP260903001 INV-10001 RCP260903001
Use the Full Regex Match ADDENDA_TXT Bank Addenda Text RCP[0-9]+ ADDENDA_TXT = PAYMENT FOR CUSTOMER RCP260904001 RCP260904001

Null Source

If the configured source value is null, the application uses the standard receipt number. A null source value doesn’t stop receipt creation.

Example standard receipt number:
2028-02-05/1/300100660249611

Regex Does Not Match

Consider this configuration and source value:
Field Value
Lookup Code ADDENDA_TXT
Description RCPT:\s*([A-Z0-9]+)
Bank Value CUSTOMER PAYMENT INV-10001

Result:

The source value is populated but doesn’t match the regular expression. As a result:

  • No receipt is created for the line.
  • The statement line is marked as having an error.
  • A setup warning, such as AR_RCE_MISSING_SETUP, is recorded.

Invalid Source Column

If the Lookup Code specifies a column that doesn’t exist in CE_STATEMENT_LINES, receipt creation fails for the line.

For example, if the lookup code is BANK_RECEIPT_TEXT and that column doesn’t exist:

  • No receipt is created for the line.
  • The line is marked as having an error.
  • A setup warning is recorded.

Receipt Number Rules Summary

  • Configuration:
    • The lookup configuration applies globally.
    • Keep only one enabled, currently effective numbering rule.
    • For reference-based numbering, the Lookup Code identifies the bank statement source column.
    • For bank account-based numbering, use BANK_ACCOUNT_NUM.
    • Keep derived receipt numbers within 30 characters.
  • Matching Behavior:
    • Regular-expression matching is case-insensitive.
    • If multiple matches are found, only the first occurrence is used.
    • If the expression contains a capture group, the first capture group supplies the receipt number.
    • If the expression has no capture group, the full matched value supplies the receipt number.
    • For reference-based numbering, a blank Description uses the full source value.
    • For BANK_ACCOUNT_NUM, Description must be blank. The application constructs the receipt number using the bank account-based format.
  • Receipt Number Derivation:
    • Receipt number derivation runs only when a new receipt is created.
    • The process may first identify an existing receipt based on amount, receipt date, organization, currency, and customer.
    • If an existing receipt is found, that receipt is used and a new receipt number isn't derived from the configured rule.
  • Failure and Fallback Outcomes:
    • If the source value is null, the standard receipt number is used.
    • If the source value is populated but doesn't match the configured regular expression, an error occurs.

Bank Account-Based Numbering

Use BANK_ACCOUNT_NUM to construct receipt numbers in this format:
<Last 6 normalized bank-account characters>-<Statement date YYYYMMDD>-<Statement line number>

Configure the Receipt Numbering Lookup

  1. In Setup and Maintenance, open Manage Standard Lookups.
  2. Search for the lookup type AR_RCPT_NUM_FROM_BANKSTMT.
  3. Review the existing lookup codes.
  4. Add BANK_ACCOUNT_NUM, or edit it if it already exists.
  5. Configure the row as follows:
    Field Value
    Lookup Code BANK_ACCOUNT_NUM
    Meaning A descriptive label, for example: Receipt Number from Bank Account
    Description Leave completely blank
    Enabled Selected
    Start Date Your intended activation date; use today or an earlier date for immediate activation
    End Date Leave blank unless the rule should expire
Important: Don't enter the actual bank account number, explanatory text, or a regular expression in Description. This numbering rule requires a blank Description.

If the lookup type isn't available, ask your implementation administrator to confirm the required enhancement and lookup provisioning before proceeding.

Ensure Only One Numbering Rule Is Active

When selecting BANK_ACCOUNT_NUM, within AR_RCPT_NUM_FROM_BANKSTMT:

  1. Disable or end-date any alternative receipt-numbering code, such as CUSTOMER_REFERENCE.
  2. Ensure that BANK_ACCOUNT_NUM is the only enabled, currently effective rule.
  3. Save your changes.

The lookup is shared across bank accounts; don’t create a separate numbering row for each account. Enable receipt creation for each applicable bank account.

Test and Verify

  1. Process a new bank statement containing an eligible receipt line, using your normal bank-statement import process.
  2. Ensure that the line meets the receipt creation start date and inclusion and exclusion requirements.
  3. Monitor the import and receipt-creation processes.
  4. Open the resulting receipt and verify its number.
    Example:
    Input Value
    Bank account number 5486173210
    Statement date 5 October 2026
    Statement line number 1
    Expected receipt number 173210-20261005-1

Formatting characters, such as spaces and hyphens, are removed before the bank account portion is derived. The date portion uses the statement date, not the processing date.

With the duplicate-handling enhancement, a number that’s already in use may receive a suffix such as -1 or -2. A matching existing receipt may instead be reused.