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

OOPs Editable ALV F4 issue

Former Member
0 Likes
546

Hi All,

I'm using oops editable ALV which have F4 functionality for the fields.

Issue is the changed_data event is triggered even if F4 is used.

I want check_changed_data to be triggered only upon 'SAVE' as I want validation to happen only at that stage.

Please note I do not want to trigger the event at all when F4 is pressed.

Thanks in advance,

Hi All,

I'm using oops editable ALV which have F4 functionality for the fields.

Issue is the changed_data event is triggered even if F4 is used.

I want check_changed_data to be triggered only upon 'SAVE' as I want validation to happen only at that stage.

Please note I do not want to trigger the event at all when F4 is pressed.

Thanks in advance,

2 REPLIES 2
Read only

Former Member
0 Likes
491

Use the event  AFTER_USER_COMMAND and check the e_ucomm = 'SAVE' before having ur code

Read only

agnihotro_sinha2
Active Contributor
0 Likes
491

Try putting below code inside the onF4 method :

er_event_data->m_event_handled = 'X'.


Also, the event should be called using these parameters:


onf4

       FOR EVENT onf4

       OF cl_gui_alv_grid

       IMPORTING

         e_fieldname e_fieldvalue es_row_no er_event_data,