HI Senthil,
the best approach is to use what Nick recommends which is create a function that calls the stored procedure.
then you write a quiery in your gel that calls the function and you will get the results you are looking for.
This is exactly how we got around the autonumber issue you are having.
the other option you have for the autonumber is to read the value from the autonumber table, then as soon as you read, execute the stored proc (this will increment the value by one as soon as you grab it). Of course option 2 has a small possibility of error as if 2 actions are happening at the exact time, it is possible that 2 actions get the same ID.
be it, it is very small possibility, i have seen it.
hope this helps
Federico