on 09-06-2013 3:34 PM
Hello All,
Can any body help me how to Read selected index of a Dropdown By Index in ALV table
I have a ALV table in that 1 column is a Dropdown By Index to show different dropdown values in each row of ALV table. to achieve this I created separate attribute in same context node as VALUESET of type WDR_CONTEXT_ATTR_VALUE_LIST. As part of my requirement I have same Value and Text values for VALUESET
ls_value_custom-text = 'TEST'.
ls_value_custom-value = 'TEST'.
Values are populated and I am getting different values for dropdown on each row of ALV table
My requirement is to Get the Selected index of the dropdown( Ex: From ALV 3rd row I open the dropdown and sleeted 5th value)
I am using event ON_CELL_ACTION to capture change.
r_param->value->* is returning Value of the Dropdown, my issue is I need to get the index of the selected Value
My r_param->index is returning 3 (3rd row of ALV where I opened the Dropdown)
Thanks,
Venkat.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkat,
The source of the DropDownByIndex is a table of name/values pairs, so once you have the selected value from r_param->value->*, you can read that table to determine the index.
READ TABLE dropdown_options ASSIGNING <fs> WITH KEY value = the_value.
System variable sy-tabix will indicate the table index where the_value was found.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.