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

Debugging driver program for SAP SCrIPT

Former Member
0 Likes
1,028

Hi,

I am using a z report for creating handling units.As soon as the handling units are created the spool is genearted for all the handling units and the spool requests are visible in SP01.However the print ouput is having some error.I want to debug the driver program.Fronm nace I found out the driver program and have placed break-point in the form routine Entry sapscript and also activated thhe debugger for te concerned SCript,but the debugger is not stopping .

Also I have checked the script name from the spool.

Kindly guide where is the problem and how to proceed.Any help will be acknowledged.

Regards,

Abhishek

1 REPLY 1
Read only

Former Member
0 Likes
559

HI,

Write a infinite loop in the diver program before u call the open form or before the statement from where you want to debug.

set the infinite loop by this code.

data no type i value 1.

while no eq 1.

endwhile. 
break-point.

Then after inserting this code activate and run the program, then run the transaction after runing the transaction ,

goto TCODE ->SM50 u will see list of program select the driver program then select program/session from menu then select program->debugging, then your debug will start from the infinite loop , then change to 2 , then u can debug the program.

Hope this helps.

Regards,

Madhukar Shetty