OKC_K_SALES_CREDITS_H

Records sales credits for the sale of services in a contract. Functions in the same manner as sales credits in Order Management.

Details

  • Schema: FUSION

  • Object owner: OKC

  • Object type: TABLE

  • Tablespace: APPS_TS_TX_DATA

Primary Key

Name Columns

OKC_K_SALES_CREDITS_H_PK

ID, MAJOR_VERSION

Columns

Name Datatype Length Precision Not-null Comments
ID NUMBER 18 Yes Surrogate key used for primary unique identifiers.
DNZ_CHR_ID NUMBER 18 Yes Foreign Key: Maps to id in OKC_K_HEADERS_ALL_B table. Denormalized for performance.
SALES_CREDIT_PUID VARCHAR2 120 Sales Credit PUID
MAJOR_VERSION NUMBER 18 Yes Major Version Number of the contract.
PERCENT NUMBER Yes The pecentage of the sales credit type the sales rep is to receive.
SALESREP_ID NUMBER 18 Yes ID1 for the sales representative.
SALES_CREDIT_TYPE_ID NUMBER Yes First part of foreign key to OKX_SALES_CRED_TYPES_V.
ACTIVE_YN VARCHAR2 1 Mandatory - Y|N, Indicates whether the sales credit information is interfaced to Receivables during billing.
OBJECT_VERSION_NUMBER NUMBER 9 Yes Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried.
CREATED_BY VARCHAR2 64 Yes Who column: indicates the user who created the row.
CREATION_DATE TIMESTAMP Yes Who column: indicates the date and time of the creation of the row.
LAST_UPDATED_BY VARCHAR2 64 Yes Who column: indicates the user who last updated the row.
LAST_UPDATE_DATE TIMESTAMP Yes Who column: indicates the date and time of the last update of the row.
CHR_ID NUMBER 18 Contracts header id.
CLE_ID NUMBER 18 Contracts line id - the service being sold.
LAST_UPDATE_LOGIN VARCHAR2 32 Who column: indicates the session login associated to the user who last updated the row.
VERSION_TYPE VARCHAR2 1 Yes Version Type can have 3 values: Current, Amendment, and History. If the version type is not Current then no update is allowed on the entity.
EXTERNAL_KEY1 VARCHAR2 120 External key that uniquely identifies a record.
EXTERNAL_KEY2 VARCHAR2 120 Additional attribute to qualify external key.
START_DATE DATE The effective start date of the sales credit.
END_DATE DATE The effective end date of the sales credit.

Foreign Keys

Table Foreign Table Foreign Key Column
OKC_K_SALES_CREDITS_H okc_k_headers_all_b DNZ_CHR_ID, MAJOR_VERSION
OKC_K_SALES_CREDITS_H okc_k_headers_all_b CHR_ID, MAJOR_VERSION
OKC_K_SALES_CREDITS_H okc_k_lines_b CLE_ID, MAJOR_VERSION
OKC_K_SALES_CREDITS_H jtf_rs_salesreps SALESREP_ID

Indexes

Index Uniqueness Tablespace Columns
OKC_K_SALES_CREDITS_H_N1 Non Unique Default DNZ_CHR_ID, CLE_ID
OKC_K_SALES_CREDITS_H_U1 Unique Default ID, MAJOR_VERSION