ZSF_FCST_HEADER

This table has the forecast header for each forecast in forecasting application

Details

  • Schema: FUSION

  • Object owner: ZSF

  • Object type: TABLE

  • Tablespace: Default

Primary Key

Name Columns

ZSF_FCST_HEADER_PK

FCST_HEADER_ID

Columns

Name Datatype Length Precision Not-null Comments
FCST_HEADER_ID NUMBER 18 Yes Primary Key for the Forecast header, representing a forecast
FCST_METRICS_PARTITION_KEY NUMBER 18 This column will be copied over to the ZSF_FCST_METRICS table, where it will be used as partition key.
FCST_SERIES_ID NUMBER 18 FK to ZSF_FCST_SERIES.FCST_SERIES_ID, this represents the series to which the forecast belongs to
FORECAST_NAME VARCHAR2 30 Yes Name of Forecast, this is derived from the due date/start date of the forecast
FORECAST_TYPE VARCHAR2 30 Forecast type. Values could be Revenue / Non-Revenue. Lookup type is zsf_fcst_type.
START_DATE DATE Start date of Forecast. The first date of the forecast.
END_DATE DATE End Date of Forecast. The last date of the forecast.
DUE_DATE DATE The date when the forecast is due, after which it will be locked.
LAST_REFRESH_DATE TIMESTAMP Date of last refresh for this particular forecast
TERR_HIER_FREEZE_DATE DATE This represents the date after which territory changes will not be considered for the forecast
STATUS_CODE VARCHAR2 30 Status of Header, it could be PAST, ACTIVE, FUTURE.
LATEST_FLAG VARCHAR2 1 Latest Flag indicates if this is the latest forecast for the period.
CALENDAR_ID NUMBER 18 Reference to the GL calendar selected for CRM
CORP_CURR_CODE VARCHAR2 30 Reference to the corporate currency selected for CRM
CORP_CURR_RATE_TYPE VARCHAR2 30 Reference to the corporate currency selected for CRM
PERIOD_NAME VARCHAR2 30 Period name from the common calendar for the forecast header
FORECAST_SEQ_NUM NUMBER 9 Sequence number for the forecast in the list of forecasts for the current forecast period
DELETE_FLAG VARCHAR2 1 This flag is used to indicate if the header needs to be deleted during generation
DENORM_VERSION_ID NUMBER 18 This has a FK reference to ZSF_TERR_HIERARCHY_DN table
REQUEST_ID NUMBER 18 Enterprise Service Scheduler: indicates the request ID of the job that created or last updated the row.
PRODUCT_SNAPSHOT_VER_ID NUMBER 18 The version of the product snapshot is stored in the header table.
FCST_STATUS_QUALIFIER_CODE VARCHAR2 30 This qualifies the existing status to provide more granular display status for overview page, namely ACTIVE, NEXT, PREVIOUS
FCST_HEADER_JOB_STATUS VARCHAR2 30 Column introduced to determine interoperability status between jobs
FCST_HEADER_JOB_REQUEST_ID NUMBER 18 Column introduced to determine interoperability status between jobs
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_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.
USER_LAST_UPDATE_DATE TIMESTAMP Disconnected Mobile: indicates the date and time of the last update of the row. This value is different from LAST_UPDATE_DATE if the update originally happened in a different database (i.e. a different mobile database or the server).

Foreign Keys

Table Foreign Table Foreign Key Column
ZSF_FCST_HEADER zsf_fcst_series FCST_SERIES_ID
ZSF_FCST_HEADER zsf_fcst_snapshot PRODUCT_SNAPSHOT_VER_ID
zsf_fcst_item_detail zsf_fcst_header FCST_HEADER_ID
zsf_fcst_participant zsf_fcst_header FCST_HEADER_ID
zsf_fcst_adjust_period zsf_fcst_header FCST_HEADER_ID

Indexes

Index Uniqueness Tablespace Columns
ZSF_FCST_HEADER_N2 Non Unique Default PERIOD_NAME, FORECAST_SEQ_NUM, FORECAST_TYPE
ZSF_FCST_HEADER_N3 Non Unique Default FORECAST_NAME, FCST_HEADER_ID
ZSF_FCST_HEADER_PK Unique Default FCST_HEADER_ID
ZSF_FCST_HEADER_U1 Unique Default FCST_SERIES_ID, START_DATE, END_DATE, DUE_DATE, FORECAST_TYPE
ZSF_FCST_HEADER_U2 Unique Default LAST_UPDATE_DATE, FCST_HEADER_ID