MRP系统模块提供预测接口:MRP_FORECAST_INTERFACE,
只要往里面插入数据,planning manager自动检测接口表中的数据,验证后直接导入到table中。
MRP_FORECAST_INTERFACE
主要栏位:
INSERT INTO MRP_FORECAST_INTERFACE
(FORECAST_DESIGNATOR,
ORGANIZATION_ID,
INVENTORY_ITEM_ID,
FORECAST_DATE,
QUANTITY,
PROCESS_STATUS, ---插入时候是2
LAST_UPDATE_DATE,
LAST_UPDATED_BY,
CREATION_DATE,
CREATED_BY,
CONFIDENCE_PERCENTAGE,
BUCKET_TYPE , ---默认是1
WORKDAY_CONTROL -- 默认是1
)
BUCKET_TYPE MRP_BUCKET_TYPE MFG_LOOKUPS
1 Days
2 Weeks
3 Periods
PROCESS_STATUS indicates the current state of processing of each new forecast
entry in the Open Forecast Interface. Valid values include:
■ 1. Do not process
■ 2. Waiting to be processed
■ 3. Being processed
■ 4. Error
■ 5. Processed
When you first load a new forecast entry into the Open Forecast Interface, set
PROCESS_STATUS to 2 (Waiting to be processed).
PROCESS_STATUS MRP_INTERFACE_PROCESS_TYPE MFG_LOOKUPS
1 Do not process
2 Waiting to be processed
3 Being processed
4 Error
5 Processed
WORKDAY_CONTROL MRP_WORKDAY_CONTROL_TYPE MFG_LOOKUPS
1 Reject
2 Shift forward
3 Shift backward
注意事项:
1.Quantity为0,也能导入预测中,但不能装载到MDS,这是符合情理的。
2.FORECAST_DATE<=sysdate,也能导入成功,但导入进去没有多大意义。
后来用户要求导入之前要覆盖,考虑到数据风险问题,自己没有尝试这样做,不过,我想应该是直接从如下表先删除数据,对于与订单冲减的数据,需要在点击以下冲减吧!
MRP_FORECAST_UPDATES(与订单冲减),
MRP_FORECAST_DATES(预测数据)
MRP_FORECAST_ITEMS(预测料件)