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 event data_changed error

Former Member
0 Likes
561

Hello everybody,

I have a one editable field in ALV. After 'ENTER' I want do some actions ( check input , save data into DB table...).

CLASS lcl_gui DEFINITION CREATE PROTECTED.
  PUBLIC SECTION.

    DATA: mor_alv    TYPE REF TO cl_gui_alv_grid,
        
 METHODS:   alv_init,

                    alv_changed FOR EVENT data_changed
                                         OF cl_gui_alv_grid
                                         IMPORTING er_data_changed,
                    register_events,

                                   ..........

 METHOD register_events .

   CALL METHOD mor_alv->register_edit_event
     EXPORTING
     i_event_id = cl_gui_alv_grid=>mc_evt_enter.

    SET HANDLER me->alv_changed FOR mor_alv.

  ENDMETHOD.

After I change field and pres 'ENTER' I get popup with message "Programs error" and program exits.

(On the screen in other container I also have ALV Tree-CL_GUI_ALV_TREE , maybe it is impotrant to mention...)

Please help.

2 REPLIES 2
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
461

Hi,

Welcome to SCN.

What error you are getting - runtime error or something else , please elaborate.

Regards,

Sandeep

Read only

0 Likes
461

Hi Sandeep,

as I said I just get popup wit error message "Program errors" with just "Exit" button, when I press the button program exits.

I get no runtime error, just this popup.

Regards

Jan.