05-28-2008 8:53 AM
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
05-28-2008 9:18 AM
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.
05-28-2008 9:38 AM
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
05-28-2008 10:10 AM
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
05-28-2008 10:51 AM
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'
05-28-2008 9:39 AM
if ur using REUSE_ALV_GRID_DISPLAY function for ALV.
use different Function module
REUSE_ALV_GRID_DISPLAY_LVC
it will work.