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

# SQL-025: Insert paymentplan collection

Insert paymentplan collection in the context of `clsPaymentPlanCollection`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-025 |
| **Operation type** | Insert |
| **Execution method** | NonQuery |
| **Database** | Oracle |
| **Command type** | Text |
| **Schema** | [unqualified] |
| **Business object** | `clsPaymentPlanCollection` |
| **Criteria property** | `InsertSQL` |
| **Lifecycle method** | BeforeInsert / AfterInsert |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PolicyNum` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPaymentPlanCollection.InsertSQL. |
| `:PolicyPeriodEffDate` | Input | Date | *inferred/unknown* | Bind variable in clsPaymentPlanCollection.InsertSQL. |
| `:DefaultPlanCode` | Input | String* | *inferred/unknown* | Bind variable in clsPaymentPlanCollection.InsertSQL. |
| `:RenewalPlanCode` | Input | String* | *inferred/unknown* | Bind variable in clsPaymentPlanCollection.InsertSQL. |
| `:Installments` | Input | Unknown* | *inferred/unknown* | Bind variable in clsPaymentPlanCollection.InsertSQL. |
| `:PercentDown` | Input | Unknown* | *inferred/unknown* | Bind variable in clsPaymentPlanCollection.InsertSQL. |
| `:BillingDefaultCode` | Input | String* | *inferred/unknown* | Bind variable in clsPaymentPlanCollection.InsertSQL. |
| `:CreateDate` | Input | Date | *inferred/unknown* | Bind variable in clsPaymentPlanCollection.InsertSQL. |
| `:CreateUser` | Input | String* | *inferred/unknown* | Bind variable in clsPaymentPlanCollection.InsertSQL. |
| `:UpdateDate` | Input | Date | *inferred/unknown* | Bind variable in clsPaymentPlanCollection.InsertSQL. |
| `:UpdateUser` | Input | Date | *inferred/unknown* | Bind variable in clsPaymentPlanCollection.InsertSQL. |
| `:PremHistSetID` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPaymentPlanCollection.InsertSQL. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [BILLING_MASTER](../database-tables.md#billing_master) | INSERT | See sample SQL |

## Sample SQL

```sql
Insert into BILLING_MASTER (
  POLICY_NUM,
  POLICY_PERIOD_EFF_DATE,
  DEFAULT_PLAN_CODE,
  RENEWAL_PLAN_CODE,
  INSTALLMENTS,
  PERCENT_DOWN,
  BILLING_DEFAULT_CODE,
  CREATE_DATE,
  CREATE_USER,
  UPDATE_DATE,
  UPDATE_USER,
  PREM_HIST_SET_ID
)
VALUES (
  :PolicyNum,
  :PolicyPeriodEffDate,
  :DefaultPlanCode,
  :RenewalPlanCode,
  :Installments,
  :PercentDown,
  :BillingDefaultCode,
  :CreateDate,
  :CreateUser,
  :UpdateDate,
  :UpdateUser,
  :PremHistSetID
)
```


> **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/clsPaymentPlanCollection.vb`
