tranforming a procedure into function

Database

tranforming a procedure into function

I have a procedure in Teradata, which I want to execute at the select statenent.
For that I assume I have to call my procedure into a function and then use query such as

Sel schema.user_func(input) from table1;

Can anyone please help me how to do that. Suppose my procedure name as proc1 with two arguments.