/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MRP_constraint.sql **/
 EXEC P_ALTERPK 'PK_MRP_PLANORDERENTRY', 'T_MRP_PLANORDERENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MRP_PLANORDERENTRY') CREATE INDEX IDX_MRP_PLANORDERENTRY ON T_MRP_PLANORDERENTRY ( FID ,FSEQ );


 EXEC P_ALTERPK 'PK_MRP_PLANORDER', 'T_MRP_PLANORDER', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MRP_PLANORDER_FNUM') CREATE INDEX IDX_MRP_PLANORDER_FNUM ON T_MRP_PLANORDER ( FBILLNO );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MRP_constraint.sql **/
