Snowfun

导航

 

ORA-02291: 违反完整约束条件 (ABPPMGR.C0248833319_8413) - 未找到父项关键字ORA-06512: 在 "STG.FP_MO_SPLIT", line 1120

CONSTRAINT C0248833319_8413
FOREIGN KEY (ITEM, SITEID, ENTERPRISE, SCENARIO_ID)
REFERENCES ABPPMGR.MST_ITEMSITEMASTER (ITEM,SITEID,ENTERPRISE,SCENARIO_ID)
ON DELETE CASCADE
ENABLE VALIDATE,

 

/*INSERT INTO ABPPMGR.SUPPLYDMDPEGGING(Enterprise
,ENGINE_ID
,SYS_CREATED_BY
,SCENARIO_ID
,SITEID
,SUPPLYTYPE
,SUPPLYORDERID
,ITEM
,DEMANDORDERID
,DEMANDLINEID
,DEMANDTYPE
,QTYALLOCATED
,ISDEMANDLOCKED) */
SELECT /*+parallel(20)*/ distinct /* V_Enterprise --add by landor on 20180619去掉重复 ORA-00001: 违反唯一约束条件 (ABPPMGR.C0248833319_6399)
,V_ENGINEID
,V_PRONAME||'_'||V_STEP ||'AA10'
,V_ScenarioID
,V_SiteID
,'MFG'*/
SUPPLYORDERID
--,ITEM_ID
,ITEM
,SO_ID
,SO_LINE_ID
,'SO'
,ORDERED_QTY
,ISDEMANDLOCKED
FROM TB_MO_INIT WHERE REMARK='NW';
COMMIT;

select ITEM,SITEID,ENTERPRISE,SCENARIO_ID from ABPPMGR.MST_ITEMSITEMASTER
where item like '000000101001055476%' or
item='000000101001055476SP186TP186'

;

posted on 2021-03-09 07:38  Snowfun  阅读(155)  评论(0编辑  收藏  举报