Question:
Hi
I have used a method with two events.
1. user_command
2. data_changed(it works fine in enter key)
METHODS: handle_user_replace FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm,
handle_data_replace FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING er_data_changed.
After my user command done , the data change event is not working.
I need link both the events together.
please reply ...with code will be more appreciate.
Thanking you in advance.
For more queries...reply to this.
Thanks
Satyajit
91-9423209683
_________________
Mr M Mi SA
Answer:
Hi there,
I'm not in front of my computer with SAP but you should look in se38 for programs BCALV* ... there are a lot of SAP examples...
anyway try to look at to a method like set_ready_for_input before set_table_first_display.
probably you also need the method get_frontend_fieldkatalog and a loop on fkatalog to set up the input mode mode (field edit "something like this" setted on 'X') on your fields and the method set_frontend_fieldkatalog to update your fkatalog.
to set up the event on user Enter you have to call an another method before set_table_for_first_display (I found it in a program BCALV*TEST* and I really can't remember it).
Sorry ... it's not so clear but I learnt it last week
Good luck by Joe eheh