/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\PUR_constraint.sql **/

 EXEC P_ALTERPK 'PK_PUR_COMPONENT_L_FID', 'T_PUR_COMPONENT_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PUR_COMPONENT_L_FLID') CREATE INDEX IDX_PUR_COMPONENT_L_FLID ON T_PUR_COMPONENT_L ( FID ,FLOCALEID );
/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\PUR_constraint.sql **/
