/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\HPDI_constraint.sql **/
 EXEC P_ALTERPK 'PK_HPDI_SUBAPISETINDETAIL_L', 'T_HPDI_SUBAPISETINDETAIL_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HPDI_SUBAPISETINDETAIL_L') CREATE INDEX IDX_HPDI_SUBAPISETINDETAIL_L ON T_HPDI_SUBAPISETINDETAIL_L ( FDETAILID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_HPDI_SUBAPISETOTDETAIL_L', 'T_HPDI_SUBAPISETOTDETAIL_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HPDI_SUBAPISETOTDETAIL_L') CREATE INDEX IDX_HPDI_SUBAPISETOTDETAIL_L ON T_HPDI_SUBAPISETOTDETAIL_L ( FDETAILID ,FLOCALEID );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\HPDI_constraint.sql **/
