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 context menu

Former Member
0 Likes
3,159

Hi all,

I have a context menu in PR05 tocode, it contains field 'Attachment List' in the the context menu.

When I select the 'Attachment List' in the context menu I want to debug what the 'Attachment List' is doing.

I It's not possible to have dynamic debug.

Thank you!

Prasad

7 REPLIES 7
Read only

Former Member
0 Likes
1,734

hmmm what about typing /h in the OK_CODE box, pressing enter ONE time, and after that using your context menu?

Edited by: Florian Kemmer on Sep 23, 2010 1:17 PM

Read only

JoffyJohn
Active Contributor
0 Likes
1,734

create a SAP GUI short cut for system cammand /h.

then drag and drop that to the functionality and then debug.

or Put a break-point in the code and run the fuctionality.

Read only

brad_bohn
Active Contributor
0 Likes
1,734

You can't drag a breakpoint shortcut onto a context menu. You have to either set the breakpoint in the PAI and follow through the process or set the breakpoint in the DISPATCH method of class CL_GUI_CFW - the functionality is going to be triggered via an event and received by an event handler. Most likely, you've got a local class in that transaction for the context menu that adds the functions (ok codes) and handles the events - you just need to search for it.

Read only

Former Member
0 Likes
1,734

Create one .TXT file as follow in your desktop then after when u select the 'Attachment List' before

that drag and drop this file in 'Attachment List' then select list

In short save it in your desktop.

You can simply drag and drop this notepad on the sap screen to activate debugging on screen.


[FUNCTION] 
Command=/H 
Title=Debugger 
Type=SystemCommand 

Edited by: kk.adhvaryu on Oct 1, 2010 12:31 PM

Read only

0 Likes
1,734

You can simply drag and drop this notepad on the sap screen to activate debugging on screen.

NO, you can't - did you read the question or my post??? You can't use that technique for a CONTEXT MENU. Did you try it before posting?

Read only

0 Likes
1,734

Copy-paste from a site that has been banned here.

Moderator Message: I have already warned you against copy-pasting other people's work. Please acknowledge that you have received the warning.

pk

Edited by: kishan P on Oct 6, 2010 10:48 AM

Read only

0 Likes
1,734

solved by using calss TO cl_gos_attachments