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: 

Alv tree Problem with match code

Former Member
0 Kudos

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

2 REPLIES 2

former_member194669
Active Contributor
0 Kudos

> 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

Former Member
0 Kudos

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