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: 

debugging

Former Member
0 Kudos

Hi,

experts please explain how do debug an report and script.

regards,

vijay.

1 ACCEPTED SOLUTION

Vinod_Chandran
Active Contributor
0 Kudos

Hi,

For report there are many ways.

1. Take tcode SE38 and go inside the report. On the application toolbar you can find a button called 'Stop'. Using this you can put a soft break point. Next time when the program runs, it will stop there.

2. From the selection screen of the report, in the command box type '/h' and then press execute. This will take you to debugging.

3. Hard coding break point. Insert the command BREAK-POINT or BREAK <username> in your code.

For debugging SAPScript. Go to SE71 and take the menu Utilities -> Activate Debugger. This will activate script debugging.

Kindly assign points if this is helpful.

Cheers

Vinod

5 REPLIES 5

Vinod_Chandran
Active Contributor
0 Kudos

Hi,

For report there are many ways.

1. Take tcode SE38 and go inside the report. On the application toolbar you can find a button called 'Stop'. Using this you can put a soft break point. Next time when the program runs, it will stop there.

2. From the selection screen of the report, in the command box type '/h' and then press execute. This will take you to debugging.

3. Hard coding break point. Insert the command BREAK-POINT or BREAK <username> in your code.

For debugging SAPScript. Go to SE71 and take the menu Utilities -> Activate Debugger. This will activate script debugging.

Kindly assign points if this is helpful.

Cheers

Vinod

Former Member
0 Kudos

Hi,

Can I know report means Script print prog or normal report.

Script:In SE71 give your form name and in Utilities-->Active debugger.

Then put a break point in your print prog where ever you want to stop it.

After that you need to go to your transaction like VF03/../..etc for Invoice you need to execute it by giving Outtype.

Then your print prog and form will debugg step by step.

Thanks.

Former Member
0 Kudos

simple way is enter /H in comman prompt and enter.

after that whatever you will do , will be debug mode

hope this help

regards

0 Kudos

Hi

Enter /H in the command prompt.

Then press F5 for line by line debugging.

F6 for skiping the function modules.

F7 for exiting from a function.

F8 to execute the program inside a debugging mode.

Regards,

Baburaj

Former Member
0 Kudos

Hi,

Check this link

http://www.sapdevelopment.co.uk/tips/debug/debug_popup.htm

To debug a program in foreground just enter the data in the selction screen and then before pressign F8 enter /H then enter> F8.

U can also write

<b>break <userid></b>

in ur code where u want to break.

OR u can use <b>

BREAK-POINT

</b>. in ur code.

Or u can go to ur program and u can see a stop button place the cursor in the line where u want to break and press the button.