09-12-2007 10:24 AM
Hello Friends.
I have a program dump which I need help with.
The dump shows the following message:
The following syntax error occurred in program "SAPMZD01 " in
include "MZD01TOP
" in
line 109:
"Statement is not accessible."
If I go to mod.pool SAPMZD01, I can see that the include MZD01TOP is there.
If I try to "compile" MZD01TOP I get the error message statement not accessible.
If I try to set a breakpoint in SAPMZD01, I get the message: "Breakpoint was not set due to a generation error for SAPMZD01"...
Does anybody know how to fix this problem?
best regards Ballo
09-12-2007 10:29 AM
Hi..
Check these things:
include MZD01TOP
1. include MZD01TOP must have the First statement as
PROGRAM <MODULE POOL>.
2. include MZD01TOP should not have any Executable statements .. Only Declarations are possible.
3. include MZD01TOP must be called as the First statement in the Module pool
4. Check whether all the Includes of the Modulepool are Active.
<b>Reward if Helpful</b>
09-12-2007 10:28 AM
hi ,
is the name of the program SAPMZD01 right???I tried it on my server, and the system says that this prog does not even exist.
Check your prog name
thanks
nayan
09-12-2007 10:29 AM
Baljinder,
I am using 4.7 wherein I was not able to see any program with such a name.Moreover it is a SAP Standard Program which should not show any error.
Are you in UPGRADATION or is the program name which you gave in the thread is wrong?
K.Kiran.
09-12-2007 11:11 AM
Hi, we are upgrading from 3.11 to ECC, and the the names are correct... can't see why it dumps...
09-12-2007 10:29 AM
Hi..
Check these things:
include MZD01TOP
1. include MZD01TOP must have the First statement as
PROGRAM <MODULE POOL>.
2. include MZD01TOP should not have any Executable statements .. Only Declarations are possible.
3. include MZD01TOP must be called as the First statement in the Module pool
4. Check whether all the Includes of the Modulepool are Active.
<b>Reward if Helpful</b>
09-12-2007 11:10 AM
Hi,
The INCLUDE MZD01TOP starts like this:
&----
*& Include MZD01TOP Module pool SAPMZD01 *
*&----
PROGRAM SAPMZD01 MESSAGE-ID ZD .
and declarations are all it contains.
All includes are active, but we are under UPGRADE....
09-12-2007 11:14 AM
Baljinder,
May be the syntax in the line you mentioned might be obsolete.Check that.
Just some additional info:-
T-Code:-SGEN
SAP LOAD GENERATOR-TO GENERATE A LARGET SET OF PROGRAMS IN ONE SHOT-IN CASE OF UPGRADATION.
T-Code:-SAMT
Mass Test of Programs.
K.Kiran.
09-12-2007 11:57 AM
Hi KIRAN,
I solved it,thanx:)
It was a statement in the MZD01TOP that was the problem.
DATA: G_SCREEN_ROW_COUNT TYPE I.
G_SCREEN_ROW_COUNT = 11.
had to be changed to:
DATA: G_SCREEN_ROW_COUNT TYPE I VALUE 11.
for some reason...
thanx again folks:)