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 the SAP Script

Former Member
0 Likes
2,132

Hi All,

I have a sap script and driver program.

The sap script contains layout and PERFORM statements.

The Driver program contains FORM statements.

Now i need to check the code through F110 screens.

The print from F110 screen must use sap script and generate the hardcopy.

When i give print option, the job is scheduled in background.

Hence i am unable to debug the process....

How to debug the sap script and driver program in such scenarios...???

Please help me ...

Regards

Pavan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
708

HI

Pavan..

DEBUT SAPSCRIPT->

PROCESS1-

activate the abap debug from the forma layout from menu system -- > utilities --> debug abap ,

tehn go into the print progrma and execute teh print program in the execute the program from theri and the script opens in the debug mode.

PROCESS2-

First we need to put Break point in Print program where ever you want to stop the execution.

After in SE71 give your form name and go to Utilities-->Active De-bugger.

Then go to your transcation like VF03(for Invoice or Credit memo) etc to see the print preview or print the form execute it.

When you execute it the the form Debugging will get activated and you can see your Form execution step by step.

I hope this will helps you..

If it helps reward with points

Regards Rk

3 REPLIES 3
Read only

Former Member
0 Likes
708

hi Pavan,

Try putting a break point in the mentioned form routine....it will work.

Also, to debugg the SAP Script, choose the option <b>activate debugger</b>, from SE71, entering the form name and choosing the option from<b> utilities menu</b>.

Hope this helps,

Sajan Joseph.

Read only

Former Member
0 Likes
708

Hi,

If you are not giving print from Transaction ,

Just put the breakpoint in the perform you want to debug .

Moment when you run it , control will stop here .

However if you want to debug script , then Turn on Activate Debugger in Se71 for your script , control will come to the script and then you can debug .

Thanks .

Read only

Former Member
0 Likes
709

HI

Pavan..

DEBUT SAPSCRIPT->

PROCESS1-

activate the abap debug from the forma layout from menu system -- > utilities --> debug abap ,

tehn go into the print progrma and execute teh print program in the execute the program from theri and the script opens in the debug mode.

PROCESS2-

First we need to put Break point in Print program where ever you want to stop the execution.

After in SE71 give your form name and go to Utilities-->Active De-bugger.

Then go to your transcation like VF03(for Invoice or Credit memo) etc to see the print preview or print the form execute it.

When you execute it the the form Debugging will get activated and you can see your Form execution step by step.

I hope this will helps you..

If it helps reward with points

Regards Rk