I have having a problem in capturing the input value in ALV report.
I am using the funciton module REUSE_ALV_GRID_DISPLAY and have created a subroutine USER_COMMAND to execute whenever the user presses the button.
I have created a internal table REPORT_ITAB with field CLABS which is suppose to capture the user input value. I have set in the FIELD_CAT-INPUT = 'X" and FIELD_CAT-EDIT = 'X'.
It works find when user is executing the report using F8, but when they type a value in the field CLABS and press on the button, the internal table REPORT_ITAB in subroutine USER_COMMAND only displays 0 as the value, which is the default.
Now I would like to ask how will I be able to capture the INPUT or UPDATED value from the ALV.
In user command you have to capture 'OK' function code , and write the code
CALL METHOD <object>->CHECK_CHANGED_DATA
* E_VALID =
* C_REFRESH = 'X'
CALL METHOD CL_GUI_CFW=>FLUSH.
CALL METHOD CL_GUI_CFW=>DISPATCH.
for reflecting the changes .