Metrics Centralization

This page shows the integration between Supply Chain Data Management and other services.

This page discusses:

Introduction

Metrics Centralization involves the centralization of metrics from external systems (such as, DELMIA Quintiq Demand Planner and Supply Planning) into Supply Chain Data Management (SCDM).

Integration with DELMIA Quintiq Demand Planner

Supply Chain Data Management(SCDM) provides supply chain master data to DELMIA Quintiq Demand Planner through Planning Scope Snapshots, ensuring that planners work with a consistent and reliable data foundation. The latest version of actual sales data is also centralized in SCDM, giving users access to up-to-date information for demand planning activities. Demand plans created and updated in DELMIA Quintiq Demand Planner are then persisted back into SCDM, maintaining continuous synchronization, data integrity, and end-to-end consistency across the supply chain.

Integration with DELMIA Supply Planner

Supply Chain Data Management supports the uploading Actuals (such as Actual Demands and Actual Inventory) in parquet files (.parquet). Actuals have no functional status. They use the same versioning logic as the other plans, it is possible to have several versions of the same actual. Once you commit the data, the SCDM Plan Registry creates the actual plan entry. Actual Inventory metrics are the input for Supply Planning. See Viewing the Plan Registry.

Plans and Metric Files Statuses

Plan Statuses
There are two types of plan statuses in Supply Chain Data Management: validation status and functional status. REST API specifies the functional status to update the status of the plan. Metrics files also have validation status, but not functional status. Validation Status tracks the progress the plan or the metrics file is at while going through background plan validation.
Plan Functional Status
  • Draft - The initial state of a Plan, indicating the Plan is being worked on. Technical implication: At this stage, the plan can exist only in the Planning Service but not published to SCDM yet.
  • Candidate - The plan is in a review phase where it is assessed for approval. Technical implication: The plan has been published, a snapshot of the metrics and values is available as parquet. It is not a requirement to create a new snapshot of the Metrics and values along with the status change. It can be a status change if there are no changes in the Plan.
  • Released - The plan is officially approved and finalized. Technical implication: You cannot modify the plan, no new snapshot of metrics and values can be made.
  • Rejected - Ends the plan’s lifecycle. No further work is done unless a new draft is created. Technical implication: The plan and its metrics and values have been archived. No changes can be made.
Plan Validation Status
Validation Status Description
TO_BE_UPLOADED The plan has recently been created but the files are not yet uploaded / still being uploaded.
COMMITTED The plan has been committed to the DOS and SCDM background validation has started.
UPLOADED All files have been checked to be uploaded to the DOS, but background validation is still ongoing.
VALIDATED A file in the plan has successfully passed background validation.
UPLOAD_FAILED The service that is attempting to publish a plan has called the SCDM commit API to report that the process of uploading the file to DOS has failed. Because the file upload to DOS is not handled by SCDM, SCDM is unable to track this status and depends on the other service to report that a problem happened.
VALIDATION_FAILED Background validation has finished and one of the files in the plan failed validation.

When the technical status is not VALIDATED, the plan cannot be read or used as input for other plans. It can still be queried by other services.

Metrics File Validation Status
For a plan, you can upload a number of files. Announce each file along with the plan publication. One file type contains metrics grouped by functional purpose and has the same dimensions. The plan periods apply to all the files of the same plan. The following is a state-diagram with the different statuses that a file can have. They largely correspond with the similar statuses of plan.
File Status Description
TO_BE_UPLOADED The plan has recently been created but the files are not yet uploaded / still being uploaded.
UPLOADED In the early part of the background validation, SCDM has successfully confirmed that the file exists in the DOS.
VALIDATED This file successfully passed background validation.
UPLOAD_FAILED The service that is attempting to publish a plan has called the SCDM commit API to report that the process of uploading the file to DOS has failed. Because the file upload to DOS is not handled by SCDM, SCDM is unable to track this status and depends on the other service to report that a problem happened.
VALIDATION_FAILED Background validation has finished and this file failed validation.
MISSING_FILE The process of uploading the files to DOS succeeded, but in the early part of the background validation, SCDM could not find the file in the DOS.
There are several reasons why validation fails:
  • Missing from DOS
  • Missing dimensions
  • Dimensions are not in STRING format
  • Missing metric columns
  • Metric columns are not in ARRAY format
  • The length of the arrays inside the Parquet file does not exactly match the number of periods in the plan
  • Uploaded file is either corrupted or is not a Parquet file
  • An unexpected error occurred
