 EXEC P_ALTERPK 'PK_HAOS_STAFFDIMENSONENTRY', 'T_HAOS_STAFFDIMENSONENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HAOS_STAFFDIMENSONENTRY' AND KSQL_INDNAME = 'IDX_HAOS_STAFFDIMENSIONENTRY') CREATE INDEX IDX_HAOS_STAFFDIMENSIONENTRY ON T_HAOS_STAFFDIMENSONENTRY ( FID );

