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

Editable ALV, capturing multiple record changes

Former Member
0 Likes
386

Hello

I am writing the editable ALV prog. (because of some reaosn am using FM - REUSE*) and i need to capture the user changes on the list, but, when i searched, i found the below code, where in i can get only one change/record (because am getting importing formal parameter is a structure), but, i need to get all records user changes, multiple.

 
FORM user_command USING r_ucomm LIKE sy-ucomm
                  rs_selfield TYPE slis_selfield.

Pls. let me know how to capture all records/changes? I saw BCALV, but, all they are on OOPS.

Thank you

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
291

Hi Raju,

no chance without oo event data_changed.

You can get the grid object from the function module, I think FM LVC_GET_GLOBALS or something like that. Then implement method

METHODS: handle_data_chg FOR EVENT data_changed OF   cl_gui_alv_grid   IMPORTING er_data_changed.

In SET_STaTUS event of the function module, you can extract the grid object and registr your own handler.

But, honestly, I'm not convinced this will be easier for you than changing to OO grid.

Regards,

Clemens

1 REPLY 1
Read only

Clemenss
Active Contributor
0 Likes
292

Hi Raju,

no chance without oo event data_changed.

You can get the grid object from the function module, I think FM LVC_GET_GLOBALS or something like that. Then implement method

METHODS: handle_data_chg FOR EVENT data_changed OF   cl_gui_alv_grid   IMPORTING er_data_changed.

In SET_STaTUS event of the function module, you can extract the grid object and registr your own handler.

But, honestly, I'm not convinced this will be easier for you than changing to OO grid.

Regards,

Clemens