07-02-2007 11:15 AM
Hi All,
I am displaying an ALV output using class. In the output list, i have added one push button 'ADD'. If user clicks on this button, new line should be available to enter the data. This is working fine.
Now i want to give an F4 help for a column for which values is to be generated in the program. I have an internal table with values which is to be displayed when user clicks on that column.
This is very urgent.
Pls. suggest me.
best regards,
07-02-2007 11:18 AM
HI,
Check the report BCALV_EDIT_08 from the package SLIS.
Regards,
Sesh
07-02-2007 11:18 AM
Hi,
pass these two values in field catalog.
lwa_fieldcat-reffieldname = 'FIELDNAME'.
lwa_fieldcat-reftabname = 'TABLENAME'.
IT will give u f4 help on that field.
Reagads,
Omkar.
07-02-2007 11:19 AM
Hi,
Linking F4 Help to Fields
Preparing table for the fields to be registered to trigger F4 event
DATA: lt_f4 TYPE lvc_t_f4 WITH HEADER LINE .
.. ..
lt_f4-fieldname = 'PRICE'.
lt_f4-register = 'X' .
lt_f4-getbefore = 'X' .
APPEND lt_f4 .
CALL METHOD gr_alvgrid->register_f4_for_fields
EXPORTING
it_f4 = lt_f4[] .
A sample onf4 method implementation
METHOD handle_on_f1 .
PERFORM f4_help USING e_fieldname es_row_no .
er_event_data->m_event_handled = 'X' .
Again, we set the attribute er_event_data->m_event_handled to prevent further processing of standard F4 help.
Regards,
Ranjit Thakur.
<b>Please Mark The Helpful Answer.</b>
ENDMETHOD .
07-02-2007 11:22 AM