02-27-2009 3:26 PM
Hi guys,
I working on a program like BCALV_TREE_01,
I used a macro for fieldcata
DEFINE m_fieldcat.
clear ls_fcat.
ls_fcat-fieldname = &1.
ls_fcat-coltext = &2.
ls_fcat-icon = &3.
ls_fcat-tabname = 'T_DATA2'.
ls_fcat-ref_table = &4.
ls_fcat-ref_field = &5.
ls_fcat-f4availabl = &6.
append ls_fcat to lt_fcat.
END-OF-DEFINITION.
for some fields I want to have the F4-help, but it doesn't work.
Any help will be appreciated.
Mohamed
02-27-2009 3:37 PM
> ls_fcat-f4availabl = &6.
> append ls_fcat to lt_fcat.
Simply pass f4availabl will not give you f4 in OO
You need to call
call method gr_grid->register_f4_for_fields
exporting
it_f4 = i_f4[].
Please make a whereused to register_f4_for_fields method you can find lot of example programs how it has been used
a®
02-27-2009 4:49 PM
Thanks for your response,
I can't find the method you specified on the class cl_gui_alv_tree that I used on my programme (similar to BCALV_TREE_01)
can you give an example for resolving this problem.
thanks
Mohamed