---
title: "SQL-072: Pk82033_ThirdParty.claimCost_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-072: Pk82033_ThirdParty.claimCost_update

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-072 |
| **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 |
| --- | --- | --- | --- | --- |
| `:PayId` | Input | Number | N/A | Source value `PayID` |
| `:PrimaryKeySubNum` | Input | Number | N/A | Source value `PrimaryKeySubNum` |
| `:ClaimId` | Input | Number | N/A | Source value `ClaimID` |
| `:costCategory` | Input | String | 5 | Source value `ClaimCostCategoryCode` |
| `:LienAmt` | Input | Unknown | N/A | Source value `LienAmt` |
| `:NoLienAmt` | Input | Unknown | N/A | Source value `NonLienAmt` |
| `:UnknownAmt` | Input | Unknown | N/A | Source value `UnknownAmt` |
| `:UpdateUser` | Input | Date | 30 | Source value `MyCriteria.DataPortalInfo.UserID` |
| `:UpdateNum` | Input | Date | N/A | Source value `UpdateNum` |
| `:RowsAffected` | ReturnValue | Return value | N/A | Source value `m_RowsAffected` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [THRDPARTY_BILL_SERVICE](../database-tables.md#thrdparty_bill_service) | UPDATE | See sample SQL. |
| [THRDPARTY_CLAIM_COST](../database-tables.md#thrdparty_claim_cost) | UPDATE | See sample SQL. |

## Sample SQL

```sql
BEGIN Pk82033_ThirdParty.claimCost_update(:PayId, :PrimaryKeySubNum, :ClaimId, :costCategory, :LienAmt, :NoLienAmt, :UnknownAmt, :UpdateUser, :UpdateNum, :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\clsClaimPaymentTransDetail.vb`
