2023 Jan 23 7:57 PM
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.
2023 Jan 23 9:59 PM
2023 Jan 24 7:12 AM
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).
2023 Jan 24 8:45 AM
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.