cancel
Showing results for 
Search instead for 
Did you mean: 

list box in table

Former Member
0 Kudos

Hi...

I have a table with 3 list box. Based on selection in one list box another listbox must be populated.

i have written event for that list box... that event is working fine for first row alone.. if i select second row & get the data from the list box its reading first row only...

How to specify the index... Since there is no lead selction...

Any idea or example program...

Thanks in advance.

Kalpanashri Rajendran.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

I think you can follow this,

calling these methods from the respective classes.

GET_STATIC_ATTRIBUTES from IF_WD_CONTEXT_ELEMENT

GET_SELECTED_ELEMENTS from IF_WD_CONTEXT_NODE

You can achieve the required behaviour.

If you want to specify the index,

SET_LEAD_SELECTION_INDEX(Set Element of Lead Selection with Index) from interface:IF_WD_CONTEXT_NODE.

Before setting the index, get the data from node and put it in to internal table.

Loop at that internal table.

populate lv-tabix.(sy-tabix)

CALL METHOD lo_nd_roles_users->set_lead_selection_index

EXPORTING

index = lv_tabix.

endloop.

This is not exact code but hope will give u some idea....!

Cheers,

Bharath