Procedures are named and stored that may or may not return a value. However, they must return the success or failure at execution time.
Functions are similar to procedures in structure, but they MUST return a single value by using the RETURN-value clause. Functions are also named and can be called from a procedure.
Hope this helps.
Disclaimer: The above comments are solely the opinion of one person and not to be construed as a directive or an incentive to commit fraudulent acts.