
 EXEC P_ALTERPK 'PK_T_IM_MDC_OMOUTBILLENTRY_L', 'T_IM_MDC_OMOUTBILLENTRY_L', 'FPKID', '1';

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

