Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9760

Re: ALV display F4 as drop down list

$
0
0

You can certainly adapt dynamic drop down scenario to suit yours

 

 

Select values from domain and fill it in internal table lt_dropdown keep handle value 1 for all domain values. Do this before calling set_table_for_first_display.

 

 

DATA: lt_dropdown TYPE lvc_t_drop,

      ls_dropdown TYPE lvc_s_drop.

 

ls_dropdown-handle = '1'.

ls_dropdown-value = 'domain val1'.

APPEND ls_dropdown TO lt_dropdown.

 

ls_dropdown-handle = '1'.

ls_dropdown-value = 'domain val2'.

APPEND ls_dropdown TO lt_dropdown.

 

ls_dropdown-handle = '1'.

ls_dropdown-value = 'domain val3'.

APPEND ls_dropdown TO lt_dropdown.

 

ls_dropdown-handle = '1'.

ls_dropdown-value = 'domain val4'.

APPEND ls_dropdown TO lt_dropdown.

 

CALL METHOD g_grid->set_drop_down_table

  EXPORTING

    it_drop_down = lt_dropdown.

 

In fieldcatalog of column where you want to display dropdown set DRDN_HNDL to 1

 

ls_fcat-drdn_hndl = '1'.


Viewing all articles
Browse latest Browse all 9760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>