EXEC P_ALTERPK 'PK_T_MSPLAN_PMODELENTRY_L', 'T_MSPLAN_PMODELENTRY_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MSPLAN_PMODELENTRY_L') CREATE INDEX IDX_MSPLAN_PMODELENTRY_L ON T_MSPLAN_PMODELENTRY_L ( FENTRYID ,FLOCALEID );
 
 EXEC P_ALTERPK 'PK_T_MSPLAN_PRIORITYENTRY_L', 'T_MSPLAN_PRIORITYENTRY_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MSPLAN_PRIORITYENTRY_L') CREATE INDEX IDX_MSPLAN_PRIORITYENTRY_L ON T_MSPLAN_PRIORITYENTRY_L ( FENTRYID ,FLOCALEID );