CREATE TABLE cst_transfer_costs (
    TRANSFER_COST_ID              NUMBER(18, 0) ,
    TRANSACTION_ID                NUMBER(18, 0)     NOT NULL,
    REC_TRXN_ID                   NUMBER(18, 0)     NOT NULL,
    DEP_TRXN_ID                   NUMBER(18, 0)     NOT NULL,
    COST_ELEMENT_ID               NUMBER(18, 0)     NOT NULL,
    EXPENSE_POOL_ID               NUMBER(18, 0)     NOT NULL,
    EFF_DATE                      TIMESTAMP(6)      NOT NULL,
    TRANSACTION_COST_ID           NUMBER(18, 0)     NOT NULL,
    COST_ORG_ID                   NUMBER(18, 0)     NOT NULL,
    COST_BOOK_ID                  NUMBER(18, 0)     NOT NULL,
    INVENTORY_ITEM_ID             NUMBER(18, 0)     NOT NULL,
    VAL_UNIT_ID                   NUMBER(18, 0) ,
    COST_DATE                     TIMESTAMP(6)      NOT NULL,
    PERIOD_NAME                   VARCHAR2(60)  ,
    BASE_TXN_TYPE_ID              NUMBER(18, 0) ,
    COST_SOURCE                   VARCHAR2(120) ,
    COST_REFERENCE                VARCHAR2(400) ,
    COST_TRANSACTION_TYPE         VARCHAR2(40)  ,
    ADDITIONAL_PROCESSING_CODE    VARCHAR2(960) ,
    ABSORPTION_TYPE               VARCHAR2(120) ,
    QUANTITY                      NUMBER        ,
    UOM_CODE                      VARCHAR2(100) ,
    UNIT_COST                     NUMBER        ,
    CURRENCY_CODE                 VARCHAR2(120)     NOT NULL,
    ADJ_POSTED_FLAG               VARCHAR2(4)       NOT NULL,
    POSTED_FLAG                   VARCHAR2(20)  ,
    VAL_ONHAND_FLAG               VARCHAR2(4)   ,
    CMR_POSTED_FLAG               VARCHAR2(20)  ,
    DISTRIBUTION_ID               NUMBER(18, 0) ,
    CREATED_BY                    VARCHAR2(256)     NOT NULL,
    CREATION_DATE                 TIMESTAMP(6)      NOT NULL,
    LAST_UPDATED_BY               VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_DATE              TIMESTAMP(6)      NOT NULL,
    LAST_UPDATE_LOGIN             VARCHAR2(128) ,
    REQUEST_ID                    NUMBER(18, 0) ,
    JOB_DEFINITION_NAME           VARCHAR2(400) ,
    JOB_DEFINITION_PACKAGE        VARCHAR2(3600),
    DISTRIBUTION_TYPE             VARCHAR2(120) ,
    STD_COST_ID                   NUMBER(18, 0) ,
    TRANSFER_COST_ID              NUMBER(18, 0) ,
    TRANSACTION_ID                NUMBER(18, 0)     NOT NULL,
    REC_TRXN_ID                   NUMBER(18, 0)     NOT NULL,
    DEP_TRXN_ID                   NUMBER(18, 0)     NOT NULL,
    COST_ELEMENT_ID               NUMBER(18, 0)     NOT NULL,
    EXPENSE_POOL_ID               NUMBER(18, 0)     NOT NULL,
    EFF_DATE                      TIMESTAMP(6)      NOT NULL,
    TRANSACTION_COST_ID           NUMBER(18, 0)     NOT NULL,
    COST_ORG_ID                   NUMBER(18, 0)     NOT NULL,
    COST_BOOK_ID                  NUMBER(18, 0)     NOT NULL,
    INVENTORY_ITEM_ID             NUMBER(18, 0)     NOT NULL,
    VAL_UNIT_ID                   NUMBER(18, 0) ,
    COST_DATE                     TIMESTAMP(6)      NOT NULL,
    BASE_TXN_TYPE_ID              NUMBER(18, 0) ,
    COST_SOURCE                   VARCHAR2(120) ,
    COST_REFERENCE                VARCHAR2(400) ,
    COST_TRANSACTION_TYPE         VARCHAR2(40)  ,
    ADDITIONAL_PROCESSING_CODE    VARCHAR2(960) ,
    ABSORPTION_TYPE               VARCHAR2(120) ,
    QUANTITY                      NUMBER        ,
    UOM_CODE                      VARCHAR2(100) ,
    UNIT_COST                     NUMBER        ,
    CURRENCY_CODE                 VARCHAR2(120)     NOT NULL,
    ADJ_POSTED_FLAG               VARCHAR2(4)       NOT NULL,
    POSTED_FLAG                   VARCHAR2(20)  ,
    DISTRIBUTION_ID               NUMBER(18, 0) ,
    CREATED_BY                    VARCHAR2(256)     NOT NULL,
    CREATION_DATE                 TIMESTAMP(6)      NOT NULL,
    LAST_UPDATED_BY               VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_DATE              TIMESTAMP(6)      NOT NULL,
    LAST_UPDATE_LOGIN             VARCHAR2(128) ,
    REQUEST_ID                    NUMBER(18, 0) ,
    JOB_DEFINITION_NAME           VARCHAR2(400) ,
    JOB_DEFINITION_PACKAGE        VARCHAR2(3600),
    CMR_POSTED_FLAG               VARCHAR2(20)  ,
    DISTRIBUTION_TYPE             VARCHAR2(120) ,
    STD_COST_ID                   NUMBER(18, 0) ,
    VAL_ONHAND_FLAG               VARCHAR2(4)   ,
    PERIOD_NAME                   VARCHAR2(60)  ,
    CONSTRAINT pk_cst_transfer_costs PRIMARY KEY (TRANSFER_COST_ID, TRANSFER_COST_ID)
);
