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 is a problem ?

Former Member
0 Likes
3,630

I am copying a standard program sapmv75b to a z program and worked on it to get a customized output for my requirements. There are no syntax errors in the main program. However there are syntax errors in the include programs it has. But the program as a whole is working with out any problem.

Do you have any idea if having those syntax errors in includes will be a problem while moving to Quality or any other problems because of this? Any opinions?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,194

Hi Nuren,

Syntax checks in any of the includes may create problems in prod server.

Its always better to get rid of all such errors in dev system.

What type of syntax errors are you geting?

Regards,

Ravi

14 REPLIES 14
Read only

Former Member
0 Likes
3,195

Hi Nuren,

Syntax checks in any of the includes may create problems in prod server.

Its always better to get rid of all such errors in dev system.

What type of syntax errors are you geting?

Regards,

Ravi

Read only

0 Likes
3,194

hi Nuren,

Those errors that you get have no Impact in either development or Testing ... but moving these Programs to Production will definitely will have the impact so try to get rid of those before they are moved to prod server

Regards,

Santosh

Read only

0 Likes
3,194

Hi Ravi/others,

There are the two types of errors I am getting.

1. MV75BF0T - This is one include of standard program sapmv75b. I tested in the std. program also to see if it is giving error there and yes it is !!(You may also want to check yourself also, this is not a warning, it is a error)

2. I have defined an internal table in the main program and used in one of the includes. The main program is not giving any errors but when I went to the include and tested for syntax (where I used this internal table), it says 'Field itab is not known. It is in neither in one of the speciefied tables nor defined in the data statement). So should I define that itab in include also?

Please help with the above two questions.

Thanks.

Read only

0 Likes
3,194

hi,

its better to declare it in include itself if ur using thr!

regards,

keerthi.

Read only

0 Likes
3,194

I am getting the syntax error as well. It is saying P_VKORG is unknown. You may want to check OSS notes about this.

Regards,

Rich Heilman

Read only

0 Likes
3,194

Odd - I didn't think this could happen.

However, since the same thing happens with the standard program, I wouldn't worry about the error in MV75BF0T. It's complaining about a global variable, so I wouldn't move it to an include.

If your internal table is only used in the one form in the one include, you could move its data declaration there; otherwise, leave it.

Rob

Read only

0 Likes
3,194

I am using that internal table in main program also. However I have to use it in one include because I need to fetch some data from there. So, should I declare that internal table in include as well as main program also?

Thanks.

Read only

0 Likes
3,194

If you are getting data in one form and using it in another, then it's global data and has to stay in the top include.

Rob

Read only

0 Likes
3,194

I just noticed that the error has to do with a variable declared in the main program and you say that you have declared your table in the main program. Try moving these to the <b>top</b> include (MV75BF0T). Don't know that this will help but it might be worth a try.

If you are just using the standard includes, you will have to copy, rename and include the copy of MV75BF0T.

Rob

Read only

0 Likes
3,194

Rob,

Do you mean MV75BTOP or MV75BF0T ?

While copying, I copied all includes to z includes(just to make sure that I meet with the updated requirements).

I just moved the itab declaration to MV75BTOP (not MV75BF0T as you suggested) and it is working fine now and no syntax errors reg. itab in any includes. (Except the other syntax error which is also in std. program include is still coming)

Can you please make it clear?

I appreciate.

Thanks.

Read only

0 Likes
3,194

Sorry - I must have misinterpreted my thinking. I meant moving to a copy of <b>MV75BTOP</b>. You could also move all of the other data declarations in the main program to the top include as well. This should get rid of the other syntax errors.

Rob

Read only

Former Member
0 Likes
3,194

HI Nuren,

It is better u check all syntax errors

before moving to quality.

Regards,

Laxmi.

Read only

Former Member
0 Likes
3,194

I don't think a main program will generate if there are syntax errors in an include. Are you sure they aren't just warnings?

Rob

Read only

Former Member
0 Likes
3,194

Hi nuren,

i dont think that the main program will get executed without correcting the errors in include program.

check out if they are warnings as suggested by Rob.

regards,

keerthi.