
EXEC p_AlterPK 'PK_T_BEI_BANKLOGENTRY', 'T_BEI_BANKLOGENTRY', 'fentryid', '1';

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

EXEC p_AlterPK 'PK_T_BEI_BANKLOGENTRY_H', 'T_BEI_BANKLOGENTRY_H', 'fentryid', '1';


