---
title: "SQL-015: clsPaymentAddenda insert"
summary: Inserts a NACHA ACH addenda record into PAYMENT_ADDENDA.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Payment.EFT
reference_type: package
---

# SQL-015: clsPaymentAddenda insert

Inserts a NACHA ACH addenda record into PAYMENT_ADDENDA.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-015 |
| **Operation type** | Create |
| **Execution method** | Inline SQL |
| **Database** | Oracle* |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsPaymentAddenda` |
| **Criteria property** | `InsertSQL` |
| **Lifecycle method** | `BeforeInsert / AfterInsert` |


## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| :AddendaText | Input | String | 255 | Binds `AddendaText`* |
| :AddendaTypeCode | Input | String | 5 | Binds `AddendaTypeCode`* |
| :CreateDate | Input | Date | — | Binds `CreateDate`* |
| :CreateUser | Input | String | 30 | Binds `CreateUser`* |
| :PaymentDetailSeqNum | Input | Decimal | — | Binds `MyCriteria.PaymentDetailSeqNum`* |
| :PaymentAddendaSeqNum | Input | Decimal | — | Binds `PaymentAddendaSeqNum` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [PAYMENT_ADDENDA](../database-tables.md#payment_addenda) | — | — |

## Sample SQL

```sql
Insert into PAYMENT_ADDENDA ( ADDENDA_TEXT, ADDENDA_TYPE_CODE, CREATE_DATE, CREATE_USER, PAYMENT_ADDENDA_SEQ_NUM, PAYMENT_DETAIL_SEQ_NUM )
Values ( :AddendaText, :AddendaTypeCode, :CreateDate, :CreateUser, :PaymentAddendaSeqNum, :PaymentDetailSeqNum )
```

## Operations and processes
- [Payment addenda](../operations/payment-addenda.md)*

> **Note:** Statements marked with `*` were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Business rules
- [BR-EFT-05: Insert/update operations require exactly one affected row](../business-rules.md#br-eft-05-insertupdate-operations-require-exactly-one-affected-row)*

## Sources
- `Business\SAIF.Business.Payment.EFT\clsPaymentAddenda.vb`
