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

REPORT/PROGRAM statement missing.

Former Member
36,494

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.

1 ACCEPTED SOLUTION
Read only

Former Member
14,308

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

10 REPLIES 10
Read only

Former Member
14,309

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

Read only

VikasB
Active Participant
0 Likes
14,308

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

Read only

i048168
Product and Topic Expert
Product and Topic Expert
0 Likes
14,308

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

Read only

Former Member
0 Likes
14,308

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.

Read only

Former Member
0 Likes
14,308

Hi,

As I mentioned in the first reply, Please use Crtl + F7 to do the syntax check.

/Aditya

Read only

Former Member
0 Likes
14,308

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

Read only

Former Member
0 Likes
14,308

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

Read only

Former Member
0 Likes
14,308

jayapal,

While creating interfaces pls. add type I to that interface.

Read only

Former Member
0 Likes
14,308

active the two include programs

Read only

Former Member
14,308

Add statement REPORT ######### as first line of your TOP. In the Report itself, ensure the TOP file is listed first.