It stores the value of a variable or field at the time the line is being written to the list. Later, when that line is clicked (e.g., in an AT LINE-SELECTION
event), the hidden values are automatically restored.
How it works:
-
During
WRITE
statements in the basic list, you useHIDE
to store additional data in the background. -
When the user interacts (e.g., double-clicks) on that list line, the system retrieves the hidden data, which you can then use in the
AT LINE-SELECTION
event.REPORT zprg_test_ecc. DATA: v_ename TYPE ename, v_empno TYPE empno. START-OF-SELECTION. SELECT empno ename FROM emp INTO (v_empno, v_ename). WRITE: / v_ename. HIDE: v_empno, v_ename. ENDSELECT. AT LINE-SELECTION. WRITE: / 'Details for employee:', / 'EmpNo:', v_empno, / 'Name:', v_ename.