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

Problem with include

Former Member
0 Likes
985

Hi all,

I am trying to modify an existing program. To place all my new declarations I am creating an new Include. The code in the new Include is as Follows :

*********************************************************

----


  • INCLUDE MZF055TOP *

----


*INCLUDE MZF055TOP.

Data: t_docdata like sodocchgi1,

t_objpack like sopcklsti1 occurs 1 with header line,

t_objhead like solisti1 occurs 1 with header line,

t_objtxt like solisti1 occurs 10 with header line,

t_objbin like solisti1 occurs 10 with header line,

t_reclist like somlreci1 occurs 1 with header line.

data w_email TYPE somlreci1-receiver .

Data: w_tablines type i,

w_docsize type i,

w_atttype like SOODK-OBJTP.

*********************************************************

I placed this include above all the previous declarations. When I am checking the syntax this include gives me an error saying :

<b>REPORT/PROGRAM statement missing , or program type is I (INCLUDE)</b>

one more thing I observed is when I click on the object list pof the actual program I dont see the include folder .

I tried creating includes in many other programs . But I am not sure why this time it is bugging me ?

Experts , Please help me.

Regards,

Ben.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
950

Ben,

Some times INCLUDES will give syntax check errors. Just click ACTIVATE ANYWAY. Once it is activated you can see that in the object list of the main program.

Thanks,

8 REPLIES 8
Read only

Former Member
0 Likes
951

Ben,

Some times INCLUDES will give syntax check errors. Just click ACTIVATE ANYWAY. Once it is activated you can see that in the object list of the main program.

Thanks,

Read only

0 Likes
950

HI Naren,

what you said is true . But why do they give syntax error ? Anyway it is activated. Now can I ignore the syntax error and proceed with my changes ?

Regards,

Daniel

Read only

0 Likes
950

Ben,

I will tell you to ignore the error you had mentioned. But if you get any other syntax errors after activation, they can not be ignored.

Normally when we do a syntax check on a include they will give errors. That is what I know. But after activating the include, do a syntax check on the main program. If that still gives errors then there is an error really.

Thanks,

Read only

0 Likes
950

Make sure that you have a REPORT or PROGRAM statement either in the main program, or in the TOP include. As previously posted, sometimes INCLUDES get messed up and you should activate anyway, once activated all should be ok, but if you get the syntax error again, then there is a problem somewhere.

Regards,

Rich Heilman

Read only

0 Likes
950

HI ,

I have selected activate anyway for the include. After that when I try to activate the program it is not giving me any problem. It is activated. So can I ignore that syntax error which I arised when I am trying to check include alone.

Regards,

Ben.

Read only

0 Likes
950

Yes, if you are not getting the syntax check now, all is good. Just to be sure, go to that include and activate it by itself again.

Regards,

Rich Heilman

Read only

0 Likes
950

Duplicate.

Regards,

Rich Heilman

Read only

0 Likes
950

hi you can activate anyway and use it in your main program...

Cheers,

Abdul Hakim