Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reading fields from ALV display

Former Member
0 Likes
587

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.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
531

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.

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
532

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

Read only

0 Likes
531

Hey thanks !!!

It worked...

Read only

Former Member
0 Likes
531

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.