 EXEC P_ALTERPK 'PK_FMM_STANDARDTASK', 'T_FMM_STANDARDTASK', 'FID', '1'; 
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_STANDARDTASK_FNM') CREATE INDEX IDX_FMM_STANDARDTASK_FNM ON T_FMM_STANDARDTASK ( FNUMBER );
 
 
 EXEC P_ALTERPK 'PK_FMM_STANDARDTASK_L', 'T_FMM_STANDARDTASK_L', 'FPKID', '1';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_STANDARDTASK_L') CREATE INDEX IDX_FMM_STANDARDTASK_L  ON T_FMM_STANDARDTASK_L ( FID ,FLOCALEID );
 
 
 EXEC P_ALTERPK 'PK_FMM_STANDARDTASKENTRY', 'T_FMM_STANDARDTASKENTRY', 'FENTRYID', '1';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_STANDARDTASKENTRY_FSQ') CREATE INDEX IDX_FMM_STANDARDTASKENTRY_FSQ ON T_FMM_STANDARDTASKENTRY ( FID ,FSEQ );
 
 