cancel
Showing results for 
Search instead for 
Did you mean: 

Drop down by key in ALV.

Former Member
0 Kudos

Hi,

I have created an ALV in abap web dynpro and two columns in ALV have been been created as drop down by key.

The drop down by key is created in the ALV and one of the drop down field A has some values in drop down.(code written in wdinit method and it fills data fine)

Now my requirement is on selection of value from column A should populate the value in Column B-which is also a drop down.

I have tried different event handler with event as (ON_CLICK,on_cell_action,on_data_check,on_function) but its not showing any drop down value in field B.

Please suggest how can this be achieved.

Regards

Shakti

Accepted Solutions (0)

Answers (2)

Answers (2)

saravanan_narayanan
Active Contributor
0 Kudos

Hello Shakti,

you can't achieve this via two DDBK (Drop Down by Key) fields. You need to create the first one as DDBK and other one as DDBI (Drop Down by Index).

And whenever the first DDBK value is selected, you need to populate the context node value for DDBI.

BR, Saravanan

Former Member
0 Kudos

Hi

Create an On_Select event on dropdown A. Go to the method and read the attributes for DrpDown A and set Drpdown B with the help of code wizard. Hope to help, leme know if any issues.

Cheers

Gaurav

Edited by: GauravKaneria on Jul 14, 2011 8:20 AM