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

Cannot set breakpoint because 'main program must be generated '

Hi All,

I was trying to debug a program SAPMZW01. But i am unable to set a breakpoint because it gives the info message - 'Main Program Must Be Generated'.

There was another query related to this in sdn but it relates to some other module and i am not able to fund the relavent note.

I am new to ABAP .

Kindly help.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2010 at 08:32 AM

    Hi,

    <li>I think you need to activate all the includes in the program before you set break point.

    <li>Goto SE80->Right click on SAPMZW01->Activate - activate all selected includes.

    Regards,

    Venkat.O

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2010 at 09:20 AM

    Hi ESHA,

    Some times it stucks with code activation so ones do it forcefully bypassing the warning for both main program and called program .

    it will resolve your problem.

    Regards,

    Gaurav Sood

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 23, 2019 at 09:37 AM

    I also faced the same issue, where I wasn't able to set breakpoint and it said "Main Program XYZ Must Be Generated"

    I later figured out that my refined method had a syntax error.

    Once the error was resolved I was able to set the breakpoint.

    Please check your code once and retry.

    Thanks,

    Saira

    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.