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

internal structures available in user exit

Former Member
0 Likes
1,187

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.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
1,140

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,140

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

Read only

Former Member
0 Likes
1,140

how to use the new debugger to find out all the local and global variables?

Read only

0 Likes
1,140

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

Read only

0 Likes
1,140

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

Read only

0 Likes
1,140

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

Read only

0 Likes
1,140

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

Read only

Former Member
0 Likes
1,140

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

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,141

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