on 08-13-2013 10:22 AM
Hi All,
I have a dynamic table with drop down by key linked with domain.
I am getting a empty row. How to remove the empty field from dropdown. Hope there is Null able property in Context attributes but for me it is dynamic alv table. Help me how can I remove the first empty row from drop down.
Regards,
Vijayan
Hello,
when you are filling value in drop-down by key you must got value in lt_valueset.
lt_valueset TYPE wdr_context_attr_value_list)
ls_valueset TYPE wdr_context_attr_value,
just do.,.
loop at lt_valueset into ls_valueset where text is not initial.
append ls_valueset into lt_valueset_copy.
endloop.
BR
Chandra..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
demo code for filling DDBK..
lt_valueset TYPE wdr_context_attr_value_list)
lt_valueset_copy TYPE wdr_context_attr_value_list)
ls_valueset TYPE wdr_context_attr_value,
ls_valueset-text = 'kapil'
ls_valueset-value = 1.
APPEND ls_valueset TO lt_valueset.
ls_valueset-text = ' '
ls_valueset-value = 2.
APPEND ls_valueset TO lt_valueset.
ls_valueset-text = ' ABC'
ls_valueset-value = 3.
APPEND ls_valueset TO lt_valueset.
loop at lt_valueset into ls_valueset where text is not initial.
append ls_valueset into lt_valueset_copy.
endloop.
SORT lt_valueset ASCENDING BY text.
lo_node = wd_context->get_child_node( name = '<Node_name>' ).
lo_node_info = lo_node->get_node_info( ).
lo_node_info->set_attribute_value_set(
EXPORTING
name = '<attribute_name>'
value_set = lt_valueset_copy ).
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.