‎2011 Feb 12 6:12 PM
Can anyone please help me know whether we can call a Standard Function Module inside a Zfunction module ?
I tried the same (No syntax error) BUT when i activate the zFunction Module it throws the error:-
+'' REPORT/PROGRAM statement missing, or program type is INCLUDE. " +
‎2011 Feb 12 6:31 PM
Yes, I got the Answer -
We Can we call a Standard Function Module inside a Zfunction module.
But we need to make sure that the Function Groups are activated.
FUNCTION ZFM_TEST_NESTED_FM.
*"----
""Local Interface:
*" EXPORTING
*" REFERENCE(EX_CONVERT_UPPER_CASE) TYPE STRING
*"----
CALL FUNCTION 'TERM_TRANSLATE_TO_UPPER_CASE'
EXPORTING
LANGU = SY-LANGU
TEXT = 'gaurav'
IMPORTING
TEXT_UC = EX_CONVERT_UPPER_CASE
EXCEPTIONS
NO_LOCALE_AVAILABLE = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFUNCTION.