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

Module pool activation problem (i will reward points !!!)

former_member205645
Participant
0 Likes
2,070

Hello Gurus, i copied a standard Sap module pool program (SAPMM08N), activated it, and now i want to insert a new include (my own). Before inserting the new include it has been activated.

The problem is that when i try to activate the module pool i get an error message saying:

REPORT/PROGRAM statement missing, or program type is I (INCLUDE)

.

I checked and my include is type I. I don`t understand.

I have tried to activate the module pool using both se38 ans se80.

Anyone please help.

1 ACCEPTED SOLUTION
Read only

divya_nayudu
Participant
0 Likes
1,951

That error msg is usually comin when we try to activate an include program... it always come.. try to right cilck on program in se80 (on left panel) n try activatin from there. it should work. Includes cannot b activated. jus syntax chck it n activate the main program usin that include. hope it helps.

18 REPLIES 18
Read only

divya_nayudu
Participant
0 Likes
1,952

That error msg is usually comin when we try to activate an include program... it always come.. try to right cilck on program in se80 (on left panel) n try activatin from there. it should work. Includes cannot b activated. jus syntax chck it n activate the main program usin that include. hope it helps.

Read only

0 Likes
1,951

I have alerady tried that, my include is active as well as the module pool. The problem ocurrs when i am inserting the include in the module pool. I tried everything (modified the attributes too).

Read only

0 Likes
1,951

are you saying that when you add the "include <include name>" statement in your standard program, you are unable to activate it??

Read only

0 Likes
1,951

Yes, i get the error message.

Read only

0 Likes
1,951

After inserting your include name in program (in se80), save it...right click on program name on left panel n click on activate..if its module pool, it should not give tht msg tht ur getting...To the best of my knowledge, tht msg comes only when u activate an include.

Read only

0 Likes
1,951

Everything is active, and i am still getting the message in se80 too.

Here is the code in my include:

*&---------------------------------------------------------------------*
*&  Include           ZI_MIR6
*&---------------------------------------------------------------------*

module zi.
  break ionutc.
endmodule.

I am calling "zi" from a PBO.

Read only

0 Likes
1,951

Hi,

I also copied the program SAPMM08N into ZSAPMM08N and then i copied all the includes in the SAPMM08N

to Z includes.

Then i typed a new include statement.

INCLUDE ZTESTING.

i double clicked on it and it asked me if i want to create a new include, i choose yes and a new include was created.

then all i had to do is right click on the main program and actitvate it

it never showed the error which your talking about......

Read only

0 Likes
1,951

"Module zi " is under PBO so shouldn't you mention the word "OUTPUT" after the module name? Im not sure if its mandatory. And like everyone said, select includes from list n activate. if you include is syntactically correct, there is no reason for error to occure durin activation, cause of ur include.

Read only

0 Likes
1,951

So i have to copy all of the includes. I just didn`t want to do that since i don`t need to modify any of them.

And i have also tried with the OUTPUT statement and i get the same error. Should i try now to copy all the include (there are many) ?

Read only

0 Likes
1,951

Hi,

I have copied and included the include in ZSAPMM08N(Copyof Standard Program)

It is Activated and throwing no error.

So it shouldnot have any problem .

So try to Copy the Stndard program Once Again.

And Select To copy all things except the includes.

Then add the include where all the include are located.

lIke



INCLUDE mm08nft0.

INCLUDE MM08NFF0.

INCLUDE MM08NFZ0_KENNZEICHEN_SETZEN.
include ZI_MIR6.

and try to activate then.

Regards

Sandipan

Read only

0 Likes
1,951

U dont Manually Need to copy all the includes.

IN se80 when u have that standard program SAPMM08N just right click on it and select copy

then there will be a pop-up window, in that select the checkbox for INCLUDE ....

You dont actually need to create the Z includes but you need to copy all the includes...

Read only

0 Likes
1,951

Thank you very much for your answer. The problem was that my include line was the first line before the top include.

Silly me

Read only

Former Member
0 Likes
1,951

Hi,

If you try to activate only include it will give you error. So while activating select include as well as main program and try to activate both simultaniously.

Read only

Former Member
0 Likes
1,951

Hi,

u just activate the main program from se38 and while activating u just select all the includes which are not active.

rgds,

bharat.

Read only

Former Member
0 Likes
1,951

Hi Ioan,

Select your main program, save, check and activate it.. when u do this, popup screen will come where you select all your include program along with your main program and screens(if you have created them) and activate..

Regards,

Vikram Salvi.

Read only

0 Likes
1,951

When i check it i get the same error message.

And on the activation popup i have only the name of the module pool (main program), no other object.

Read only

Former Member
0 Likes
1,951

check in the attributes if ur program is of type M

Read only

Former Member
0 Likes
1,951

Step 1 :go to se38

Step 2 : enter your program name SAPMM08N

Step 3 : copy it into SAPMZ08N (SAPMZ customized module pool ) with all includes, screen , doc and variants etc

Step 4 : Go to se80 nad create your include where you wnat to in the code

step 5 : activate the code with all inlude to be activated including yours

Step 6 : create a new customized transaction with what screen to start with