Application Development 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: 

Funct mod

Former Member
0 Kudos

Hi,

Now i am getting this error.

when I am checking for syntax error iam getting this error. This is the program that is present in function group. when i tried to activate that also I got the error that Report/program statement is missing.

Program SAPLZAC_GRP 2

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

FUNCTION ZAC_CALCULATE.

*"----


""Local Interface:

*" IMPORTING

*" REFERENCE(IM_NUM1) TYPE I

*" REFERENCE(IM_NUM2) TYPE I

*" REFERENCE(IM_OPER) TYPE C

*" EXPORTING

*" REFERENCE(EX_RESULT) TYPE I

*"----


CASE IM_OPER.

WHEN '+'.

EX_RESULT=IM_NUM1+IM_NUM2.

WHEN '-'

EX_RESULT=IM_NUM1-IM_NUM2.

WHEN '*'

EX_RESULT=IM_NUM1*IM_NUM2.

ENDCASE.

ENDFUNCTION.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Your program must be containing certain Includes which are not activated.

Activate each Include separately & then activate the entire program.

Hope this helps.

reward if helpful.

Regards,

Sipra

4 REPLIES 4

amit_khare
Active Contributor
0 Kudos

You cannot check syntax for anything apart from Reports.

Directly Activate it it will do the syntax check also.

Regards,

Amit

Reward all helpful replies.

Former Member
0 Kudos

Try to activate entire Function Group,

Use SE80 to get entire group, and then activate entire group

Thanks,

Chetan Shah

Former Member
0 Kudos

Hi,

Go to SE37 , GOTO->FUNCTION GROUP->DISPLAY GROUP.

Give your group name and then go to main program.

And Activate it.

Reward if useful!

Former Member
0 Kudos

Hi,

Your program must be containing certain Includes which are not activated.

Activate each Include separately & then activate the entire program.

Hope this helps.

reward if helpful.

Regards,

Sipra