2007 May 08 8:39 AM
Hi All,
I have a check box in front of each data record in the ALV display. This check box is editable. The user will check some records after seeing the details and click on a puch button provided. On the click of this button I need to read all the records whose check box has been checked.
However, this edited value of check box is not getting reflected in the program. Is there any FM or any other method through which I can read the changed values in the ALV display ??
Request your urgent help.
Thanks and Regards,
Archana.
2007 May 08 8:48 AM
Hello Archana
If you are using class CL_GUI_ALV_GRID then you have to call method <b>go_grid->check_changed_data</b> at <b>PAI</b> of the dynpro displaying the ALV list. This method call will transfer the current data from the frontend (= control) to the backend (= itab in ABAP).
Regards
Uwe
Hi All,
I have a check box in front of each data record in the ALV display. This check box is editable. The user will check some records after seeing the details and click on a puch button provided. On the click of this button I need to read all the records whose check box has been checked.
However, this edited value of check box is not getting reflected in the program. Is there any FM or any other method through which I can read the changed values in the ALV display ??
Request your urgent help.
Thanks and Regards,
Archana.
2007 May 08 8:48 AM
Hello Archana
If you are using class CL_GUI_ALV_GRID then you have to call method <b>go_grid->check_changed_data</b> at <b>PAI</b> of the dynpro displaying the ALV list. This method call will transfer the current data from the frontend (= control) to the backend (= itab in ABAP).
Regards
Uwe
2007 May 08 9:04 AM
2007 May 08 9:05 AM
Hi ,
Please see this example program - BCALV_EDIT_05
I am sure this will help you.
If u have used standard ALV function module(REUSE_ALV_GRID_DISPLAY) instead of class cl_gui_alv_grid , then you can set layout and fieldcatalog accordinglly.
dont forget to add filed
checkbox type c.
in your display table (itab).
fieldcatalog setting :
for field : 'CHECKBOX'.
<b> ls_fcat-checkbox = 'X'.
ls_fcat-edit = 'X'.</b>
In user command subroutine :
check displayed internal table (itab here)
u will find the checkbox-checked record has itab-checkbox = 'X' .
Regards,
Mihir.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |