Message Oracle PLS-00655 - only functions can be declared as PIPELINED

ERRORonly functions can be declared as PIPELINED
CAUSEuser is trying to declare a procedure to be pipeliend function
ACTIONdeclare a function instead of a procedure to be a pipelined function