cancel
Showing results for 
Search instead for 
Did you mean: 

hOW TO ADD DROPDOWN TO TABLE?

Former Member
0 Kudos

Hi all,

after displaying on of my column to be displayed as dropdown .how can i do that..

plz help me.....

Regards,

ravi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In WDMODIFYVIEW method write this code,

get the column id ....

if ls_column-id = 'A'.

data : lr_drop_down type ref to CL_SALV_WD_UIE_DROPDOWN_BY_KEY

create object lr_drop_down .

ls_column-r_column->set_cell_editor ( lr_drop_down ).

endif.

Lakshmi.

Former Member
0 Kudos

Hi lakshmi,

my requirement is not for the ALV table.

it is a general table which is created by using insert element.

Plz help me to resolve this........

Regards,

Ravi.

Former Member
0 Kudos

check the interface IF_WDY_MD_TABLE_COLUMN methods like CREATE_TABLE_CELL_EDITOR,probably it may work.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Why not just use the table binding wizard. When it shows you the list of all the columns from the attibutes, you can change the UI element that will be generated for a particular column. It will create the column type for you.