/**Begin D:\softwaresetup\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FPM_DETAILPLANFIELDS', 'T_FPM_DETAILPLANFIELDS', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_FPM_DETAILPLANFIELDS') CREATE INDEX IDX_T_FPM_DETAILPLANFIELDS ON T_FPM_DETAILPLANFIELDS ( FBODYSYS );


 EXEC P_ALTERPK 'PK_T_FPM_DETAILPLANFIELDS_L', 'T_FPM_DETAILPLANFIELDS_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_FPM_DETAILPLANFIELDS_L') CREATE INDEX IDX_T_FPM_DETAILPLANFIELDS_L ON T_FPM_DETAILPLANFIELDS_L ( FID );



/**End D:\softwaresetup\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
