 EXEC P_ALTERPK 'PK_MDS_RECEIVEDATA', 'T_MDS_RECEIVEDATA', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_RECEIVEDATA_FCM') CREATE INDEX IDX_MDS_RECEIVEDATA_FCM ON T_MDS_RECEIVEDATA ( FFCVRNNUM );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_RECEIVEDATA_MID') CREATE INDEX IDX_MDS_RECEIVEDATA_MID ON T_MDS_RECEIVEDATA ( FMATERIALID );
