‎2008 Feb 15 12:26 AM
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,
‎2008 Feb 15 1:02 AM
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
‎2008 Feb 15 4:10 AM
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.
‎2008 Feb 15 3:26 PM
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,
‎2008 Feb 15 3:34 PM
Do you have a main program and some includes? Which include has the REPORT statement?
Rob
‎2008 Feb 15 3:56 PM
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
‎2008 Feb 15 4:24 PM
Hi All,
REPORT statement is in main program. I am only using TOP include to declare DATA and CONSTANTS.
Thanks,
‎2008 Feb 15 4:46 PM
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
‎2008 Feb 15 4:49 PM
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
‎2008 Feb 15 5:02 PM
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.
‎2008 Feb 15 3:31 PM
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
‎2010 Jul 14 3:56 AM
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 .
‎2013 Apr 30 9:43 AM
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.