Application Development 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: 

Grid events

Former Member
0 Kudos

Hi,

when I enter a wrong value in grid and hit enter, it is giving error message. Again then if I hit enter, it is not giving any error message eventhough the error data is presented in the grid. But I want the same error message if I hit the enter(no matter how many times I hit the enter button, that many times it should give the error message).

Thanks and Regards,

Balakrishna.N

5 REPLIES 5

Former Member
0 Kudos

Hi,

Is it a report prog? If yes...Check the AT SELECTION-SCREEN event for the screen validation in your report prog...

Reward if helpful,

Thanks.

Former Member
0 Kudos

Hi,

Use the event handle_data_changed for grid importing pr_data_changed and display error messages using

call method pr_data_changed->add_protocol_entry

exporting

i_msgid = '0K' i_msgno = '000' i_msgty = 'E'

i_msgv1 = text-m01

i_fieldname = ls_good-fieldname

i_row_id = ls_good-row_id.

Refer the standard program BCALV_EDIT_04

Reward points if usefull.

Raj

0 Kudos

Thank you for your quick response.

For the first time(means I changed the data in the grid and hit the enter button) it is working good. But immediately if I hit the enter(second time) it is not giving the error message(means data_changed event is being not raised in this case). I want this event to be raised .

Thanks and Regards,

Balakrishna.N

0 Kudos

If u want to call event for enter in feild

u have to pass

'I_GRID_SETTINGS '

to 'Reuse' function module when u will press enter or

change cursor 'TOP_OF_PAGE' will call again.

only pass value I_GRID_SETTINGS-EDT_CLL_CB = 'X'

Former Member
0 Kudos

if ur using REUSE_ALV_GRID_DISPLAY function for ALV.

use different Function module

REUSE_ALV_GRID_DISPLAY_LVC

it will work.