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: 

About OO ALV F4 Help

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

former_member194669
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

former_member194669
Active Contributor
0 Kudos

Check for program

BCALV_EDIT_08

BCALV_TEST_GRID_F4_HELP

aRs

Message was edited by:

aRs