Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to get f4 help in editable ALV

Hi experts,

Please tell me how to add f4 help for an editable ALV

points for sure

Tags:
Former Member
replied

Hi kumar,

Write a class to handle the f4 help for alv

ex:

CLASS lcl_event_receiver DEFINITION.

  • on_f4 help.

handle_onf4

FOR EVENT onf4

OF cl_gui_alv_grid

IMPORTING e_fieldname e_fieldvalue es_row_no

er_event_data et_bad_cells e_display.

endclass.

in the implementation of the class call the function module : F4IF_INT_TABLE_VALUE_REQUEST

method handle_onf4.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'PARENT'

dynpprog = sy-cprog

dynpnr = sy-dynnr

dynprofield = 'PARENT'

stepl = 0

window_title = text-016

value_org = 'S'

TABLES

value_tab = gt_parent

return_tab = gt_ret_tab

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

endmethod.

create a object of this class type.

Register the class to the alv grid for the functon module.

CREATE OBJECT gref_event_receiver3.

SET HANDLER gref_event_receiver3->handle_onf4 FOR gv_relation_alv.

hope this helps,

Regards,

Prasant

  • Reward points if useful

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question