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: 

issue with editable alv using cl_gui_alv_grid

Former Member
0 Kudos

Hello all,

its a table update program . user can save create new entry and delete the entires . the screen should be avaiable for multiple time inputs by the user . i achived it by method handle double click and i am refreshing the scrren and making the alv for ready for input . but user wants the screen shoukld get refreshed automatically once user clicks on save button .

how can I achive plz advise .

I am working on ALV by cl_gui_alv_grid , I am using the followingmethods of the class

1) METHODS: handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid

IMPORTING e_object e_interactive.

2) METHODS: handle_user_command FOR EVENT

user_command OF cl_gui_alv_grid

IMPORTING e_ucomm,

check_changed_data.

3) METHODS: handle_double_click FOR EVENT

double_click OF cl_gui_alv_grid

IMPORTING e_row e_column.

4) METHODS: handle_data_changed

FOR EVENT data_changed OF cl_gui_alv_grid

IMPORTING er_data_changed.

Thanks in advance .

3 REPLIES 3

Former Member
0 Kudos

save is a sy-ucomm value .. right?

so clear / refresh your table in the PAI event of that screen checking the sy-subrc Eq the FCODE of the save button.

0 Kudos

Hi Soumyaprakash,

SAve is an user command . I want to have the values which are changed by the user and again the output should be ready for any actions like change the data , create new and delete any entry .

basically the alv output screen should be reday for inputs any number of times untill user clicks on back button .

Thanks

Basavaraj

0 Kudos

that is what i am telling..

goto the pf status of that screen.. and see what is the FCODE for the save button,.

in the PAI check the FCODE, if it matches the save's fcode... save the values or do what ever you want..