/**Begin D:\PDM_UPGRADE\PDM1\BEI_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BEI_ELECSTATEMENT', 'T_BEI_ELECSTATEMENT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BEI_ELECSTATEMENT') CREATE UNIQUE INDEX IDX_BEI_ELECSTATEMENT ON T_BEI_ELECSTATEMENT ( FCURRENCYID ,FACCOUNTBANKID ,FPERIOD );


 EXEC P_ALTERPK 'PK_T_BEI_ELECSTATEMENT_ENTRY', 'T_BEI_ELECSTATEMENT_ENTRY', 'FENTRYID', '1';

 EXEC P_ALTERPK 'PK_T_BEI_ELECSTATEMENT_L', 'T_BEI_ELECSTATEMENT_L', 'FPKID', '1';


/**End D:\PDM_UPGRADE\PDM1\BEI_constraint.sql **/
