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

Syntax error in Include Programs

Former Member
0 Likes
3,329

Hi Group,

created an include.While syntax check i got the error saying REPORT/PROGRAM statment mising or program type is I(INCLUDE).But i could activate the include!? bug in SAP or something else???

Regards,

Bikash

7 REPLIES 7
Read only

Former Member
0 Likes
1,808

Hi

You can active your include, but you can check it only if you place it in a main program.

Max

Read only

Former Member
0 Likes
1,808

hi,

that is not a bug. it will generally comes when you do in syntax check.

if you find any other errors then check it,or else there are no bugs.

Regards

vijay

Read only

Former Member
0 Likes
1,808

Hi bikash,

1. No its not a bug.

2. Its default behaviour.

3. What u do is this :

(i suppose u have not used this include

in any other program)

a) while trying to activate again, it will give the same error.

b) NOW, in another Z program,

include this include,

and activate this Z program. (without any errors)

It will get activated

c) now once again try to activate your include.

(this time it will get actviated

without any message box)

regards,

amit m.

Read only

Former Member
0 Likes
1,808

hi bikash,

u would have missed the report statement in the report where u include ur INCLUDE statement..

check it out..

Read only

0 Likes
1,808

Hi Bikash,

For the syntax check to produce valid results, you must check the program in which the include occurs and not the just the inclde.

Regards,

Suresh Datti

Read only

Former Member
0 Likes
1,808

Hi Bikash,

I hope that your Include is the part of a report/module pool program.

Do the following:

1) Check whether you have written a Include "<include name>" statement in your report/module pool program.

2) If no then write the above include statement in your program.

3) Goto SE80, right click on the report/module pool program and select syntax check. You will not get any error.

4) Most Important thing, whenever we do a syntax check for any Include alone, system always give error saying "REPORT/PROGRAM statment mising or program type is I(INCLUDE)". Don't worry with this error message.

Hope it helps.

Regards,

Neeraj Gupta

Read only

Former Member
0 Likes
1,808

Hi,

Activate both the Include and Main program together.

Chk if include name has ben declared in the Main prog.

Regards,

Anjali