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

Error: REPORT/PROGRAM statement missing , program type is I (include).

manoj_goyal2
Participant
0 Likes
7,411

Hi,

I have created a REPORT Program (Z Program) and also created a TOP INCLUDE. I am NOT using Function module. When I tried to syntex check the INCLUDE, system is giving

following error:

REPORT/PROGRAM statement missing, program type I (Include).

Can you help me in resolving this error.

Currently TOP include has only one statement to declare a Constant.

Thanks,

12 REPLIES 12
Read only

Former Member
0 Likes
2,477

Hi,

When you do the syntax check of only include you get this message.

Go to Transaction SE80 and there do the syntax check of the whole program then you will not get this message.

Regards,

Atish

Read only

Former Member
0 Likes
2,477

hi,

take your program in se80.

double click on the program name. Right click on it and press Activate. All the include will get activated and the problem will get solved.

Regards,

Renjith Michael.

http://www.sourceveda.com/

Read only

0 Likes
2,477

Hi,

I used SE80 and activated the main program and TOP include. It activated successfully but when I syntex check in TOP include, it still saying : REPORT/PROGRAM statement missing, or program type is I(Include) .

Any other idea to remove this? My client is not going to accept this error.

Thanks,

Read only

0 Likes
2,477

Do you have a main program and some includes? Which include has the REPORT statement?

Rob

Read only

0 Likes
2,477

Hi,

I believe it is just a warning and not an error message. You should still go ahead and be able to activate it and execute the main program.

Thanks ,

Sanjiv

Edited by: Sanjiv Janardhanan on Feb 15, 2008 4:57 PM

Read only

0 Likes
2,477

Hi All,

REPORT statement is in main program. I am only using TOP include to declare DATA and CONSTANTS.

Thanks,

Read only

0 Likes
2,477

Try activating them both. When you get the error, say 'activate anyway'. After that, you should be able to edit, syntax check and activate either without error.

Rob

Read only

0 Likes
2,477

Hi Rob,

I have activated both successfully. After activating I did the syntex check. It is still give me the same error message.

Thanks,

minisap

Read only

0 Likes
2,477

hi minisap,

Instead of syntax checking.Just click on activate buttom a window displays where u can find all the includes in ur program just selct all of them and click on enter .All the includes get activated and u will not get that error.

Read only

Former Member
0 Likes
2,477

Hi,

The best solution is write the content in that include in between the form and endform and declare it as a perform which will be in your main program so your problem will be solved.

Thanks.

Sarada

Read only

0 Likes
2,477

Hi guys:

You can solve this problem use this way . first put the Include_top at the top line. and put the program name into the include_top.

Then , it's ok .

Read only

Former Member
2,477

Dear all,

The include name should not end with 'TOP'.

For example The include name should not be ZPQR_TOP. Please change the include name from ZPQR_TOP to ZPQR_DECLN. I think you will not get that error.

Next solution is write the REPORT statement inside the ZPQR_TOP.

I think it will help you

Sumit.