Skip to Content
author's profile photo Former Member
Former Member

Alv tree Problem with match code

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Feb 27, 2009 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2009 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.