CJM_PROGRAM_LINES

CJM_PROGRAM_LINES_ALL contains channel program line level information. For example, Item Context details, Discount details like Type and Value.

Details

  • Schema: FUSION

  • Object owner: CJM

  • Object type: TABLE

  • Tablespace: FUSION_TS_TX_DATA

Primary Key

Name Columns

CJM_PROGRAM_LINES_ALL_PK

PROGRAM_LINE_ID

Columns

Name Datatype Length Precision Not-null Comments
PROGRAM_LINE_ID NUMBER Yes Unique identifier for Program lines.
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.
LAST_UPDATE_LOGIN VARCHAR2 32 Who column: indicates the session login associated to the user who last updated the row.
REQUEST_ID NUMBER 18 Enterprise Service Scheduler: indicates the request ID of the job that created or last updated the row.
JOB_DEFINITION_NAME VARCHAR2 100 Enterprise Service Scheduler: indicates the name of the job that created or last updated the row.
JOB_DEFINITION_PACKAGE VARCHAR2 900 Enterprise Service Scheduler: indicates the package name of the job that created or last updated the row.
PROGRAM_HEADER_ID NUMBER 18 Yes Unique Identifier for a Channel Program. This is the Foreign key from CJM_PROGRAMS_ALL_B.PROGRAM_HEADER_ID. Unique identifer for a Special Price Agreement.
PROGRAM_TIER_HEADER_ID NUMBER 18 Foreign Key from cjm_program_tier_headers table, Channel Rebate Program Simple Tier will not have any row in cjm_program_tier_all_b and will store the Discount and Item information in Lines_All table. This will contain multiple rows for Different Items in one discount table in case of Volume program and PROGRAM_TIER_ID will be a Foreign Key in that case.
START_DATE DATE Date Effective Entity: indicates the date at the beginning of the date range within which the row is effective.
END_DATE DATE Date Effective Entity: indicates the date at the end of the date range within which the row is effective.
MAX_QUANTITY NUMBER Maximum allowed quantity in a channel program line.
ITEM_LEVEL_CODE VARCHAR2 30 This Column will store the values like ALL_ITEMS, ITEM_CATEGORY or ITEM, for custom product qualifier we might need the seed data. Value will be populated in this column using the look up code ORA_CJM_ITEM_TYPE.
ITEM_ID VARCHAR2 240 Product attribute value like inventory_item_id, Null in case of ALL_ITEMS.
UOM_CODE VARCHAR2 30 Unit of Measure code like 'Ea'.
DISCOUNT_TYPE_CODE VARCHAR2 30 Discount type for program lines. Values are from the lookup code ORA_CJM_LINE_DISCOUNT_TYPE.
DISCOUNT_AMOUNT NUMBER Discount Amount for the program line.
ADJUSTMENT_BASIS_ID NUMBER 18 QP Adjustment Bases for ListPrice, Inv Price, Ceiling Price, Base List price etc, this can be used to implement the Bucket Functionality.
ACCRUAL_FLAG VARCHAR2 1 Indicates if it is an accrual line or off invoice. Yes indicates accrual lines.
INCOMPATIBILITY_GRP_CODE VARCHAR2 30 Incompatibility group Code will decide the application of Channel Program on the Same Order , like Exclusive. This is to Support for the Advance options of Channel Program.
PRODUCT_PRECEDENCE NUMBER Needed for Advance options support. This field will decide the application of Channel program on Sales order.
APPLY_DISCOUNT_FLAG VARCHAR2 1 Indicates if discount is applicable to this product.
LINE_DYNAMIC_MATRIX_ID NUMBER 18 This column is mapped to the DYNAMIC_MATRIX_ID of QP_MATRICES table. Channel program Lines like Item or UoM will be mapped to the Line Matrix Type and this dynamic_matrix_id will further be mapped to the QP_MATRIX_INHERITED_DIMENSIONS and QP_MATRIX_RULES.
LINE_MATRIX_RULE_ID NUMBER 18 This column is mapped to the DYNAMIC_MATRIX_RULE_ID from QP_MATRIX_RULES table. This matrix rule will be created for the Channel Program Lines.
PRICING_TERM_ID NUMBER 18 This column refers to the pricing_term_id of qp_pricing_terms_b table. Channel Program lines will be mapped as pricing terms in Pricing upon activation of Channel Program.
TP_ITEM_ID NUMBER 18 Unique identifier for the supplier item.
INCLUDE_VOL_EXCLUDE_DIS_FLAG VARCHAR2 1 Indicates if volume must be considered and discount excluded for volume programs.
PROGRAM_LINE_NUMBER NUMBER User friendly alternate key for the program line number to be displayed in the UI.
CATEGORY_SET_ID NUMBER 18 Indicates the catalog information of the category selected for the product rule.
ORIG_UNIT_SELLING_PRICE NUMBER Indicates the original selling price per unit for an item.
QUANTITY NUMBER Contains the item quantity for which special pricing discount is applicable.
AMOUNT NUMBER Indicates the calculated amount for the program line.
UNIT_DISCOUNT_AMOUNT NUMBER Indicates the calculated amount per unit for the program line.
COMPETITOR_ITEM VARCHAR2 960 Descriptive text for a competitor's item.
COMPETITOR_ITEM_PRICE NUMBER Indicates the price per unit for a competitor's item.
ATTRIBUTE_CATEGORY VARCHAR2 30 Descriptive Flexfield: structure definition of the user descriptive flexfield.
ATTRIBUTE_CHAR1 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR2 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR3 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR4 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR5 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR6 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR7 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR8 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR9 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR10 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR11 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR12 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR13 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR14 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR15 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR16 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR17 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR18 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR19 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_CHAR20 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_NUMBER1 NUMBER Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_NUMBER2 NUMBER Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_NUMBER3 NUMBER Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_NUMBER4 NUMBER Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_NUMBER5 NUMBER Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_NUMBER6 NUMBER Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_NUMBER7 NUMBER Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_NUMBER8 NUMBER Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_NUMBER9 NUMBER Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_NUMBER10 NUMBER Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_DATE1 DATE Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_DATE2 DATE Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_DATE3 DATE Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_DATE4 DATE Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_DATE5 DATE Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_TIMESTAMP1 TIMESTAMP Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_TIMESTAMP2 TIMESTAMP Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_TIMESTAMP3 TIMESTAMP Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_TIMESTAMP4 TIMESTAMP Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE_TIMESTAMP5 TIMESTAMP Descriptive Flexfield: segment of the user descriptive flexfield.
CUSTOMER_ATTRIBUTE_CATEGORY VARCHAR2 30 Customer Program Line Descriptive Flexfield: structure definition of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR1 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR2 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR3 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR4 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR5 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR6 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR7 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR8 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR9 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR10 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR11 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR12 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR13 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR14 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR15 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR16 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR17 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR18 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR19 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_CHAR20 VARCHAR2 150 Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_NUMBER1 NUMBER Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_NUMBER2 NUMBER Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_NUMBER3 NUMBER Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_NUMBER4 NUMBER Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_NUMBER5 NUMBER Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_NUMBER6 NUMBER Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_NUMBER7 NUMBER Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_NUMBER8 NUMBER Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_NUMBER9 NUMBER Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_NUMBER10 NUMBER Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_DATE1 DATE Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_DATE2 DATE Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_DATE3 DATE Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_DATE4 DATE Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_DATE5 DATE Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_TIMESTAMP1 TIMESTAMP Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_TIMESTAMP2 TIMESTAMP Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_TIMESTAMP3 TIMESTAMP Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_TIMESTAMP4 TIMESTAMP Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.
CUSTOMER_ATTRIBUTE_TIMESTAMP5 TIMESTAMP Customer Program Line Descriptive Flexfield: segment of the Customer Program Line descriptive flexfield.

Foreign Keys

Table Foreign Table Foreign Key Column
CJM_PROGRAM_LINES cjm_programs_all_b PROGRAM_HEADER_ID
cjm_program_qualifiers cjm_program_lines PROGRAM_LINE_ID

Indexes

Index Uniqueness Tablespace Columns Status
CJM_PROGRAM_LINES_ALL_N1 Non Unique Default PROGRAM_HEADER_ID Obsolete
CJM_PROGRAM_LINES_ALL_N2 Non Unique Default ITEM_LEVEL_CODE, ITEM_ID
CJM_PROGRAM_LINES_ALL_N3 Non Unique Default PROGRAM_HEADER_ID, ITEM_ID
CJM_PROGRAM_LINES_ALL_U1 Unique Default PROGRAM_LINE_ID