Supported Metrics Schema

One important rule of Parquet is that the file always comes with a schema. Using this schema, you can read it first to understand how to read the contents of the Parquet file before even reading the contents of the Parquet file. This gives you important information like the data type of the column and whether the column is optional/nullable.

This schema is also required when writing a new Parquet file. You need to know the exact schema beforehand. SCDM only centralizes the metrics, and it is not involved in writing any actual Parquet files.

The following tables are the list of metrics schemas supported by SCDM by plan types.

Each of the table shown represents an individual Parquet file. Within these tables, the Identifier column specifies the column name for the associated [...Metrics...]. The columns listed under Dimensions indicate the dimensions expected for each metric. The type indicates the type enum to be filled for plan.files.type.

All plan types and metrics file types that are provided by SCDM have a SCDM_ prefix. Internally, they also have an isSystem Boolean attribute that is true. In the future, should user/service-customized types be available, those can have isSystem set to false and can't use the SCDM_ prefix. The "dimension" columns in each Parquet file are expected to be filled with the ID to that particular entity, not the names.

The "measured by" column shows if the metric expects either a unit or a currency column that shows how that metric is measured. A Parquet file may have either a unit/currency column, or both if it contains metrics that require both unit and currency (for example, ACTUAL_DEMAND). In this case, the column that is not used by that metric can be filled with null. For example, for TotalOrderVolume inside ACTUAL_DEMAND, it is measured by unit, therefore in the unit column, it cab contain the ID of that unit, and the currency column can be null. This means the unit and currency columns can be optional.

All dimension columns (including unit and currency) have a _id postfix and are using a Long datatype.

