Oracle Solution for Error ora-31601

Solution for Oracle Error ORA-31601

ORA-31601: Function string cannot be called now that fetch has begun.

What triggered the Error:

The function was called after the first call to FETCH_xxx.

What should we do to fix it:

Correct the program.