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

Function module is not activated properly

Former Member
0 Likes
1,609

Hi all,

I am trying to create a function module which is an RFC enabled.

Steps:- 1) Created a function group.

2) Created a function module and assigned the above created function group and tried to activate function module its giving an error saying that "REPORT/PROGRAM statement missing, or program type is INCLUDE"

What is the problem..all our function group and function modules are created locally "Z".

Any help which solves the problem will be fully appreciated with max points.

Cheers,

Karthick

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,459

Hi karthik,

Just goto SE80 transaction code, then select the function group, and give the Function group name and right click on the function group and select ACTIVATE, then that will be activated. then activate the Function module

Regards

Sudheer

9 REPLIES 9
Read only

Former Member
0 Likes
1,459

Hi

I am sorry i have given that reply by mistake, even i got the same mistake just follow this procedure.

1. Create the Function Group

2. Then go to menu Environment->Inactive Objects.

3. Then in the local object you will have function groups select ur group right click and activate that group.

4. Come back and activate ur function module you will not get that error.

Ur problem will be solved.

Regards

Haritha.

Message was edited by:

Haritha

Read only

Former Member
0 Likes
1,459

Hi,

Activate Function Group.

Then Activate FM.

Thanks,

Raju

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,459

Hi ,

pls. try to activate the function group as whole first.

Read only

suresh_datti
Active Contributor
0 Likes
1,459

Did you create the function module using SE37 or from SE80 ? What is the first statement in the source code of your function module.. it should be

FUNCTION <function_name>.

~Suresh

Read only

0 Likes
1,459

Hi Suresh,

I created function module using SE37.

<<<<What is the first statement in the source code of your function module.. it should be

FUNCTION <function_name>.>>>

Ofcourse we get it automatically?

Cheers,

Karthick

Read only

Former Member
0 Likes
1,459

u need to include atleast either 1 import or export or table parameters.

Read only

Former Member
0 Likes
1,459

Activate the Function group as well.

Read only

Former Member
0 Likes
1,460

Hi karthik,

Just goto SE80 transaction code, then select the function group, and give the Function group name and right click on the function group and select ACTIVATE, then that will be activated. then activate the Function module

Regards

Sudheer

Read only

0 Likes
1,459

Hi Sudheer,

Really great..My problem was solved.

Every one were suggesting the same activate Function group..but i was trying to activate it..but i am getting error...

You answer right click on FG and activate solved the problem.

Thank you very much for the help..i am awarding max points thanks...

Cheers,

Karthick