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

Interactive ALV

Former Member
0 Likes
560

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

4 REPLIES 4
Read only

uwe_schieferstein
Active Contributor
0 Likes
527

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

Read only

MarcinPciak
Active Contributor
0 Likes
527

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

Read only

Former Member
0 Likes
527

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.

Read only

Former Member
0 Likes
527

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