Application Development 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: 

Whatchpoint for a value instead of a variable.

Victor_f
Explorer
0 Kudos
326

Hi experts.

I am having trouble finding what field from a Z include stores the value of Total Price on the invoices generated by tcode VF02. I know that if I run VF02 with the doc. number 321174805, the value of total price for the first item will be 296196.77 USD, but what I need to know is what field is storing that number after it gets calculated.

Is there a way to make debug stop when any variable recieves the value 296196.77, without knowing what is the name of that variable? Like, a whatchpoint that monitors all variables looking for this specific value.

Thanks in advance.

3 REPLIES 3

matt
Active Contributor
265

No.

Or maybe a script.

Sandra_Rossi
Active Contributor
265

Correct. Creating a script to scan all variables used in Z programs would be difficult but not impossible, but that would slow down a lot the execution, and nothing proves that a Z program holds exactly the searched value, maybe a Z program alters a number and doesn't give the searched value, but which is later itself altered by standard calculation rules and finally produces the searched value (in a standard program).

0 Kudos
265

Hi,

From the program, you can randomly figure out the variables used for the holding the value. By using the watch point for the variables figured randomly you can find out by checking the different variables.