I need to check a field in my ALV, set as editable, when it is changed.
This is my fieldcat
with the concerned field set as editable:
CLEAR wfieldcat.
wfieldcat-fieldname = 'PERDEVA'.
wfieldcat-ref_fieldname = 'PERDEVA'.
wfieldcat-ref_tabname = 'IT_DEVALUATS'.
wfieldcat-seltext_s = 'Devaluat'.
wfieldcat-seltext_m = 'Devaluat'.
wfieldcat-seltext_l = 'Devaluat'.
wfieldcat-ddictxt = 'M'.
wfieldcat-edit = 'X'. "<==========
APPEND wfieldcat TO p_fieldcat.
Once the field is changed by user, I need to check some conditions for value, and if they are not accomplished, just call my own refresh
form.
Probably there are some Function Modules or Methods to do that, but every documentation that I found refers to S/4HANA and I'm using R/3.
Edit: As I said in comments "CHECK_CHANGED_DATA" is the Function Module that i was looking for, and @Suncatcher provides the threat with a properly usage example.