Hello Gayatri,
In SAP if you cannot spy elements than just make the path dynamically and update the rows or columns.
What I did is:
1. Spied somehow a nearby element.
2. Try playing with the numbers in the spy path.
I am not quite sure what are you trying to spy, if you can put some pictures.