 EXEC P_ALTERPK 'PK_T_MRP_PLSWASUBENTRY', 'T_MRP_PLSWASUBENTRY', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MRP_PLSWASUBENTRY') CREATE INDEX IDX_MRP_PLSWASUBENTRY ON T_MRP_PLSWASUBENTRY ( FENTRYID ,FSEQ );
