‎2008 Apr 02 6:18 AM
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.
‎2008 Apr 02 6:21 AM
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.
‎2008 Apr 02 6:21 AM
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.
‎2008 Apr 02 6:33 AM
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).
‎2008 Apr 02 6:34 AM
are you saying that when you add the "include <include name>" statement in your standard program, you are unable to activate it??
‎2008 Apr 02 6:37 AM
‎2008 Apr 02 6:40 AM
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.
‎2008 Apr 02 6:47 AM
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.
‎2008 Apr 02 6:53 AM
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......
‎2008 Apr 02 6:53 AM
"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.
‎2008 Apr 02 6:59 AM
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) ?
‎2008 Apr 02 7:07 AM
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
‎2008 Apr 02 7:08 AM
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...
‎2008 Apr 02 8:01 AM
Thank you very much for your answer. The problem was that my include line was the first line before the top include.
Silly me
‎2008 Apr 02 6:22 AM
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.
‎2008 Apr 02 6:22 AM
Hi,
u just activate the main program from se38 and while activating u just select all the includes which are not active.
rgds,
bharat.
‎2008 Apr 02 6:50 AM
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.
‎2008 Apr 02 6:53 AM
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.
‎2008 Apr 02 6:55 AM
‎2008 Apr 02 8:45 AM
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