2010 Mar 26 4:16 AM
Dear all,
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.
Thanks
2010 Mar 26 5:35 AM
Hi,
In the FM REUSE_ALV_GRID_DISPLAY ,there is a parameter ls_setting.
you need to pass ls_setting-EDT_CLL_CB = 'X'.
Hope this helps,
Raj
Dear all,
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.
Thanks
2010 Mar 26 5:30 AM
hi,
I have tried for the same, its working fine. Please try to give me explanation.
Thanks,
Saurin Shah
2010 Mar 26 5:35 AM
Hi,
In the FM REUSE_ALV_GRID_DISPLAY ,there is a parameter ls_setting.
you need to pass ls_setting-EDT_CLL_CB = 'X'.
Hope this helps,
Raj
2010 Mar 26 6:10 AM
hi,
In user command you have to capture 'OK' function code , and write the code
CALL METHOD <object>->CHECK_CHANGED_DATA
* IMPORTING
* E_VALID =
* CHANGING
* C_REFRESH = 'X'
.
CALL METHOD CL_GUI_CFW=>FLUSH.
CALL METHOD CL_GUI_CFW=>DISPATCH.
for reflecting the changes .
Regards
Gaurav
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |