 EXEC P_ALTERPK 'PK_TPO_ZSPM', 'T_TPO_ZSPM', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_ZSPM_TAXTYPE') CREATE INDEX IDX_ZSPM_TAXTYPE ON T_TPO_ZSPM ( FTAXTYPE );


 EXEC P_ALTERPK 'PK_TPO_ZSPM_L', 'T_TPO_ZSPM_L', 'FPKID', '1';

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

