 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MRP_PLANORDERCOPENTRY_FID') CREATE INDEX IDX_MRP_PLANORDERCOPENTRY_FID ON T_MRP_PLANORDERCOPENTRY (FID ASC);

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