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

# SQL-030: Pk82033_ThirdParty.thrdparty_settlement_insert

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-030 |
| **Operation type** | Create |
| **Execution method** | StoredProc |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | StoredProcedure |
| **Business object** | ``Criteria`` |
| **Criteria property** | ``insertsql`` |
| **Lifecycle method** | ``Criteria create`` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:ThrdpartyCaseSeqNum` | Input | Number | N/A | Source value `CaseSeqNum` |
| `:ThrdpartySettlementSeqNum` | Input | Number | N/A | Source value `SettlementSeqNum` |
| `:ThrdpartySettlementCode` | Input | String | 5 | Source value `SettlementCode` |
| `:SettlementAmount` | Input | Number | N/A | Source value `SettlementAmount` |
| `:SettlementDate` | Input | Date | N/A | Source value `SettlementDate` |
| `:CreateUser` | Input | String | 30 | Source value `CreateUser` |
| `:RowsAffected` | ReturnValue | Return value | N/A | Source value `RowsAffected` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [thrdparty_settlement_detail](../database-tables.md#thrdparty_settlement_detail) | CREATE | See sample SQL. |
| [thrdparty_distribution](../database-tables.md#thrdparty_distribution) | CREATE | See sample SQL. |
| [DUAL](../database-tables.md#dual) | CREATE | See sample SQL. |
| [thrdparty_settlement](../database-tables.md#thrdparty_settlement) | CREATE | See sample SQL. |
| [v_settlementDtlSeqNum](../database-tables.md#v_settlementdtlseqnum) | CREATE | See sample SQL. |
| [v_distributionSeqNum](../database-tables.md#v_distributionseqnum) | CREATE | See sample SQL. |

## Sample SQL

```sql
BEGIN Pk82033_ThirdParty.thrdparty_settlement_insert(:ThrdpartyCaseSeqNum, :ThrdpartySettlementSeqNum, :ThrdpartySettlementCode, :SettlementAmount, :SettlementDate, :CreateUser, :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\clsThrdpartySettlement.vb`
