---
title: "SQL-029: Criteria"
summary: Update statement for Criteria.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.EAIP
reference_type: package
---

# SQL-029: Criteria

This statement supports `Criteria` by executing a Update operation through storedproc.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-029 |
| **Operation type** | Update |
| **Execution method** | Stored procedure |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | StoredProcedure |
| **Business object** | `Criteria` |
| **Criteria property** | `UpdateSQL` |
| **Lifecycle method** | `BeforeUpdate` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:BillingID` | Input | Number | N/A | Binds BillingID from active calling code or Oracle signature. |
| `:ExpenseID` | Input | Number | N/A | Binds ExpenseID from active calling code or Oracle signature. |
| `:BilledAmount` | Input | Number | N/A | Binds BilledAmount from active calling code or Oracle signature. |
| `:ReimbursedAmount` | Input | Number | N/A | Binds ReimbursedAmount from active calling code or Oracle signature. |
| `:ReimbursementDetailID` | Input | Number | N/A | Binds ReimbursementDetailID from active calling code or Oracle signature. |
| `:ExpenseTypeCode` | Input | String | N/A | Binds ExpenseTypeCode from active calling code or Oracle signature. |
| `:CreateUser` | Input | String | N/A | Binds CreateUser from active calling code or Oracle signature. |
| `:CreateDate` | Input | Date | N/A | Binds CreateDate from active calling code or Oracle signature. |
| `:UpdateUser` | Input | Date | N/A | Binds UpdateUser from active calling code or Oracle signature. |
| `:UpdateDate` | Input | Date | N/A | Binds UpdateDate from active calling code or Oracle signature. |
| `:UpdateNum` | Input | Date | N/A | Binds UpdateNum from active calling code or Oracle signature. |
| `:LastUpdateNum` | Input | Date | N/A | Binds LastUpdateNum from active calling code or Oracle signature. |
| `:BillingID` | Input | Number | N/A | Binds BillingID from active calling code or Oracle signature. |
| `:ExpenseID` | Input | Number | N/A | Binds ExpenseID from active calling code or Oracle signature. |
| `:LastUpdateNum` | Input | Date | N/A | Binds LastUpdateNum from active calling code or Oracle signature. |
| `:recordset` | Output | REF CURSOR | N/A | Binds recordset from active calling code or Oracle signature. |
| `:recordset` | Output | REF CURSOR | N/A | Binds recordset from active calling code or Oracle signature. |
| `:EaipExpenseID` | Input | Number | N/A | Binds EaipExpenseID from active calling code or Oracle signature. |
| `:EaipPeriodID` | Input | Number | N/A | Binds EaipPeriodID from active calling code or Oracle signature. |
| `:EffectiveDate` | Input | Date | N/A | Binds EffectiveDate from active calling code or Oracle signature. |
| `:ExpirationDate` | Input | Date | N/A | Binds ExpirationDate from active calling code or Oracle signature. |
| `:InDays` | Input | Number | N/A | Binds InDays from active calling code or Oracle signature. |
| `:GrossWagesAmount` | Input | Number | N/A | Binds GrossWagesAmount from active calling code or Oracle signature. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| `EAIP_EXPENSE_BILLING*` | Update* | BillingID, ExpenseID, BilledAmount, ReimbursedAmount, ReimbursementDetailID, ExpenseTypeCode, CreateUser, CreateDate, UpdateUser, UpdateDate, UpdateNum, LastUpdateNum, BillingID, ExpenseID, LastUpdateNum, recordset, recordset, EaipExpenseID, EaipPeriodID, EffectiveDate, ExpirationDate, InDays, GrossWagesAmount* |

## Sample SQL

```sql

Pk82500_eaip.eaip_expense_billing_update(:BillingID, :ExpenseID, :BilledAmount, :ReimbursedAmount, :ReimbursementDetailID, :ExpenseTypeCode, :CreateUser, :CreateDate, :UpdateUser, :UpdateDate, :UpdateNum, :LastUpdateNum, :BillingID, :ExpenseID, :LastUpdateNum, :recordset, :recordset, :EaipExpenseID, :EaipPeriodID, :EffectiveDate, :ExpirationDate, :InDays, :GrossWagesAmount)

-- Procedure body resides in Oracle.

```

## Operations and processes

- [Criteria update](../operations/dcbs-bill-generation.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.Claim.EAIP\Billing\clsExpenseBilling.vb`