---
title: "SQL-077: Pk82033_ThirdParty.thrdparty_distribution_update"
summary: Update operation used by `Criteria`.
status: draft
owner: SAIF
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.ThirdParty
reference_type: package
---

# SQL-077: Pk82033_ThirdParty.thrdparty_distribution_update

This SQL artifact supports ``Criteria`` by executing a update operation through StoredProc.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-077 |
| **Operation type** | Update |
| **Execution method** | StoredProc |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | StoredProcedure |
| **Business object** | ``Criteria`` |
| **Criteria property** | ``updatesql`` |
| **Lifecycle method** | ``Criteria update`` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:AraAmount` | Input | Number | N/A | Source value `AraAmount` |
| `:CheckAmount` | Input | Number | N/A | Source value `CheckAmount` |
| `:CheckDate` | Input | Date | N/A | Source value `CheckDate` |
| `:CheckNum` | Input | Number | 25 | Source value `CheckNum` |
| `:ClaimCostAmount` | Input | Number | N/A | Source value `ClaimCostAmount` |
| `:CorrectedDate` | Input | Date | N/A | Source value `m_CorrectedDate` |
| `:CorrectedNum` | Input | Number | N/A | Source value `CorrectedNum` |
| `:EmployerCreditAmount` | Input | Number | N/A | Source value `EmployerCreditAmount` |
| `:OtherAmount1` | Input | Number | N/A | Source value `OtherAmount1` |
| `:OtherAmount2` | Input | Number | N/A | Source value `OtherAmount2` |
| `:OtherDescr1` | Input | Unknown | 100 | Source value `OtherDescr1` |
| `:OtherDescr2` | Input | Unknown | 100 | Source value `OtherDescr2` |
| `:PayeeName` | Input | String | 100 | Source value `PayeeName` |
| `:RefundAmount` | Input | Number | N/A | Source value `RefundAmount` |
| `:DistributionCode` | Input | String | 5 | Source value `DistributionCode.ToString` |
| `:DistributionSeqNum` | Input | Number | N/A | Source value `DistributionSeqNum` |
| `:UpdateSeqNum` | InputOutput | Date | N/A | Source value `UpdateSeqNum` |
| `:UpdateUser` | Input | Date | 30 | Source value `UpdateUser` |
| `:RefundAmount1` | Input | Number | N/A | Source value `refund1.RefundAmount` |
| `:RefundName1` | Input | String | 100 | Source value `refund1.RefundName` |
| `:UpdateSeqNum1` | InputOutput | Date | N/A | Source value `refund1.UpdateSeqNum` |
| `:RefundAmount2` | Input | Number | N/A | Source value `refund2.RefundAmount` |
| `:RefundName2` | Input | String | 100 | Source value `refund2.RefundName` |
| `:UpdateSeqNum2` | InputOutput | Date | N/A | Source value `refund2.UpdateSeqNum` |
| `:RowsAffected` | ReturnValue | Return value | N/A | Source value `RowsAffected` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [dual](../database-tables.md#dual) | UPDATE | See sample SQL. |
| [thrdparty_distribution](../database-tables.md#thrdparty_distribution) | UPDATE | See sample SQL. |

## Sample SQL

```sql
BEGIN Pk82033_ThirdParty.thrdparty_distribution_update(:AraAmount, :CheckAmount, :CheckDate, :CheckNum, :ClaimCostAmount, :CorrectedDate, :CorrectedNum, :EmployerCreditAmount, :OtherAmount1, :OtherAmount2, :OtherDescr1, :OtherDescr2, :PayeeName, :RefundAmount, :DistributionCode, :DistributionSeqNum, :UpdateSeqNum, :UpdateUser, :RefundAmount1, :RefundName1, :UpdateSeqNum1, :RefundAmount2, :RefundName2, :UpdateSeqNum2, :RowsAffected); END;
-- Stored procedure body retrieved from Oracle package WCIS_DBA.Pk82033_ThirdParty.
```

> **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.ThirdParty\clsThirdpartyDistribution.vb`
