2008 Feb 21 8:18 AM
Hi,
I have a report with two includes. In both the Include Programs,i am getting a error message 'REPORT/PROGRAM statement missing, or program type is I (INCLUDE).'
Eg.
Report reportname. " program type Report
include program1. " program type Inlude
include program2. " program type Inlude
start-of-selection.
Please Help.
-
Thanks & Regards,
Jayapal.
2008 Feb 21 8:20 AM
Hi Jayapal,
Are you performing syntax check on your INCLUDE programs using Crtl + F2. That wont work and it will return the message you are getting.
Instead to perform syntax check on includes use Crtl + F7
and activate the program.
Cheers,
Aditya
Hi Jaypal,
since you are checking syntax for Include report it will give you this error.
you can directly activate your include errespective of this error.
regards,
vikas.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 21, 2008 4:30 PM
2008 Feb 21 8:20 AM
Hi Jayapal,
Are you performing syntax check on your INCLUDE programs using Crtl + F2. That wont work and it will return the message you are getting.
Instead to perform syntax check on includes use Crtl + F7
and activate the program.
Cheers,
Aditya
2008 Feb 21 8:21 AM
Hi Jaypal,
since you are checking syntax for Include report it will give you this error.
you can directly activate your include errespective of this error.
regards,
vikas.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 21, 2008 4:30 PM
2008 Feb 21 8:24 AM
Hi,
This error will come when you try to execute the non executable program .
May be the type of the program will be module pool. U cannot execute this program directly.
Instead assign a tcode to this program and run the tcode.
Hope it will solve your problem.
Regards
Vadi
2008 Feb 21 8:32 AM
Thanks Experts.
Is there any way to avoid this error while checking the syntax using CTRL + F2 ?
My client is insisting on clearing the syntax error.
2008 Feb 21 8:56 AM
Hi,
As I mentioned in the first reply, Please use Crtl + F7 to do the syntax check.
/Aditya
2008 Feb 21 9:01 AM
Hi ,
This will not be any problem Jay. Since it is a Non executable program it will always show that error. You can activate the program.
Do one thing create a test report program and call this include program in that report and execute. It will show you the result.
I've created an example program for this, please have a look
My Report Program :
REPORT ZTEST.
INCLUDE ZTESTINCLUDE.
My Include Program :
&----
*& Include ZTESTINCLUDE
&----
data : a type i,
b type i,
c type i.
a = 3.
b = 2.
c = a + b.
write : / 'Result is :' , c.
Try executing the Report it will show you the result 5. Tell the client this is not a problem. Check in the attributes of your Include program ( program1 ) if it is of type Include.
Regards,
Sai
2008 Feb 21 11:13 AM
Thanks Experts.
Main Program is executing fine. thats not an issue.
since the client is going for an upgrade to ECC 6.0 , they expect us to clear the error in the include program.
Edited by: Jayapal on Feb 21, 2008 12:14 PM
2008 Feb 21 8:28 AM
jayapal,
While creating interfaces pls. add type I to that interface.
2008 Feb 21 8:28 AM
2013 Nov 26 6:10 AM
Add statement REPORT ######### as first line of your TOP. In the Report itself, ensure the TOP file is listed first.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |