CST_COGS_DETAILS
This table contains the cost of goods sold details that are used for gross margin calculations.
Details
-
Schema: FUSION
-
Object owner: CST
-
Object type: TABLE
-
Tablespace: Default
Primary Key
Name | Columns |
---|---|
CST_COGS_DETAILS_PK |
COGS_DETAIL_ID |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
COGS_DETAIL_ID | NUMBER | 18 | Yes | Surrogate key that identifies a row in this table. | |
DISTRIBUTION_LINE_ID | NUMBER | 18 | Surrogate ID identifying the Costing distribution line. | ||
DISTRIBUTION_ID | NUMBER | 18 | Surrogate ID identifying the Costing distribution. | ||
EVENT_ID | NUMBER | 18 | Identifies the sub-ledger event linked to the Costing distribution. | ||
COST_ORG_ID | NUMBER | 18 | Yes | Identifies the Cost Organization associated with the Inventory Organization. | |
COST_BOOK_ID | NUMBER | 18 | Yes | Identifies the Cost Book assigned to the Cost Organization. | |
LEDGER_ID | NUMBER | 18 | Identifies the ledger associated to the Cost Organization. | ||
LEGAL_ENTITY_ID | NUMBER | 18 | Identifies the Legal Entity associated to the Cost Organization. | ||
PROFIT_CENTER_BU_ID | NUMBER | 18 | Identifies the Profit Center Business Unit associated to the Cost Organization. | ||
INVENTORY_ORG_ID | NUMBER | 18 | Identifies the Inventory Organization associated to the details. | ||
ITEM_ORGANIZATION_ID | NUMBER | 18 | Identifies the Inventory Organization associated to the Item. | ||
SUCCESSOR_INV_ORG_ID | NUMBER | 18 | Identifies the successor Inventory Organization for financial orchestration flow. | ||
SUCCESSOR_BU_ID | NUMBER | 18 | Identifies the successor Business Unit for financial orchestration flow. | ||
DOO_ORDER_NUMBER | VARCHAR2 | 240 | Order number associated to the details. | ||
DOO_ORDER_TYPE | VARCHAR2 | 50 | Type of the Order. Possible values are SO/OO: Sales Order, RMA: RMA Order , TO: Transfer Order, IOT: Interorganization Transfer Order, etc. | ||
DOO_FULLFILL_LINE_ID | NUMBER | 18 | Fulfillment line identifier of the details. | ||
CT_DOO_FULLFILL_LINE_ID | NUMBER | 18 | Fulfillment line identifier on the transaction. This can be different from the one used for margin calculation in case of complex flow involving CTO or ATO items. | ||
SOURCE_DOC_NO | VARCHAR2 | 240 | Shipment number associated to the details. | ||
SOURCE_DOC_TYPE | VARCHAR2 | 50 | Type of the Shipment associated to the details. | ||
CUSTOMER_ID | NUMBER | 18 | Identifies the bill to Customer associated to the details. | ||
SHIP_TO_CUSTOMER_ID | NUMBER | 18 | Identifies the ship to Customer associated to the details. | ||
FLOW_INSTANCE_ID | VARCHAR2 | 30 | Identifies the trade events for the financial orchestration flow. | ||
AGREEMENT_NUMBER | VARCHAR2 | 100 | Agreement number associated to the financial orchestration flow. | ||
COGS_TYPE | VARCHAR2 | 20 | Identifies the type of cost of goods sold. | ||
BASE_TXN_TYPE_ID | NUMBER | 18 | Identifies the transaction type. | ||
BASE_TXN_SOURCE_TYPE_ID | NUMBER | 18 | Identifies the transaction source type. | ||
BASE_TXN_ACTION_ID | NUMBER | 18 | Identifies the transaction action. | ||
GL_DATE | DATE | General Ledger date of the cost of goods sold details. | |||
INVENTORY_ITEM_ID | NUMBER | 18 | Identifies the Item associated to the details. | ||
CONFIG_INVENTORY_ITEM_ID | NUMBER | 18 | Identifies the Configured Item that is associated to the details. | ||
ROOT_INVENTORY_ITEM_ID | NUMBER | 18 | In case of assembled or picked to order, identifies the root Item. | ||
TXN_INVENTORY_ITEM_ID | NUMBER | 18 | Identifies the Item on the transaction. Note that this can be different from the Item used in the gross margin calculations for complex flows. | ||
COST_ELEMENT_ID | NUMBER | 18 | Identifies the Cost Element associated to the details. | ||
COST_ELEMENT_TYPE | VARCHAR2 | 30 | Type of the Cost Element. | ||
ACCOUNTING_LINE_TYPE | VARCHAR2 | 30 | Accounting line type of the distribution line. | ||
COGS_AMOUNT | NUMBER | Cost of goods sold amount. | |||
DCOGS_AMOUNT | NUMBER | Deferred cost of goods sold amount. | |||
BASE_CURRENCY_CODE | VARCHAR2 | 30 | Base currency code of the Cost Organization. | ||
LAYER_QUANTITY | NUMBER | Quantity associated to the details. | |||
COST_TRANSACTION_UOM | VARCHAR2 | 30 | Transaction quantity Unit of Measure. | ||
ACCOUNTED_FLAG | VARCHAR2 | 1 | Indicates if the details have been accounted. | ||
COGS_ACCOUNT_ID | NUMBER | 18 | General Ledger account that contains the COGS amount. | ||
MARGIN_CALC_FLAG | VARCHAR2 | 1 | Indicates if the gross margin has been calculated for this row. Valid values are 1. N: Not calculated 2. X: Excluded from calculation 3. NULL: Calculated | ||
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. |
Indexes
Index | Uniqueness | Tablespace | Columns | Status |
---|---|---|---|---|
CST_COGS_DETAILS_N1 | Non Unique | Default | MARGIN_CALC_FLAG | |
CST_COGS_DETAILS_N2 | Non Unique | Default | LAST_UPDATED_BY | Obsolete |
CST_COGS_DETAILS_N3 | Non Unique | Default | CT_DOO_FULLFILL_LINE_ID | |
CST_COGS_DETAILS_N4 | Non Unique | Default | DISTRIBUTION_ID | |
CST_COGS_DETAILS_U1 | Unique | Default | COGS_DETAIL_ID |