on 06-01-2015 2:23 PM
I have created ALV application with one field dropdown by index. the dropdown suppose to have value "Yes" "No" but strange its showing me "No" "Yes" "No" (3 values in dropdown).
I have created an attribute in context named "VALUESET".
Hi,
Is your issue resolved?.If not,revert back with your observations.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As you said, you have only two values ' Yes/No' . Create column as dropdown by key and use domain values in that.
CREATE OBJECT lo_dropdown_by_key
EXPORTING
selected_key_fieldname = '<fieldname>'.
lo_dropdown_by_key->set_selected_key_fieldname( '<fieldname>' ).
lr_column-r_column->set_cell_editor( lo_dropdown_by_key ).
lo_dropdown_by_key->set_state( cl_wd_abstract_input_field=>e_state-required ).
PFB the snapshot for reference.
Hope this helps you.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit,
While binding the valueset, did you clear the structure of the valuset attribute after appending it to the internal tables.Sometimes this might be issue too.
Try to keep the debugger at the point of binding the valuset attribute and check the table contents.
Below doc, might help you
Regards,
Harsha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.