Skip to Content

Enable F4 and Hotspot at the same time in CL_SALV_TABLE

Jan 26 at 07:15 PM


avatar image

Dear Members,

Is it possible to enabe F4 and Hotspot at the same time in ALV grid built with CL_SALV_TABLE=> FACTORY( )?

I try as below but look when I want to use both functionalities, hotspot works but F4 button is not appearing. When I comment out set_cell_type( ) method F4 is appearing.

I also try set_f4( true ) method of cl_salv_column_table but it doesn't help.

I know with old REUSE ALV it was possible but is it also possible with CL_SALV_TABLE?

BR, Bobby

DATA: lo_columntable TYPE REF TO cl_salv_column_table.

lo_columntable ?= r_alv->get_columns( )->get_column( columnname = lv_coumnname ).

ls_ddrref-table = 'EKKO'.
ls_ddrref-field = 'WAERS'.

CALL METHOD lo_columntable->set_ddic_reference  
		value = ls_ddrref.

CALL METHOD lo_columntable->set_cell_type  
		value = if_salv_c_cell_type=>hotspot.
10 |10000 characters needed characters left characters exceeded

Gave it a try as well (e.g. Also using "cl_salv_controller_metadata=>get_lvc_fieldcatalog" / "cl_salv_controller_metadata=>set_lvc_fieldcatalog") and couldn't make it work ...

* Please Login or Register to Answer, Follow or Comment.

0 Answers