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

About OO ALV F4 Help

hi, all

How can i use the F4 Help for fields in OO ALV?

Can you give me an example?

Thanks for your help!

Message was edited by:

pei li

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2007 at 04:53 PM

    Thanks for your help!

    But i want to do it myself.

    I use the f4availabl in fieldcat, there are F4 button on fields,

    but there aren't F4 dialog.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2007 at 04:42 PM

    In the program for fieldcat declare

    DATA: gt_fieldcat TYPE lvc_t_fcat WITH HEADER LINE.

    and

    before calling the method in the perofrm for fieldcat add this

    perform f_cat.

    and in the form for f_cat add the following

    gt_fieldcat-F4AVAILABL = 'X'.

    APPEND gt_fieldcat .

    CALL METHOD cc_column->set_table_for_first_display

    EXPORTING

    IT_TOOLBAR_EXCLUDING = lt_exclude

    is_layout = gs_layout

    CHANGING

    it_outtab = it_alv

    it_fieldcatalog = gt_fieldcat[]

    EXCEPTIONS

    invalid_parameter_combination = 1

    program_error = 2

    too_many_lines = 3

    OTHERS = 4.

    IF sy-subrc <> 0.

    ENDIF.

    This is the way for getting search help using OOPS ALV

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 08, 2007 at 04:46 PM

    Hi,

    While creating the field catalog

    call function 'LVC_FIELDCATALOG_MERGE'

    exporting

    i_structure_name = 'MARA'

    i_client_never_display = c_x

    changing

    ct_fieldcat = i_fieldcat[].

    then delete the fields you don't want to display.

    and use i_fieldcat in method

    call method grid1->set_table_for_first_display

    system automatically get you serach help associated with data field. you don't need to code explicitly.

    aRs

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 08, 2007 at 04:57 PM

    Check for program

    BCALV_EDIT_08

    BCALV_TEST_GRID_F4_HELP

    aRs

    Message was edited by:

    aRs

    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.