Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

*Can we call a Standard Function Module inside a Zfunction module ?*

Former Member
0 Likes
318

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. " +

1 REPLY 1
Read only

Former Member
0 Likes
280

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.