ENDFUNCTION.
The ENDFUNCTION statement closes a function module started with FUNCTION.
Creating Function Modules