Application Development 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: 

Problem in Interactive ALV

0 Kudos

Hi,

I am trying to build the following functionality in OO ALV. I am trying to show a table whose one of the fields is a single character field. I have shown the field as a check box. Requirement is that the user will click on the  check box for n number of entries, and when he clicks a button, the data will be saved in the database.

I have been able to show the table with the check box for each entries, but cant update the internal table when the check box is clicked. I need to catch the records which user has update (clicked the checkbox).

Please help.

1 ACCEPTED SOLUTION

yang_aiolos
Active Participant
0 Kudos

hi,

let's say it in easy way.

after you check the entries which you want, then you will do 1 action, press 1 button or else.

for this , event will be triggered.

Assume your oo grid name is go_grid, your display data internal table is gt_main.

in the , use this method: go_grid->check_changed_data,

so the data in internal table gt_main will be updated.(for your case, the checkbox field will be update),

then with these data, do what you want.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Please have a closer look at BCALV_EDIT_05 (or SALV_DEMO_TABLE_COLUMNS for salv class).

Kr,

Manu.

yang_aiolos
Active Participant
0 Kudos

hi,

let's say it in easy way.

after you check the entries which you want, then you will do 1 action, press 1 button or else.

for this , event will be triggered.

Assume your oo grid name is go_grid, your display data internal table is gt_main.

in the , use this method: go_grid->check_changed_data,

so the data in internal table gt_main will be updated.(for your case, the checkbox field will be update),

then with these data, do what you want.

Former Member
0 Kudos

Hi kushal,

Assuming that you are using CL_GUI_ALV_GRID then

you have to call method  go_grid->check_changed_data( ) at PAI

of the dynpro displaying the ALV list in order to retrieve the data from the frontend (= ALV list) to your backend (= itab in ABAP program).

Place this method call as one of the first statements within your USER_COMMAND module (PAI) and the save will work