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

Funct mod

Former Member
0 Likes
512

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
Read only

Former Member
0 Likes
478

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
Read only

amit_khare
Active Contributor
0 Likes
478

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.

Read only

Former Member
0 Likes
478

Try to activate entire Function Group,

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

Thanks,

Chetan Shah

Read only

Former Member
0 Likes
478

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!

Read only

Former Member
0 Likes
479

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