/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BEI_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BEI_TRANSDETAIL_E', 'T_BEI_TRANSDETAIL_E', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BEI_TRANSDETAIL_E') CREATE  CLUSTERED INDEX IDX_T_BEI_TRANSDETAIL_E ON T_BEI_TRANSDETAIL_E ( FNUMBER );


 EXEC P_ALTERPK 'PK_T_BEI_TRANSDETAIL_ENTRY', 'T_BEI_TRANSDETAIL_ENTRY', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BEI_TRANSDETAIL_ENTRY') CREATE  CLUSTERED INDEX IDX_T_BEI_TRANSDETAIL_ENTRY ON T_BEI_TRANSDETAIL_ENTRY ( FID );



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