06-09-2011 8:18 PM
Hello
I have to debug program.
I have to stop program execution within a loop if value of the field1 reaches XXX.
I wanted to use watchpoints but it doesnt accept variable like <FS>-field1. Infortunately , I am not able to put a condition like
IF <FS>-field1 = XXX then ....
as I am in production.
Any suggestions?
Thanks in advance.
06-09-2011 9:45 PM
Watch point on a field symbol can only be set if the field symbol is assigned. Loop through the first iteration or untill the field symbol is assigned. Once field symbol is assigned, you must be able to creat a watch point even with the field options <fs>-fld .
06-09-2011 8:35 PM
Hello
>
> I have to debug program.
> I have to stop program execution within a loop if value of the field1 reaches XXX.
>
> I wanted to use watchpoints but it doesnt accept variable like <FS>-field1. Infortunately , I am not able to put a condition like
>
> IF <FS>-field1 = XXX then ....
>
> as I am in production.
>
> Any suggestions?
>
> Thanks in advance.
You can debug by giving /h in command field then create watch point for any field for any given value but you cannot write code in debug mode. I mean, there is nothing that you could add your own code in debug in production directly. You have to write some code to do that.
06-09-2011 8:45 PM
Find the table position of the value you want and then put a watchpoint for SY-TABIX when it's value reaches the index you are looking for.
Rob
06-09-2011 9:28 PM
06-09-2011 9:46 PM
06-09-2011 10:22 PM
06-09-2011 9:45 PM
Watch point on a field symbol can only be set if the field symbol is assigned. Loop through the first iteration or untill the field symbol is assigned. Once field symbol is assigned, you must be able to creat a watch point even with the field options <fs>-fld .