Plan Type (FUNC) Plan Type ENUM Parquet File Type (FUNC) Parquet File Type ENUM File Optional Metric Metric Parquet Column ID Dimension Measured by
Actual Demands SCDM_ACTUAL_DEMAND Actual Demands SCDM_ACTUAL_DEMAND FALSE Total Order Volume total_order_volume item_id, demand_location_id, sales_segment_id unit_id
Actual Demands SCDM_ACTUAL_DEMAND Actual Demands SCDM_ACTUAL_DEMAND FALSE Total Order Revenue total_order_revenue item_id, demand_location_id, sales_segment_id currency_id
Actual Demands SCDM_ACTUAL_DEMAND Actual Demands SCDM_ACTUAL_DEMAND FALSE Total Sales Volume total_sales_volume item_id, demand_location_id, sales_segment_id unit_id
Actual Demands SCDM_ACTUAL_DEMAND Actual Demands SCDM_ACTUAL_DEMAND FALSE Total Sales Revenue total_sales_revenue item_id, demand_location_id, sales_segment_id currency_id
Actual Inventory SCDM_ACTUAL_INVENTORY Actual Inventory SCDM_ACTUAL_INVENTORY FALSE Actual Inventory Level actual_inventory_level item_id, stock_location_id unit_id
Plan Type (FUNC) Plan Type ENUM Parquet File Type (FUNC) Parquet File Type ENUM File Optional Metric Metric Parquet Column ID Dimension Measured by
Safety Stock Plan SCDM_SAFETY_STOCK_PLAN Safety Stock Plan SCDM_IP_SAFETY_STOCK_PLAN FALSE Safety Stock in Quantity safety_stock_in_quantity item_id, stock_location_id unit_id
Safety Stock Plan SCDM_SAFETY_STOCK_PLAN Safety Stock Plan SCDM_IP_SAFETY_STOCK_PLAN FALSE Safety Stock in Day safety_stock_in_day item_id, stock_location_id -
Plan Type (FUNC) Plan Type ENUM Parquet File Type (FUNC) Parquet File Type ENUM File Optional Metric Metric Parquet Column ID Dimension Measured by
Demand Plan SCDM_DEMAND_PLAN Demand Plan - Forecasted Demands SCDM_DP_FORECASTED_DEMAND FALSE Unconstrained Demand Forecast Volume unconstrained_demand_forecast_volume item_id, demand_location_id, sales_segment_id unit_id
Demand Plan SCDM_DEMAND_PLAN Demand Plan - Forecasted Demands SCDM_DP_FORECASTED_DEMAND FALSE Unconstrained Demand Forecast Revenue unconstrained_demand_forecast_revenue item_id, demand_location_id, sales_segment_id currency_id
Plan Type (FUNC) Plan Type ENUM Parquet File Type (FUNC) Parquet File Type ENUM File Optional Metric Metric Parquet Column ID Dimension Measured by
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - Demand Forecast Fulfillment SCDM_SP_DEMAND_FORECAST_FULFILLMENT FALSE Unconstrained Demand Forecast Volume unconstrained_demand_forecast_volume item_id, stock_location_id, demand_location_id, sales_segment_id unit_id
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - Demand Forecast Fulfillment SCDM_SP_DEMAND_FORECAST_FULFILLMENT FALSE Unconstrained Demand Forecast Revenue unconstrained_demand_forecast_revenue item_id, stock_location_id, demand_location_id, sales_segment_id currency_id
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - Demand Forecast Fulfillment SCDM_SP_DEMAND_FORECAST_FULFILLMENT FALSE Demand Fulfillment Forecast Volume demand_fulfillment_forecast_volume item_id, stock_location_id, demand_location_id, sales_segment_id unit_id
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - Demand Forecast Fulfillment SCDM_SP_DEMAND_FORECAST_FULFILLMENT FALSE Demand Fulfillment Forecast Revenue demand_fulfillment_forecast_revenue item_id, stock_location_id, demand_location_id, sales_segment_id currency_id
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - Purchasing SCDM_SP_PURCHASING FALSE Planned Purchasing Volume planned_purchasing_volume item_id, stock_location_id, capable_resource_id unit_id
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - Production SCDM_SP_PRODUCTION FALSE Planned Production Volume planned_production_volume item_id, stock_location_id, capable_resource_id unit_id
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - Transport SCDM_SP_TRANSPORT FALSE Planned Transport Volume planned_transport_volume item_id, stock_location_id, capable_resource_id unit_id
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - Load SCDM_SP_LOAD FALSE Planned Load planned_load capable_resource_id unit_id
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - Available Capacity SCDM_SP_AVAILABLE_CAPACITY FALSE Planned Available Capacity planned_available_capacity resource_id -
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - Inventory SCDM_SP_INVENTORY FALSE Planned Inventory Level planned_inventory_level item_id, stock_location_id unit_id
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - Purchasing Dependent Demand SCDM_SP_PURCHASING_DEPENDENT_DEMAND FALSE Purchasing Dependent Demand purchasing_dependent_demand item_id, stock_location_id, capable_resource_id unit_id
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - Production-Dependent Demand SCDM_SP_PRODUCTION_DEPENDENT_DEMAND FALSE Production-Dependent Demand production_dependent_demand item_id, stock_location_id, capable_resource_id unit_id
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - Transport Dependent Demand SCDM_SP_TRANSPORT_DEPENDENT_DEMAND FALSE Transport-Dependent Demand transport_dependent_demand item_id, stock_location_id, capable_resource_id unit_id
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - External Dependent Demand Fulfillment SCDM_SP_EXTERNAL_DEPENDENT_DEMAND_FULFILLMENT TRUE Fulfilled External Demand fulfilled_external_demand item_id, stock_location_id unit_id
Supply Plan SCDM_SUPPLY_PLAN Supply Plan - External Dependent Demand Fulfillment SCDM_SP_EXTERNAL_DEPENDENT_DEMAND_FULFILLMENT TRUE Unconstrained External Demand unconstrained_external_demand item_id, stock_location_id unit_id
Supply Plan SCDM_SUPPLY_PLAN Supply Plan – Account Metric SCDM_SP_ACCOUNT_METRIC TRUE Accounts metric_value account_id, item_id, stock_location_id, resource_id, capable_resource_id, sales_segment_id, demand_location_id, site_id currency_id