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: 

function module not activated

Former Member
0 Kudos

i craeted one function module, i check for syntax.

it showed no errors, but wen i am activating it is throwing error

report/program statement missing, or program type is i include.

i am using ecc 6.0

thanks in advance

siva

8 REPLIES 8

Former Member
0 Kudos

Check whether the statment FUNCTION fun-name is present in the beginign of the FM.

Former Member
0 Kudos

Hi Siva,

You need to activate the complete function group containing this FM..

Try to activate the function group first...

Thanks and Best Regards,

Vikas Bittera.

**Reward if useful**

Former Member
0 Kudos

Hi,

1. While activating , It opens one BOX(Popup) Showing all Inactive Programs.

Select Function related Includes and then activate it in bunch.

2. It might be error of some other include. So double click on Error. Check where it takes you and solve it.

Reward if useful!

Former Member
0 Kudos

hi

may by function group is not activated first time u have to have to activate the function group related to that function module try this .

Former Member
0 Kudos

hi siva,

Check your function group is activated or not.

From GOTO->Function Group -> display

Write your function group name and <b>click main program</b> and activate it.

and if it gives problem dbl click on its <b>include files</b> and <b>activate</b> them or <b>actvate anyway</b>

after actvating your function group activate your FM.

Reward if Useful,

Regards,

Sachin.

Former Member
0 Kudos

Hi,

May be for this case, u might not have used REPORT statement. Directly without Report statement u might have activated. That's why u got error. Use report statement and run it. Or ur program may be of type Include. Include programs directly u can't run. These Includes might be used by some other program. Through that, program only u can run this.

Try and reward if found useful.

Former Member
0 Kudos

Hi Siva Prasad,

this is due to... while creating a function module SAP will automatically creates 2 includes. You need to activate those two includes before activating your function module.

Goto Tcode SE80 and under function group, enter your function group name. then on left side you will get one window. Right click on function group name and press activate.

Reward If Helpful.

Regards

--

Sasidhar Reddy Matli.

0 Kudos

Mr Sasidhar..

thanks for ur reply..

i got the same error and ur solution worked for me..

Thanks

Sai Reddy