‎2011 Feb 14 5:41 AM
Hi All,
I have created an ALV report using the CL_GUI_ALV_GRID.
I need to change the data in the internal table(display table) once ENTER is pressed.
Kindly let me know how to do this.. I tried giving my code in PAI for the function code ENTER but it does seem to get triggered.
Also after selecting a value from the F4 help takes me to the first value in the display, where i want it to point on the current cell that was chosen. I tried using the the set field method and it did not work out.. Kindly let me know as how to go about on this.
Thanks in advance,
Rahul
‎2011 Feb 14 6:59 AM
Hello Rahul
In order to react on the ENTER event you need to call method REGISTER_EDIT_EVENT (e.g. report BCALV_TEST_GRID_F4_HELP). This sample report may also lead you to a solution for your second problem (F4 related).
Regards
Uwe
‎2011 Feb 15 8:06 AM
Alternatively to react to ENTER key, use parameter I_APPL_EVENTS = 'X' of ALV contructor. This way all events will result in PAI triggering.
Regards
Marcin
‎2011 Feb 15 8:56 AM
Hi ,
For the F4 value to get reflected in the ALV cell u have to call the method 'REGISTER_EDIT_EVENT' and pass the parameter 'mc_evt_modified ' to exporting parameter i_event_id.
Cheers,
Ravi.
‎2011 Feb 21 1:19 PM
Hi Rahul,
the Events from ALV cannot be handled like other report events
So you have register the ALV events ... later you can handle the User commands.
Regards