Hi Divyank,
When you mentioned "Read / Write", do you need DDL (like Create table statements) or DML (like INSERT / UPDATE / DELETE to a table) to be called in the procedure.
DML can surely be done, regarding DDL, you may have to look into Dynamic SQL using EXEC SQL. Please keep in mind that Dynamic SQL has impact on the performance.
You can also look into the thread http://scn.sap.com/thread/3353571, which may be helpful.
Can you please post your code with the error message to understand the issue in more details.
Regards,
Ravi