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

# SQL-024: Insert paymentplan

Insert paymentplan in the context of `clsPaymentPlan`.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PolicyNumber` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPaymentPlan.InsertSQL. |
| `:PolicyPeriodEffectiveDate` | Input | Date | *inferred/unknown* | Bind variable in clsPaymentPlan.InsertSQL. |
| `:DefaultPlanCode` | Input | String* | *inferred/unknown* | Bind variable in clsPaymentPlan.InsertSQL. |
| `:RenewalPlanCode` | Input | String* | *inferred/unknown* | Bind variable in clsPaymentPlan.InsertSQL. |
| `:Installments` | Input | Unknown* | *inferred/unknown* | Bind variable in clsPaymentPlan.InsertSQL. |
| `:PercentDown` | Input | Unknown* | *inferred/unknown* | Bind variable in clsPaymentPlan.InsertSQL. |
| `:BillingDefaultCode` | Input | String* | *inferred/unknown* | Bind variable in clsPaymentPlan.InsertSQL. |
| `:CreateDate` | Input | Date | *inferred/unknown* | Bind variable in clsPaymentPlan.InsertSQL. |
| `:CreateUser` | Input | String* | *inferred/unknown* | Bind variable in clsPaymentPlan.InsertSQL. |
| `:UpdateDate` | Input | Date | *inferred/unknown* | Bind variable in clsPaymentPlan.InsertSQL. |
| `:UpdateUser` | Input | Date | *inferred/unknown* | Bind variable in clsPaymentPlan.InsertSQL. |
| `:PremiumHistorySetID` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPaymentPlan.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 (
  :PolicyNumber,
  :PolicyPeriodEffectiveDate,
  :DefaultPlanCode,
  :RenewalPlanCode,
  :Installments,
  :PercentDown,
  :BillingDefaultCode,
  :CreateDate,
  :CreateUser,
  :UpdateDate,
  :UpdateUser,
  :PremiumHistorySetID
)
```


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