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

ALV Problem

Former Member
0 Likes
531

I am displaying data in ALV grid. if the user press the change button which is there on the application toolbar, the alv will be in eduatable mode abd the user can change the data. when press save the data will be saved in some ztable. I have written the code in the below method.

  • Changed data on the cell

METHOD handle_data_changed.

PERFORM data_changed USING er_data_changed.

ENDMETHOD.

But if i change something in the alv forget to press enter button and directly press the save button which is there on the standard tool bar, the data which i have changed is not saving.

i change some data and press enter button , then this avobe event is fired and change the data.

How do i change the data without clicking on save button,

Regards,

Ranjan

4 REPLIES 4
Read only

Former Member
0 Likes
508

Hi pryaranjan

if you are using cl_gui_alv_grid class to create alv then before save button processing, call method

refresh_table_display of class cl_gui_alv_grid and then save the changed records.

Thanks

Vishal Kapoor

Read only

Former Member
0 Likes
508

Hi Priyaranjan ,

In both the clicks use this statement.

CALL METHOD gp_alv_grid->CHECK_CHANGED_DATA.

I hope it defenitely works.

Apprise me if helpful.

Regards

Satish

Read only

Former Member
0 Likes
508

Hi.

Use the DATA_CHANGED event and capture the changed records, and save the changed records in PAI.

Example Prog BCALV_EDIT_01 to BCALV_EDIT_08 for DATA_CHANGED event handling in ALV OOps concept .

Check this link.

Regards.

Jay

Read only

Former Member
0 Likes
508

Hi Priyaranjan

Take the help of BCALV_EDIT_01

Hope this would solve your problem

Regards

Ramchander Rao.k