﻿---
title: "SQL-098: Update salesplan collection"
summary: Update salesplan collection
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Premium
reference_type: package
---

# SQL-098: Update salesplan collection

Update salesplan collection in the context of `clsSalesPlanCollection`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-098 |
| **Operation type** | Update |
| **Execution method** | NonQuery |
| **Database** | Oracle |
| **Command type** | Text |
| **Schema** | [unqualified] |
| **Business object** | `clsSalesPlanCollection` |
| **Criteria property** | `UpdateSQL` |
| **Lifecycle method** | BeforeUpdate / AfterUpdate |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | String* | *inferred/unknown* | Bind variable in clsSalesPlanCollection.UpdateSQL. |
| `:CodeDescr` | Input | String* | *inferred/unknown* | Bind variable in clsSalesPlanCollection.UpdateSQL. |
| `:TpaFlag` | Input | String (Y/N)* | *inferred/unknown* | Bind variable in clsSalesPlanCollection.UpdateSQL. |
| `:RetroFlag` | Input | String (Y/N)* | *inferred/unknown* | Bind variable in clsSalesPlanCollection.UpdateSQL. |
| `:DwcBlockNum` | Input | Numeric* | *inferred/unknown* | Bind variable in clsSalesPlanCollection.UpdateSQL. |

## Tables

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

## Sample SQL

```sql
Update PLAN_CODE
SET
  CODE = :Code,
  CODE_DESCR = :CodeDescr,
  TPA_FLAG = :TpaFlag,
  RETRO_FLAG = :RetroFlag,
  DWC_BLOCK_NUM = :DwcBlockNum Where
```


> **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.Policy.Premium/Billing/clsSalesPlanCollection.vb`
