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

Watchpoint based on data element

gabriele_mazza
Explorer
0 Likes
1,730

Hi experts,

in a huge SAP process I need to know where a field is filled.

SAP uses structures and passes the values from a structure to an other, so I can't set a watchpoint using a variable name.

Can I set a watchpoint to a Z data element (or something similar, to achieve this result)?

Thanks

1 ACCEPTED SOLUTION
Read only

Jelena_Perfiljeva
Active Contributor
1,316

You can set a watchpoint for a field in the structure. The fields inside structures (or internal tables) are referred to in this format: <structure name>-<field name>.

Not sure what you're referring to exactly as "data element".

There is a good blog that highlights some watchpoint/breakpoint features. They're not new anymore but still it's valid information.

Google "watchpoints in debugger site:help.sap.com" to find Help document appropriate for your release.

3 REPLIES 3
Read only

Jelena_Perfiljeva
Active Contributor
1,317

You can set a watchpoint for a field in the structure. The fields inside structures (or internal tables) are referred to in this format: <structure name>-<field name>.

Not sure what you're referring to exactly as "data element".

There is a good blog that highlights some watchpoint/breakpoint features. They're not new anymore but still it's valid information.

Google "watchpoints in debugger site:help.sap.com" to find Help document appropriate for your release.

Read only

0 Likes
1,316

Thank you. The field i'm looking for is moved from a structure to others. So i need to stop when the field of data element "Z." for every structure is changing.

Read only

0 Likes
1,316

gabriele.mazza - there is no magic wand for this. You need to know which structures contain the field of interest and then you can create a watchpoint for each one of those fields.

What you're calling "data element" is more commonly referred to as a variable.