EXEC P_ALTERPK 'PK_MDS_ORDERPOOLDATA_L', 'T_MDS_ORDERPOOLDATA_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_ORDERPOOLDATA_L_ID') CREATE INDEX IDX_MDS_ORDERPOOLDATA_L_ID ON T_MDS_ORDERPOOLDATA_L ( FID ,FLOCALEID );