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

How to debug a FORM(Sap-Script) which is processed during update?

Former Member
0 Likes
1,366

Hi ABAP,

I strongly suppose i have a fault in my Sap-Script code, tho i´m unable to SEE it.

Now i want to debug the thing to find out what exactly the fault is.

My problem is that the Sap-Script Form is beeing processed during update task.

Even switching on Form debugger ALONG WITH update debugger and system debugger could´nt help it.

Tho now i cant sit here and wait, i gotta do something about it, but i´m somehow clueless about how to proceed now.

Any ideas?

P.s. Just to mention it, i dont want to debug my print program or my external performs, those are working. I need to debug the sap-script thing.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
971

Hi,

First check if the script is being called. To do this do the following

Before executing the program go SE71 transaction , In the menu you will find Utilities --> Activate Debugging.

Press Activate Debugging , this will activate SAP Script debugging.

Now try executing your program , if your program calls the script then the control will come to the script and the you can Press F5 to execute it step by step.

OR

Now when you execute the program , in the selections screen , top left you will ahve the command window , type /h and press enter , this activates debugging for the program , now execute the program and press F5 to see step by step execution.

Whne the fuinction OPEN_FORM is called , press F6 and after executuion see the value of SY-SUBRC.

Hope this resolves your query.

Reward all the helpful answers.

Regards

5 REPLIES 5
Read only

Former Member
0 Likes
972

Hi,

First check if the script is being called. To do this do the following

Before executing the program go SE71 transaction , In the menu you will find Utilities --> Activate Debugging.

Press Activate Debugging , this will activate SAP Script debugging.

Now try executing your program , if your program calls the script then the control will come to the script and the you can Press F5 to execute it step by step.

OR

Now when you execute the program , in the selections screen , top left you will ahve the command window , type /h and press enter , this activates debugging for the program , now execute the program and press F5 to see step by step execution.

Whne the fuinction OPEN_FORM is called , press F6 and after executuion see the value of SY-SUBRC.

Hope this resolves your query.

Reward all the helpful answers.

Regards

Read only

0 Likes
971

sorry raj, thats exactly how it do it when having to deal with normal forms as well.

my problem is that the sap-script debugger WILL NOT PUP UP when the form is beeing processed during update task.

I know all the steps you listed and they are really good, but actually they dont help me here

but thanks a lot anyway

Read only

0 Likes
971

maybe i was a bit unclear.

The script IS BEEING CALLED, since i get a spool as output.

Changing things on the form change on the spool as well.

So yeah i made sure the script IS BEING processed.

I have sap-script debugger switched ON.

I have update debugger switched ON.

I have system debugger switched ON.

and still i cant debug my sap-script.

Read only

0 Likes
971

well ok i solved my problem myself now, but i want to let you take part in learning new things

My old way to print out my form was:

TA: MB02

giving in a Materialbillno. and proceeding.

then double click on the position

then clikc on messages

selecting the desired messagetype

and clicking repeat message.

when pressing save then 2 times the print is beeing processed in update task.

NOW i goto MB90, and print out manually my message type.

This is a dialog step and not in update task, so now I´m able to debug the thing.

and weeeeeee it took me 2 more minutes to find my fauklt, while i was 3 hours on the trail to find out HOW to debug it...

anyway i hope it helps somone that i present my solution here

Read only

Former Member
0 Likes
971

Hi,

From SE71 activate the Debugger.

and execute the Program, it will stop in the script,

check for the field values you wants to check, that;s the method we follow to debug/check the scripts.

regards,

Anji