Oracle Message PLS-00629 - PIPE statement cannot be used in non-pipelined functions

ERRORPIPE statement cannot be used in non-pipelined functions
CAUSEA PIPE statement was used in a non-pipelined function.
ACTIONUse PIPE statement only in pipelined functions.