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

Error in function module...

Former Member
0 Likes
371

Hi All,

i am Creating function module...while activating it it is giving me this error msg.

My code is this.

FUNCTION ZGSTT_YARITHMATIC.

*"----


""Local Interface:

*" IMPORTING

*" REFERENCE(A) TYPE I OPTIONAL

*" REFERENCE(B) TYPE I OPTIONAL

*" EXPORTING

*" REFERENCE(C) TYPE I

*"----


C = A + B.

write : 'Total of A + B' , C.

ENDFUNCTION.

Error while Activation.

REPORT/PROGRAM statement missing, or program type is INCLUDE.

Regards,

yunus

3 REPLIES 3
Read only

Former Member
0 Likes
340

Hi,

Go to the function group in SE80 and try to activate the function group..

Thanks,

Naren

Read only

Former Member
0 Likes
340

Hi,

As this is a function module there should be a zprogram to call this function in that. You cannot directly execute this. SO write program and call the created function module in that.

Regards,

Ram

Read only

Former Member
0 Likes
340

Hi,

This is bcz the Function Group is not activated.

Goto the attributes TAB and check Function Group name.

Goto SE80 and select Function Group and enter the Function group name.

Activate it and then try to activate the FM.

Best regards,

Prashant