SAP Message R3118 - Incorrect object type & transferred to function &

Diagnosis
An ABAP function module has been called up incorrectly.

System Response
The function has been terminated.