on 09-29-2010 7:19 AM
Hi ,
I have implemented selection options for Web dynpro.
The value help for the selection fields displays the key of the selected value (standard).
I would like to know if there is an option to display the text (instead of the key) in the field.
Key Text
01 AAAA
02 BBBB
03 CCCC
So if I select say - 01 and 03 in the value help, Can I display AAA, CCCC in the field (or next to the field)
Thanks,
Sri
Edited by: Sri on Sep 29, 2010 8:19 AM
you can have one more field(textview) next to dropdown and invoke onselect option when you select a value in dropdown to display the correspoding value in textview
Thanks
Bala Duvvuri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bala,
This is a selection screen using (WDR_SELECT_OPTIONS) component. I dont think I can add an element to the screen directly.
The only way I see is adding a text line using ADD_TEXT_LINE method (IF_WD_SELECT_OPTIONS interface) and use that for displaying data.
But this displays the text in next line and this doesn't look like the value help text.
Regards,
Sri
HI,
You can dispaly it as dropdown and it shown the text:Use the beloe code refernce;
DATA lt_valueset TYPE wdy_key_value_table.
DATA ls_valueset LIKE LINE OF lt_valueset.
ls_valueset-key = '1234'.
ls_valueset-value = '1234test'.
APPEND ls_valueset TO lt_valueset.
ls_valueset-key = '1235'.
ls_valueset-value = '1235test'.
APPEND ls_valueset TO lt_valueset.
ls_valueset-key = '1264'.
ls_valueset-value = '1236test'.
APPEND ls_valueset TO lt_valueset.
CALL METHOD wd_this->lo_select->add_selection_field
EXPORTING
i_id = 'CAND_ID'
it_result = lt_range_table
i_as_dropdown = abap_true
it_value_set = lt_valueset
* i_read_only = ABAP_FALSE
* i_dont_care_value =
* i_explanation =
* i_tooltip =
.
Regards,
madhu
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
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.