 EXEC P_ALTERPK 'PK_T_CAS_RECEIVINGBILL_L', 'T_CAS_RECEIVINGBILL_L', 'FPKID', '1';

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