on 04-26-2006 9:55 AM
Hi Abapers,
I want to show <b>search help in ALV Grid</b>.and that search help will depend upon one column in ALV Grid.e.g.
<b>LIFNR</b> <b>Field1</b>
3910 <b> </b> S.Help1
4520 <b> </b> S.Help2
and so on....
and these S.Helps will be created in one ztable.e.g.
<b>LIFNR</b> <b>Field1</b>
3910 xy1
3910 xy2
3910 xy3
4520 zz1
4520 zz2
and so on....
meaning
for 3910 S.Help has three records (xy1,xy2,xy3)
& for 4520 S.Help has two records (zz1,zz2).
So, Please help me out.
The right answer will be appriciated
Thanks in anvance
Adams
Hi Adams,
THe procedure to be followed is as follows -
Define, implement and register the event onf4 at proper places in your code. For F4 help, you must register the fields whose F4 request will trigger the onf4 event. For this you must prepare a table of type LVC_T_F4 and register this table using the method register_f4_for_fields. While preparing table you must include a line for each field which will trigger F4 event. For each field in the structure
Pass the fieldname to FIELDNAME
Set REGISTER to make the field registered,
Set GETBEFORE to provide field content transport before F4 in editable mode
Set CHNGEAFTER to make the data changed after F4 in editable mode.
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[] .
METHOD handle_on_f1 .
PERFORM f4_help USING e_fieldname es_row_no .
er_event_data->m_event_handled = 'X' .
ENDMETHOD .
Hope this solves your problem.
Regards,
Aniket
Please mark useful posts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
good
go through this link this will give you compelte idea about the search help in ALVGrid
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2607. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
thanks
mrutyun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Take a look at this sample program - BCALV_GRID_F4_HELP.
You will have to activate the F4 events and handle the same where you cna thorw the popup for the user to select.
Regards,
Ravi
Note : Please mark the helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.