on ‎2004 Mar 25 11:24 PM
Hi,
I am new to ABAP, and am trying to create function module in my function group. But when I test function module, its giving me an error:
report/program statement missing , program type is I (include).
later I just wrote another function module with a simple write statment and then tested that,even then am getting the same error.
Can anyone please tell me whats the problem.
-Jaya
Request clarification before answering.
hey everyone
i am new to abap . i also got the same error
report/program statement missing , program type is i (include) while activating the function module. will any one help me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As the term include says they are only a part of a program. Most often an include can NOT be tested without the context of the program used.
It would be nice if the development environment would tell this in advance and ask for the concrete main program. Often the EU behaves as expected but sometimes not.
In these cases the (extended) syntax check cannot work and send an according message. You can bypass this if you start the check (always) on the base include of the main program, e.g. SAPL<fugr_Name> for function groups.
Kind Regards
Klaus
Hi All,
Thanks for all the clues u guys provided me.Based on all those clues I figured out whats the mistake I was doing.
This time I tried creating a function module in se80.When I was trying to activate function module first I had the same problem.
Then I tried to activate the function group first and then activated the function module, then it started working.Once the group was activated, all the subsequent function modules that I was adding to the above activated group were getting activated at the first shot itself.
Once again I want to thank all of you.
Jaya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jaya,
I too tried to do the same steps as you did, but its not working.
I created the function group first from SE80, tried to activate, but failed with error.
Created the function module and while activating it, that too failed with error "report/program statement missing ".
Can you please explain me the steps you followed to create a function module/group?
Hi Venkat,
You need to activate the function group first. Once that is done u can create n no of function modules and activate them easily.
Activating the function group means activating the main program in the function group along with any other includes in the main program. Make sure all the includes are activated.
Hope this helps.
Kapil.
Hi,
Let me explain you what I am actually doing.
1. Fist I went into SE37.
2. Created a Function Group by using GoTo->Create Function Group.
3. I created a function module and assigned the Function Group that I created, this I am doing when I click Create button.
4. Then I am inside function module where the following lines were already there.
function zjfm.
*----
*local interface
*----
endfunction.
5. I added 1 lineand the function module became
function zjfm.
*----
*local interface
*----
write 'hi'.
endfunction.
6. Then I checked syntax errors in function module, it says no syntax errors.
7. Then I clicked Ctrl + F3 in function module to activate and it throws the ERROR: report/program statement missing , program type is I (include). row 2 and header says syntax error in main program.
I also tried in se80 and i am geting the similar error. Not sure if i am following the correct procedure in creating Function Module.
Thanks
Jaya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am testing in SE37. When i am cheking the sytax it says no syntax errors. I am getting the error while i am making the function module active. It is saying error in main program row 2 with the following description
report/program statement missing , program type is I (include).
When i looged at the main program all it has is 2 includes.
My function module has the following content
function zvj15.
write 'hello'.
endfunction.
I am using 4.6b. I will appriciate your help.
Message was edited by: JAYALAKSHMI MAREEDU
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I take it the function group and module activates ok, can i also just ask how you are testing the function module? if you are not doing already try testing the FM via SE37, do you still gat the same message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 8 | |
| 7 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.