cancel
Showing results for 
Search instead for 
Did you mean: 

Selection Screen - Text instead of Key in the value help

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Madhu2004
Active Contributor
0 Kudos

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

Former Member
0 Kudos

HI Madhu,

I understand drop down displays texts but we need multiple selection. Thats the problem.

Thanks,

Vasu