Application Development and Automation 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: 
Read only

Dynamic Dropdowns in ALV

Former Member
0 Likes
1,502

Hello Guru's,

I have a requirement where in i want the dropdowns for the field dynamically and the ALV is displayed using the frid object CL_GUI_ALV_GRID. For Example, we maitain locations per material in a z-table. in my ALV, we have Location, Material as one of the fields. if i click the dropdown of material on the ALV, i want the materials to be displayed in the dropdown per location . Please post on how to achieve this functionality.

Thanks in advance.

- Ravi.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,045

Hi,

check program BCALV_TEST_GRID_F4_HELP use event onf4 of cl_gui_alv_grid and register set handler my_event_receiver->on_f4 event and handle it in local class..

Regards,

Ravi.

Hello Guru's,

I have a requirement where in i want the dropdowns for the field dynamically and the ALV is displayed using the frid object CL_GUI_ALV_GRID. For Example, we maitain locations per material in a z-table. in my ALV, we have Location, Material as one of the fields. if i click the dropdown of material on the ALV, i want the materials to be displayed in the dropdown per location . Please post on how to achieve this functionality.

Thanks in advance.

- Ravi.

3 REPLIES 3
Read only

Former Member
0 Likes
1,046

Hi,

check program BCALV_TEST_GRID_F4_HELP use event onf4 of cl_gui_alv_grid and register set handler my_event_receiver->on_f4 event and handle it in local class..

Regards,

Ravi.

Read only

RicardoRomero_1
Active Contributor
0 Likes
1,045

This message was moderated.

Read only

RicardoRomero_1
Active Contributor
0 Likes
1,045

Hi,

you can use the method set_drop_down_table of the class cl_gui_alv_grid.