[Home] [Help]
[Dependency Information]
Object Name: | OKC_TIME_CODE_UNITS_B |
---|---|
Object Type: | TABLE |
Owner: | OKC |
FND Design Data: | ![]() |
Subobject Name: | |
Status: | VALID |
Pricing and selling items based on time (e.g. pricing service by the month) requires different units of time to be defined as standard units of measure in MTL_UNITS_OF_MEASURE. However, the standard unit of measure conversion routines do not work reliably when it comes to converting time. For example, how many days are there in a month?
This problem can cause inaccuracies determing an extended price. If the base unit is days, and the item is priced by the month, and is sold by the year, the extended price will not be correct.
It can also cause inaccuracies when determining the end date of a contract, as it requires converting the sold period to the base unit (usaully days) and then adding it to the start date. So a six month contract becomes a 180 day contract, where a month is defined as being equal to 30 days in the unit of measure conversion tables.
To correct this problem, Oracle Contracts has seeded a set of known time units in FND_LOOKUPS (type is OKC_TIME). OKC_TIME_CODE_UNITS is then used to map the user defined time units in MTL_UNITS_OF_MEASURE to the known time units. In this manner we know what time units have been defined and how they convert to a known unit. We can then take a user-entered quantity and unit (6 MON) and determine that it means 6 months, and use the correct routine. In the case of determining the end date of the contract, we will know to use add_months.
The Oracle Contracts UI will only accept time units that have been recorded in OKC_TIME_CODE_UNITS.
Tablespace: | ![]() |
---|---|
PCT Free: | 10 |
PCT Used: |
Index | Type | Uniqueness | Tablespace | Column |
---|---|---|---|---|
OKC_TIME_CODE_UNITS_B_U1 | NORMAL | UNIQUE |
![]() |
![]() ![]() |
Name | Datatype | Length | Mandatory | Comments |
---|---|---|---|---|
TCE_CODE | VARCHAR2 | (30) | Yes | Time conversion code. Refers to the LOOKUP_CODE in FND_LOOKUPS where LOOKUP_TYPE='OKC_TIME' |
UOM_CODE | VARCHAR2 | (3) | Yes | Unit of measure code. Refers to uom_code in MTL_UNITS_OF_MEASURE where uom_class = 'Time'. |
QUANTITY | NUMBER | Yes | Quantity value. | |
OBJECT_VERSION_NUMBER | NUMBER | (9) | Yes | Sequential number set at 1 on insert and incremented on update. Used by APIs to ensure current record is passed. |
CREATED_BY | NUMBER | (15) | Yes | Standard Who column. |
CREATION_DATE | DATE | Yes | Standard Who column. | |
LAST_UPDATED_BY | NUMBER | (15) | Yes | Standard Who column. |
LAST_UPDATE_DATE | DATE | Yes | Standard Who column. | |
LAST_UPDATE_LOGIN | NUMBER | (15) | Standard Who column. | |
ATTRIBUTE_CATEGORY | VARCHAR2 | (90) | Descriptive flexfield category column. | |
ATTRIBUTE1 | VARCHAR2 | (450) | Descriptive flexfield column. | |
ATTRIBUTE2 | VARCHAR2 | (450) | Descriptive flexfield column. | |
ATTRIBUTE3 | VARCHAR2 | (450) | Descriptive flexfield column. | |
ATTRIBUTE4 | VARCHAR2 | (450) | Descriptive flexfield column. | |
ATTRIBUTE5 | VARCHAR2 | (450) | Descriptive flexfield column. | |
ATTRIBUTE6 | VARCHAR2 | (450) | Descriptive flexfield column. | |
ATTRIBUTE7 | VARCHAR2 | (450) | Descriptive flexfield column. | |
ATTRIBUTE8 | VARCHAR2 | (450) | Descriptive flexfield column. | |
ATTRIBUTE9 | VARCHAR2 | (450) | Descriptive flexfield column. | |
ATTRIBUTE10 | VARCHAR2 | (450) | Descriptive flexfield column. | |
ATTRIBUTE11 | VARCHAR2 | (450) | Descriptive flexfield column. | |
ATTRIBUTE12 | VARCHAR2 | (450) | Descriptive flexfield column. | |
ATTRIBUTE13 | VARCHAR2 | (450) | Descriptive flexfield column. | |
ATTRIBUTE14 | VARCHAR2 | (450) | Descriptive flexfield column. | |
ATTRIBUTE15 | VARCHAR2 | (450) | Descriptive flexfield column. | |
SECURITY_GROUP_ID | NUMBER | Used in hosted environments | ||
ACTIVE_FLAG | VARCHAR2 | (3) | Indicates whether the code is active. Valid values are Y and N. |
Cut, paste (and edit) the following text to query this object:
SELECT TCE_CODE
, UOM_CODE
, QUANTITY
, OBJECT_VERSION_NUMBER
, CREATED_BY
, CREATION_DATE
, LAST_UPDATED_BY
, LAST_UPDATE_DATE
, LAST_UPDATE_LOGIN
, ATTRIBUTE_CATEGORY
, ATTRIBUTE1
, ATTRIBUTE2
, ATTRIBUTE3
, ATTRIBUTE4
, ATTRIBUTE5
, ATTRIBUTE6
, ATTRIBUTE7
, ATTRIBUTE8
, ATTRIBUTE9
, ATTRIBUTE10
, ATTRIBUTE11
, ATTRIBUTE12
, ATTRIBUTE13
, ATTRIBUTE14
, ATTRIBUTE15
, SECURITY_GROUP_ID
, ACTIVE_FLAG
FROM OKC.OKC_TIME_CODE_UNITS_B;
OKC.OKC_TIME_CODE_UNITS_B does not reference any database object
OKC.OKC_TIME_CODE_UNITS_B is referenced by following:
|
|
|