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 Standard SAP Programs ?

Former Member
0 Likes
3,238

Hello guys.


Can someone tell me how to debug Standard SAP Programs, like this one: BARCBO01? I now how to debug it from the begging but it doesn't help me that. I need to debug it after it's started.

There is no way to use the command:  /h. Because it shows like a subscreen. I also created a .SAP file with this code inside:

[FUNCTION]

Command=/H

Title=Debugger

Type=SystemCommand

But it doesn't work it shows me the Not icon, like this:

http://postimg.org/image/6bxp5rgbr/

10 REPLIES 10
Read only

ronaldo_aparecido
Contributor
0 Likes
2,353

Good morning Taly.

Please go to SE38 transaction and the program field put the name 'BARCBO01'.

Click to show the code .

Appears the program code.

Click in menu in red button Stop and will create a break point now when you start(execute) the program the debug mode is showed.

Hope helped you.

Read only

0 Likes
2,353

As i mentioned in the begging... I need to debug it after I execute... I don't need it in the begging, I need it when I click somewhere in the program after the execution

Read only

0 Likes
2,353

Hi,

After execution, You can put /h and then click somewhere u want. The debugger will start.

Thanks

Vijay

Read only

0 Likes
2,353

As I mentioned above, "There is no way to use the command:  /h. "... it is created as a subscreen.. And if I don't close it I can't touch any buttons behind the screen.

Read only

FredericGirod
Active Contributor
0 Likes
2,353

Hi,

You can't debug it with the .sap

You can't debug it using the field transaction

you have to debug it form the beginning  or make a trace on it, and put break on the source code.

regards

fred

Read only

Former Member
0 Likes
2,353

Hi,

if it is a program with GUI, you can create a SAP shortcut with the command /h in it. Then you can drag shortcut to the transaction screen, it will activate debugger mode. Hope it helps.

BR

Paul 

Read only

0 Likes
2,353

As I said in my question above:

I also created a .SAP file with this code inside:

[FUNCTION]

Command=/H

Title=Debugger

Type=SystemCommand

With this I meant an SAP shortcut...

This didn't work either... it shows me the NOT icon like in the image above

Read only

0 Likes
2,353

I have made the test, I think you really can't debug it easily

that looks like a webdynpro .. you can't drag/drop .. you could only put an external break point .. no ?

Read only

Datta
Explorer
0 Likes
2,353

Hi

After execution of Standard SAP program; create one more  session and execution transaction code SM50(Process overview). In the process overview; you will be able to see program name which you have executed/running. Select this programs and click on option "debug"(available in SM50 menu)

Regards,

Read only

ronaldo_aparecido
Contributor
0 Likes
2,353

Oh ok sorry .

In this case use the sm50 , open a new session and debug in sm50.