query regd. taking leave of absence while on H1B and returning to india

when on h1b can we take leave of absence (that is leave without pay) and return to India for 6 months. will that effect any h1b extension or green card processing?