Yes it is possible..
You have to create on procedure on database it self and then import that into universe by creating universe with procedure option while creating new universe.
All the functions and procedures you can add in single universe and at the run time you can pass values from webi reports using @prompt and in return yu can get your desired output by calling that function or procedure.