/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\PUR_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_PUR_SAMENTRY_ATT', 'T_PUR_SAMENTRY_ATT', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PUR_SAMENTRY_ATT_BD_ETY') CREATE INDEX IDX_PUR_SAMENTRY_ATT_BD_ETY ON T_PUR_SAMENTRY_ATT ( FENTRYID ,FBASEDATAID );



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