/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\IM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_IM_MREQOUTBILLENTRY_L', 'T_IM_MREQOUTBILLENTRY_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IM_MREQOUTENTRY_L') CREATE INDEX IDX_IM_MREQOUTENTRY_L ON T_IM_MREQOUTBILLENTRY_L ( FENTRYID ,FLOCALEID );

  EXEC P_ALTERPK 'PK_T_IM_PRODUCTINBILLENTRY_L', 'T_IM_PRODUCTINBILLENTRY_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IM_PRODUCTINENTRY_L') CREATE INDEX IDX_IM_PRODUCTINENTRY_L ON T_IM_PRODUCTINBILLENTRY_L ( FENTRYID ,FLOCALEID );


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