07-10-2007 7:49 AM
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.
07-10-2007 7:55 AM
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
07-10-2007 7:52 AM
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.
07-10-2007 7:53 AM
Try to activate entire Function Group,
Use SE80 to get entire group, and then activate entire group
Thanks,
Chetan Shah
07-10-2007 7:54 AM
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!
07-10-2007 7:55 AM
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