On the initial / main view am providing a input field with drop-down ability, i wrote the below code in INITIALIZATION event in order to fill the drop-down list, fine
l_string = 'ZZ_PLANT'. w_l_element-value = 'NJ'. w_l_element-text = 'PLANT_NEW_JERSEY'. APPEND w_l_element TO it_l_elements. CLEAR w_l_element. w_l_element-value = 'NY'. w_l_element-text = 'PLANT_NEW_YORK'. APPEND w_l_element TO it_l_elements. CLEAR w_l_element. CALL METHOD node_info->set_attribute_value_set EXPORTING name = l_string value_set = it_l_elements.
Working fine, when user clicks the drp-down (like F4) i am getting a table format popup with 2 colums, one is for VALUE (example data 'NJ') and the 2nd is for TEXT (example data is 'PLANT_NEW_JERSEY'), fine. As i hv given only 2 entries (NJ and NY) here, hence am getting 2 records in the popup table, fine.
Now, say the user has selected the 2nd record (NY), now, i need to CAPTURE that index (in this case it should be '2' as user has selected 2nd record) number/value in my prog. for some reason.
Pls let me know How to get the selected INDEX number/value in the drop-down list?
Tha nk you