/**Begin C:\PDM_UPGRADE\PDM1\SRM_constraint.sql **/
 EXEC P_ALTERPK 'PK_SRM_GROUPEVASUPENTRY', 'T_SRM_GROUPEVASUPENTRY', 'FENTRYID', '1';

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SRM_GPLANSUPENTRY_FSUPID') CREATE INDEX IDX_SRM_GPLANSUPENTRY_FSUPID ON T_SRM_GROUPEVASUPENTRY ( FEVASUPPLIERID );


 EXEC P_ALTERPK 'PK_SRM_GROUPSCORERENTRY', 'T_SRM_GROUPSCORERENTRY', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_SRM_GPLANSCORER_ENTRYID') CREATE INDEX INDEX_SRM_GPLANSCORER_ENTRYID ON T_SRM_GROUPSCORERENTRY ( FENTRYID );



/**End C:\PDM_UPGRADE\PDM1\SRM_constraint.sql **/
