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??

abdul_hakim
Active Contributor
0 Likes
1,132

Hi Friends,

How to debug a dialog box.

In MM02 i am attaching some documents.

When i click view attachment my attachments are coming in a dialog box.When i click it,it got opened.I want debug this dialog box.Your help highly appreciated..

Regards,

Abdul

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,055

Hi Abdul...

1 - click on the create shortcut(top right icons of sap window)

In the application part of the next popup choose system command and in the command enter /h !

The you have a shortcut on the desktop that you can drag and drop on your popup !

2 - you can hardcode the breakpoint : BREAK USERNAME.

don't forget the reward plz

8 REPLIES 8
Read only

Former Member
0 Likes
1,056

Hi Abdul...

1 - click on the create shortcut(top right icons of sap window)

In the application part of the next popup choose system command and in the command enter /h !

The you have a shortcut on the desktop that you can drag and drop on your popup !

2 - you can hardcode the breakpoint : BREAK USERNAME.

don't forget the reward plz

Read only

0 Likes
1,055

Hi,

or look here:

Andreas

Read only

0 Likes
1,055

this is the same suggested by stephan, in a different approach.

create a .txt file on your desktop and place the following lines in that file.

<b>[FUNCTION]

Command=/H

Title=Debugger

Type=SystemCommand</b>

now wherever you want to debugg in SAPGUI for your case dialog box. drag and drop the text file on the popup it will trigger debugging.

Regards

Raja

Read only

Former Member
0 Likes
1,055

Hi Abdul,

You can put a breakpoint in the standard program.

Goto->SE80 and find the Screen number on which the attachments appear.

Now you can put a breakpoint in the PAI of the screen and then debug...

Hope it helps...

Lokesh

Pls. reward appropriate points

Read only

Former Member
0 Likes
1,055

Hi Abdul,

1. For that u need to do 2 things.

a) Create a shortcut file

b) Drag&Drop this file, on the modal box

for debugging purpose.

2. On the standard toolbar,

there is a icon for SHORTCUT. (click on it)

3. A new window will come.

4. In the TYPE FIELD , select SYSTEM COMMAND.

In the COMMAND FIELD, write

/h

5. Save this file on desktop.

6. Now run your program .

when the modal dialog box comes,

DRAG & DROP this shortcut file on the modal box.

I hope it helps.

Regards,

Amit M.

Read only

amit_khare
Active Contributor
0 Likes
1,055

Hi,

Just paste this to a file and save it as <b>debugger.txt</b> on your system.

Then whenever you have to debug a dialog box just drop this over it.

<b>[FUNCTION]

Command=/H

Title=Debugger

Type=SystemCommand</b>

Hope this will help you.

Regards,

Amit

Read only

0 Likes
1,055

Can WE STOP ANSWERING ALL THE SAME ANSWERS????

TOPIC SHOULD BE CLOSED.

Read only

0 Likes
1,055

Hi Stephan/Raja.

Thanks a lot for your replies.

Issue solved now!!

Thanks,

Abdul