 EXEC P_ALTERPK 'PK_T_BD_PRODUCTSUMMARY', 'T_BD_PRODUCTSUMMARY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDS_T_BD_PRODUCTSUMMARY_NUMBER') CREATE INDEX IDS_T_BD_PRODUCTSUMMARY_NUMBER ON T_BD_PRODUCTSUMMARY ( FNUMBER );


 EXEC P_ALTERPK 'PK_T_BD_PRODUCTSUMMARY_L', 'T_BD_PRODUCTSUMMARY_L', 'FPKID', '1';

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