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

Syntax error in function module

Former Member
0 Likes
1,979

Hi,

I wrote a custom function module. When i did the syntax check, I am getting the following error "REPORT/PROGRAM statement missing, or program type is INCLUDE".

Can you provide input on this please?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,418

Hi,

Is your Funciton Group active ? If not, first activate your function group (i.e. main program) and then go for activation or syntax check of your custom FM. I hope activation of the Function Group will solve your problem.

To activate the Function Group, goto Transaction SE80.

Reward points if the answer is helpful.

Regards,

Mukul

Message was edited by:

Mukul R. Kulkarni

10 REPLIES 10
Read only

Former Member
0 Likes
1,418

hi,

have u created fm using se37 ? can you place ur code here...

Regards,

Read only

Former Member
0 Likes
1,418

go to se80 : give the funtion group name and activate from there.

then you will not get the error.

or go to the main program, by clicking goto-> main program. and try to activate from there.

regds,

kiran

Read only

Former Member
0 Likes
1,418

Hi Krishen,

The program will still get activated and work fine.

Just execute it. It will work fine

Read only

Former Member
0 Likes
1,418

u need to write a function module using SE37...here first statement should be

FUNCTION <program name>.

Read only

Former Member
0 Likes
1,418

I think you got this error while activating and not while syntax check. Anyway, just do the syntax tax in the FM. FM will be activated in the calling program.

Thanks,

Santosh

Read only

Former Member
0 Likes
1,419

Hi,

Is your Funciton Group active ? If not, first activate your function group (i.e. main program) and then go for activation or syntax check of your custom FM. I hope activation of the Function Group will solve your problem.

To activate the Function Group, goto Transaction SE80.

Reward points if the answer is helpful.

Regards,

Mukul

Message was edited by:

Mukul R. Kulkarni

Read only

ferry_lianto
Active Contributor
0 Likes
1,418

Hi Krishen,

You need to activate the function group/main program using transaction SE80.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,418

Hi Krishen,

At least Generate the function module using se37.

Hope it helps.

Points reward, if helpful.

Read only

0 Likes
1,418
Read only

0 Likes
1,418

Please create a FM from SE37.

You might have not created it thats why it is giving u error