It started in Punjab in the late 1980s and in Jammu-Kashmir in 1994:
Construction of the fences began in the late 1980s in the state of Punjab when India faced an armed Sikh separatist uprising, and weapons were being smuggled from Pakistan. In 1994, India pushed ahead with the construction of fences along the border of Jammu and Kashmir. The building process was stopped because of relentless Pakistani fire but resumed again along the international border in Jammu in early 2001. As of November 2009, of the 2,044 kilometers identified for fencing along the India-Pakistan border, 1,916 kilometers had been completed, 1,862 kilometers had been floodlit and 148 kilometers of planned floodlighting remains to be completed.
The source of this quote has footnotes but some of the links are dead.