MOT_IMP_TERR_COVERAGES

This table is the interface table to MOT_TERRITORIES, storing territory information.

Details

  • Schema: FUSION

  • Object owner: MOT

  • Object type: TABLE

  • Tablespace: FUSION_TS_TX_DATA

Primary Key

Name Columns

MOT_IMP_TERR_COVERAGES_PK

BATCH_ID, INTERFACE_ROW_ID

Columns

Name Datatype Length Precision Not-null Comments
INTERFACE_ROW_ID NUMBER 18 Yes An internally generated identifier for interface table. It is part of the primary key.
BATCH_ID NUMBER 18 Yes Externally generated id to mark actual set of imported records
IMPORT_STATUS_CODE VARCHAR2 30 Indicates the import status of the record.
ACTION_CODE VARCHAR2 30 Action code will be used to determine what operation should be done: insert,update,delete
FILE_RECORD_NUM NUMBER 10 FILE_RECORD_NUM
FILE_NAME_SYSTASK_ID NUMBER 18 Indicates import sys task id for multi CSV upload.
INTERNAL_ACTION_CODE VARCHAR2 30 Internal action code
ERROR_FLAG VARCHAR2 1 This flag is set for the record that are failed to pass the validation.
ERROR_TEXT VARCHAR2 1500 This is the error/failure text populated while uploading
CREATION_DATE TIMESTAMP Yes Who column: indicates the date and time of the creation of the row.
CREATED_BY VARCHAR2 64 Yes Who column: indicates the user who created the row.
LAST_UPDATE_DATE TIMESTAMP Yes Who column: indicates the date and time of the last update of the row.
LAST_UPDATED_BY VARCHAR2 64 Yes Who column: indicates the user who last updated the row.
LAST_UPDATE_LOGIN VARCHAR2 32 Who column: indicates the session login associated to the user who last updated the row.
CONFLICT_ID NUMBER 18 Yes Disconnected Mobile: this value is used to guarantee the uniqueness of the row when duplicates are created in different databases (i.e. mobile databases or the server).
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.
REQUEST_ID NUMBER 18 Enterprise Service Scheduler: indicates the request ID of the job that created or last updated the row.
ELIGIBLE_FOR_IMPORT_FLAG VARCHAR2 1 Indicates whether userkey conversion, phase2 validations needs to be performed.
TERRITORY_NUMBER VARCHAR2 30 Unique identification number for this territory
DISPLAY_TERRITORY_NAME VARCHAR2 60 Name of the territory
COVERAGE_TYPE VARCHAR2 80 Coverage type associated with this territory
DIMENSION VARCHAR2 60 This is the dimension for which user key is passed. It can be PROD, GEO etc
DIMENSION_MEMBER_KEY VARCHAR2 2165 This is the public key for the dimension that is passed.
DIMENSION_MEMBER_KEY2 VARCHAR2 200 This is the 2nd key that can be passed in the file to resolve the public key to the ID.
DIMENSION_MEMBER_NAME VARCHAR2 725 This is the display value for the dimension that is passed
INCLUDE_CUST_HIER_YES_NO VARCHAR2 1 Indicates if hierarchy is included for customer dimension member.
ADDRESS_COUNTRY VARCHAR2 2 Country
ADDRESS_STATE VARCHAR2 60 State
ADDRESS_PROVINCE VARCHAR2 60 Province
ADDRESS_COUNTY VARCHAR2 60 County
ADDRESS_CITY VARCHAR2 60 City
ADDRESS_POSTAL_CODE VARCHAR2 60 Postal Code
ADDRESS_HIGH_POSTAL_CODE VARCHAR2 60 Postal Code
ADDRESS_LOW_POSTAL_CODE VARCHAR2 60 Postal Code
ADDR_ELEMENT_ATTRIBUTE1 VARCHAR2 150 Additional address element to support flexible address format
ADDR_ELEMENT_ATTRIBUTE2 VARCHAR2 150 Additional address element to support flexible address format
ADDR_ELEMENT_ATTRIBUTE3 VARCHAR2 150 Additional address element to support flexible address format
ADDR_ELEMENT_ATTRIBUTE4 VARCHAR2 150 Additional address element to support flexible address format
ADDR_ELEMENT_ATTRIBUTE5 VARCHAR2 150 Additional address element to support flexible address format
DIMENSION_CODE VARCHAR2 5 This is the dimension code that has the values provided in file. For e.g. PROD, GEO
COVERAGE_TYPE_CODE VARCHAR2 30 This is the coverage type code that has the values. For e.g. REGULAR, PARTNER_REGULER, INCLUSION, PARTNER_INCLUSION,CUST_ACCOUNT_INCLUSION,EXCLUSION,PARTNER_EXCLUSION,CUST_ACCOUNT_EXCLUSION etc.
DIMENSION_MEMBER_LOW VARCHAR2 1082 Identifier of a dimension member
DIMENSION_MEMBER_HIGH VARCHAR2 1082 Identifier of a dimension member
TERR_DIM_INTG_ID VARCHAR2 80 This is the ID that is used by TM application while defining the territory. This is populated while data movement happens to runtime table
TERR_DIM_INTG_HIGH_ID VARCHAR2 80 This is the ID that is used by TM application while defining the territory. This is populated while data movement happens to runtime table used in case of range.
TERRITORY_VERSION_ID NUMBER 18 Identifier of sales territory
LANGUAGE_CODE VARCHAR2 4 Code for the language in which the data is imported
TERR_RULE_ID NUMBER 18 Identifier of sales territory rule
TERR_RULE_BOUNDARY_ID NUMBER 18 Identifier of sales territory boundary
TERR_RULE_BNDRY_VALUE_ID NUMBER 18 Identifier of sales territory boundary value

Indexes

Index Uniqueness Tablespace Columns
MOT_IMP_TERR_COVERAGES_N1 Non Unique Default BATCH_ID, TERR_RULE_ID, ELIGIBLE_FOR_IMPORT_FLAG
MOT_IMP_TERR_COVERAGES_N2 Non Unique Default BATCH_ID, TERRITORY_VERSION_ID, ELIGIBLE_FOR_IMPORT_FLAG
MOT_IMP_TERR_COVERAGES_N3 Non Unique Default BATCH_ID, TERRITORY_NUMBER, IMPORT_STATUS_CODE
MOT_IMP_TERR_COVERAGES_PK Unique Default BATCH_ID, INTERFACE_ROW_ID