‎2006 Jun 27 6:47 PM
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.
‎2006 Jun 27 6:49 PM
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
‎2006 Jun 27 6:49 PM
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
‎2006 Jun 27 6:51 PM
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
‎2006 Jun 27 7:12 PM
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.
‎2006 Jun 27 7:14 PM
hi,
its better to declare it in include itself if ur using thr!
regards,
keerthi.
‎2006 Jun 27 7:15 PM
‎2006 Jun 27 7:19 PM
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
‎2006 Jun 27 7:22 PM
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.
‎2006 Jun 27 7:27 PM
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
‎2006 Jun 27 7:32 PM
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
‎2006 Jun 27 7:45 PM
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.
‎2006 Jun 27 7:54 PM
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
‎2006 Jun 27 6:51 PM
HI Nuren,
It is better u check all syntax errors
before moving to quality.
Regards,
Laxmi.
‎2006 Jun 27 7:05 PM
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
‎2006 Jun 27 7:09 PM
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.