Hi,
1) For PF, you can assign the appropriate trust id (of HO) in infotype 587 for those employees. You may have to configure trust id's & rates in views v_t7inf1, v_t7inf5, v_t7inf7 etc, and also configure feature 40EPF appropriately.
2) For ESI, you can use user exit EXIT_HINCALC0_001 (in the enhancement HRINCLWF) to change the ESI grouping (configured in V_7IN0P_ESI)
The IMG tcode for this is:
Payroll India -> Statutory social contribution -> ESI User Exit: Determine PSG for ESI & LWF.
Your ABAPER can help in implementing this user exit.
regards,
Bala.