/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\AR_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_AR_SALOUTWFRECORDENTRY_E', 'T_AR_SALOUTWFRECORDENTRY_E', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_AR_SALOUTWFRECORDENTRY_E' AND KSQL_INDNAME = 'IDX_AR_SALOUTENTRY_E_FID') CREATE INDEX IDX_AR_SALOUTENTRY_E_FID ON T_AR_SALOUTWFRECORDENTRY_E ( FID );



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