GetFieldTouched() is used to check whether the value in the specified field or set of fields was changed during the input. The method returns TRUE if at least one of the specified fields is marked as touched and FALSE - if all the fields of the fields remain untouched:
CALL DIALOG.GetFieldTouched("field_list")
There is some specifics about using variables with ui.Dialog methods.
You can learn about them here.
The value in the field is considered to be changed even if the changes were made and then undone (for example, a letter inputted and then erased). The result of this method is the same as the result of field_touched(). However, whereas the function does not allow variables as the field specification, the method does, which gives it the necessary flexibility.
field_list can be represented in several ways:
as a field name with an optional prefix:
CALL DIALOG.GetFieldTouched("mytable.field1")
CALL DIALOG.GetFieldTouched("screenrecord.field2")
as a screen_record identifier with an asterisk, which means that the method will check all the fields included to the specified screen record:
CALL DIALOG.GetFieldTouched("my_screc.*")
as an asterisk identifying that the method will check all the fields used in the current dialog:
CALL DIALOG.GetFieldTouched("*")