---
title: "SQL-061: clsPaymentEventCode retrieve by code"
summary: Retrieves a payment event code record from PAYMENT_EVENT_CODE.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Payment.EFT
reference_type: package
---

# SQL-061: clsPaymentEventCode retrieve by code

Retrieves a payment event code record from PAYMENT_EVENT_CODE.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-061 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle* |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsPaymentEventCode` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve / AfterRetrieve` |


## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| \:CODE\ | Input | String | 5 | Binds \MyCriteria.Code\* |

## Tables

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

## Sample SQL

```sql
Select PAYMENT_EVENT_CODE.BANK_TRANSMITTAL_FLAG as BankTransmittalFlag,
  PAYMENT_EVENT_CODE.CODE as Code,
  PAYMENT_EVENT_CODE.CODE_DESCR as Description,
  PAYMENT_EVENT_CODE.CODE_SHORT_DESCR as ShortDescription
From PAYMENT_EVENT_CODE
Where PAYMENT_EVENT_CODE.CODE = :Code
```

## Operations and processes
- [Code table lookups](../operations/code-table-lookups.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.

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