‎2008 Nov 17 5:14 PM
How can I found out all the internal structures that are populated and available in a user exit or any point in code.
Specifically I am looking at RV60AFZC routine USEREXIT_FILL_VBRK_VBRP and want to fill MWSKZ which is in KOMV. But I would like to learn a new technique that I can use for any program. Thank you.
‎2008 Nov 18 8:31 AM
Hello Megan
A very nice technique to expand the available data within a user-exit has been described in
[SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]
Regards
Uwe
‎2008 Nov 17 6:29 PM
Hello,
One way is to set a breakpoint in the exit/BADI/Enhancement Point and then execute
the program that calls the code where your breakpoint is set.
Then use the debugger to find which variables are local or global. (In the new debugger) and
what values they have.
Regards
Greg Kern
‎2008 Nov 18 7:25 AM
how to use the new debugger to find out all the local and global variables?
‎2008 Nov 18 7:45 AM
While in Debugging mode choose Menu -> Switch to New Debugger.
In Desktop1 tab, you can see Variable1, Variable2, Locals and Globals in the right hand side of the screen.
Using that you can know what are the values are available inside a userexit / any code.
Regards
Karthik D
‎2008 Nov 18 8:09 AM
I am in the new debugger right now. In Desktop1, I see two tabs Variables 1 and Variables 2, but where are the global and local variables? I want to see a list of all variables available to me.
Also I am looking to create a watchpoint for a structure. I searched the SDN and lots of posts state that there is a pushbutton to create a watchpoint. I dont see it. I have version ECC 5.0
‎2008 Nov 18 8:21 AM
I am working in ECC 6.0 and i can see the tabs as well as watchpoint button. May be someone else working with ECC 5.0 have to confirm.
Cant you even see the Breaks./watchpoint tab?
Regards
Karthik D
‎2008 Nov 18 8:24 AM
I do see the breakpoint tab. In this tab there are 2 tabs, one for breakpoint and the other call Checkpoint Activations. I dont think checkpoint activations is the same as watchpoints, the options available dont fit. I guess I will have to settle to using the old classical debugger until the client upgrades to 6.0
‎2008 Nov 18 7:40 AM
Hello,
You can know if the particular structure is available in your session in either old or new debugger, all you need to do is
(SAPLHRBEN00ESS)EVENT_DESCRIPTION_GS
Where SAPLHRBEN00ESS -> Program Name
EVENT_DESCRIPTION_GS -> Structure (wa), Internal Table that you want to access.
Hope it helps.
Thanks,
Jayant
‎2008 Nov 18 8:31 AM
Hello Megan
A very nice technique to expand the available data within a user-exit has been described in
[SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]
Regards
Uwe