06-08-2007 5:26 PM
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
06-08-2007 5: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
06-08-2007 5: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
06-08-2007 5: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.
06-08-2007 5:57 PM
Check for program
BCALV_EDIT_08
BCALV_TEST_GRID_F4_HELP
aRs
Message was edited by:
aRs