Application Development and Automation 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: 
Read only

Cannot set breakpoint because 'main program must be generated '

Former Member
0 Likes
28,927

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.

5 REPLIES 5
Read only

venkat_o
Active Contributor
0 Likes
13,356

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

Read only

Former Member
0 Likes
13,356

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

Read only

former_member316084
Discoverer
13,356

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

Read only

0 Likes
13,356

I also faced same issue. It was due to syntax errors in the program !!!

Read only

SangeetaSingh
Explorer
0 Likes
4,248

For me this was due to missing method implementation in quality system. Please check if all required TR's moved.