Skip to Content
author's profile photo Former Member
Former Member

Syntax error in SAPMZD01

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Sep 12, 2007 at 09: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>

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Kiran K

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

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 12, 2007 at 09: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.