SAP Message TT334 - Generation error & function module &

Diagnosis
An error occurred during the generation of the function module.

System Response
The CALL FUNCTION ... calls required for calling a function module in aCATT procedure are generated dynamically in a SUBROUTINE POOL.Generation errors, whose cause is indicated by the return code, canoccur:
1 RFC-COMMUNICATION_FAILURE
11 FM_NOT_FOUND
12 NAMETAB_FAULT
13 REF_FIELD_MISSING
14 REF_STRUCTURE_MISSING
15 FM_GET_ERROR
21 FM_GROUP_NOT_FOUND
22 FM_INCLUDE_NOT_FOUND
23 FM_GEN_INTERNAL_ERROR
31 SYNTAX_ERROR
32 GENERATE_ERROR
41 PERFORM_ERROR
42 PERFORM_NO_PROGRAM
43 PERFORM_NO_FUNCNAME
44 OTHERS

Procedure
Error code 1:
Check the RFC destination which is output in the procedure data. Thedestination can be processed with SM59.
Error code 11:
The function module to be called does not exist in the CATT executionsystem, or is not active. If you can do without this functionality, youcan deactivate its call in the CATT procedure or module. In general,however, the function module is required, so it must be made availableand active in the system.
Error codes 12 .. 23:
The function module has parameter interface and Data Dictionarystructure attributes which prevent the generation of the interface. Inthis case, control the function module with SE37 for the Dictionarydata and table structures used (SE11).
Error codes 31 .. 32:
In the case of syntax errors or generation errors, the program codewhich could not be generated is stored in the program RSCATFU1 forcontrol. This program can be displayed with the ABAP editor SE38 and beanalyzed by syntax check for causes of error, after the CATTprocessing.
Error codes 41 .. 44:
The function calls were successfully generated, but the values requiredto perform the function could not be passed. The only currently knownreason for this concerns the release of system spaces when the systemis heavily loaded.