Application Development 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: 

Syntax error in SAPMZD01

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

varma_narayana
Active Contributor
0 Kudos

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>

7 REPLIES 7

Former Member
0 Kudos

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

kiran_k8
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi, we are upgrading from 3.11 to ECC, and the the names are correct... can't see why it dumps...

varma_narayana
Active Contributor
0 Kudos

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>

0 Kudos

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....

0 Kudos

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.

0 Kudos

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:)