on 09-05-2012 6:16 PM
Hello,
my dropdown is working correctly in the way when I drop it down it shows the value and the text
(1 hot
2 medium
3 cold)
but I want to show just the value 1 or 2 or 3 in the ALV and not hot, medium or cold
any ideas?
Thanks
Bernhard
Hi Bernhard Fink,
Can you elaborate how your getting this value's
for example:- getting from a table (or) from Domain (or) hard coded.
anyway try this code.
data value_set type wdr_context_attr_value_list.
data value type wdr_context_attr_value.
value-value = 'hot'.
value-text = '1'.
insert value into table value_set.
value-value = 'medium'.
value-text = '2'.
insert value into table value_set.
value-value = 'cold'.
value-text = '3'.
insert value into table value_set.
wd_context->get_node_info( )->set_attribute_value_set(
name = 'ATTRIBUTE_NAME'
value_set = value_set
).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
data value_set type wdr_context_attr_value_list.
data value type wdr_context_attr_value.
value-value = 'hot'.
value-text = '1'.
insert value into table value_set.
value-value = 'medium'.
value-text = '2'.
insert value into table value_set.
value-value = 'cold'.
value-text = '3'.
insert value into table value_set.
wd_context->get_node_info( )->set_attribute_value_set(
name = 'ATTRIBUTE_NAME'
value_set = value_set
).
if your using in this way in drop down you can see 1, 2, 3 instead of hot, medium and cold.
but i hope your using in this way
value-value = '1'.
value-text = 'hot'.
insert value into table value_set.
value-value = '2'.
value-text = 'medium'.
insert value into table value_set.
value-value = '3'.
value-text = 'cold'.
insert value into table value_set.
wd_context->get_node_info( )->set_attribute_value_set(
name = 'ATTRIBUTE_NAME'
value_set = value_set
).
Hi Madhu,
as mentioned I have no problem with the drop down
as you can see I show the value and the text - my probem is that the text "this is H" is displayed in the ALV
wa_value_set-text = 'this is H'. | |
wa_value_set-value = 'H'. | |
append wa_value_set tO lt_value_set. | |
wa_value_set-text = 'this is B'. | |
wa_value_set-value = 'B'. | |
append wa_value_set tO lt_value_set. |
thanks
Bernhard
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.